update、

This commit is contained in:
2023-12-28 15:23:22 +08:00
parent 39d003597a
commit f4dba67363
5 changed files with 586 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
package com.jsowell.pile.domain;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MemberGroupRelation {
/**
* 主键
*/
private Integer id;
/**
* 会员id
*/
private String memberId;
/**
* 会员组编号
*/
private String groupCode;
/**
* 创建人
*/
private String createBy;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新人
*/
private String updateBy;
/**
* 更新时间
*/
private Date updateTime;
/**
* 删除标识0-正常1-删除)
*/
private String delFlag;
}

View File

@@ -0,0 +1,59 @@
package com.jsowell.pile.mapper;
import com.jsowell.pile.domain.MemberGroupRelation;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface MemberGroupRelationMapper {
/**
* delete by primary key
* @param id primaryKey
* @return deleteCount
*/
int deleteByPrimaryKey(Integer id);
/**
* insert record to table
* @param record the record
* @return insert count
*/
int insert(MemberGroupRelation record);
int insertOrUpdate(MemberGroupRelation record);
int insertOrUpdateSelective(MemberGroupRelation record);
/**
* insert record to table selective
* @param record the record
* @return insert count
*/
int insertSelective(MemberGroupRelation record);
/**
* select by primary key
* @param id primary key
* @return object by primary key
*/
MemberGroupRelation selectByPrimaryKey(Integer id);
/**
* update record selective
* @param record the updated record
* @return update count
*/
int updateByPrimaryKeySelective(MemberGroupRelation record);
/**
* update record
* @param record the updated record
* @return update count
*/
int updateByPrimaryKey(MemberGroupRelation record);
int updateBatch(List<MemberGroupRelation> list);
int updateBatchSelective(List<MemberGroupRelation> list);
int batchInsert(@Param("list") List<MemberGroupRelation> list);
}

View File

@@ -0,0 +1,30 @@
package com.jsowell.pile.service;
import java.util.List;
import com.jsowell.pile.domain.MemberGroupRelation;
public interface MemberGroupRelationService{
int deleteByPrimaryKey(Integer id);
int insert(MemberGroupRelation record);
int insertOrUpdate(MemberGroupRelation record);
int insertOrUpdateSelective(MemberGroupRelation record);
int insertSelective(MemberGroupRelation record);
MemberGroupRelation selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(MemberGroupRelation record);
int updateByPrimaryKey(MemberGroupRelation record);
int updateBatch(List<MemberGroupRelation> list);
int updateBatchSelective(List<MemberGroupRelation> list);
int batchInsert(List<MemberGroupRelation> list);
}

View File

@@ -0,0 +1,70 @@
package com.jsowell.pile.service.impl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.jsowell.pile.mapper.MemberGroupRelationMapper;
import java.util.List;
import com.jsowell.pile.domain.MemberGroupRelation;
import com.jsowell.pile.service.MemberGroupRelationService;
@Service
public class MemberGroupRelationServiceImpl implements MemberGroupRelationService{
@Resource
private MemberGroupRelationMapper memberGroupRelationMapper;
@Override
public int deleteByPrimaryKey(Integer id) {
return memberGroupRelationMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(MemberGroupRelation record) {
return memberGroupRelationMapper.insert(record);
}
@Override
public int insertOrUpdate(MemberGroupRelation record) {
return memberGroupRelationMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(MemberGroupRelation record) {
return memberGroupRelationMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(MemberGroupRelation record) {
return memberGroupRelationMapper.insertSelective(record);
}
@Override
public MemberGroupRelation selectByPrimaryKey(Integer id) {
return memberGroupRelationMapper.selectByPrimaryKey(id);
}
@Override
public int updateByPrimaryKeySelective(MemberGroupRelation record) {
return memberGroupRelationMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(MemberGroupRelation record) {
return memberGroupRelationMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<MemberGroupRelation> list) {
return memberGroupRelationMapper.updateBatch(list);
}
@Override
public int updateBatchSelective(List<MemberGroupRelation> list) {
return memberGroupRelationMapper.updateBatchSelective(list);
}
@Override
public int batchInsert(List<MemberGroupRelation> list) {
return memberGroupRelationMapper.batchInsert(list);
}
}