新增 运营商--分润会员对应关系表、实体、Service

This commit is contained in:
Lemon
2024-09-13 10:43:43 +08:00
parent 554d29e727
commit 150354941c
18 changed files with 984 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
package com.jsowell.pile.domain.shareprofit;
import com.jsowell.common.annotation.Excel;
import com.jsowell.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 运营商--分润人关系对象 shareprofit_merchant_member_relation
*
* @author jsowell
* @date 2024-09-12
*/
public class ShareprofitMerchantMemberRelation extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
private Long id;
/**
* 运营商id
*/
@Excel(name = "运营商id")
private Long merchantId;
/**
* 分润人电话号码
*/
@Excel(name = "分润人电话号码")
private String memberPhoneNumber;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setMerchantId(Long merchantId) {
this.merchantId = merchantId;
}
public Long getMerchantId() {
return merchantId;
}
public void setMemberPhoneNumber(String memberPhoneNumber) {
this.memberPhoneNumber = memberPhoneNumber;
}
public String getMemberPhoneNumber() {
return memberPhoneNumber;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.JSON_STYLE)
.append("id", getId())
.append("merchantId", getMerchantId())
.append("memberPhoneNumber", getMemberPhoneNumber())
.append("createTime", getCreateTime())
.toString();
}
}

View File

@@ -0,0 +1,63 @@
package com.jsowell.pile.mapper;
import java.util.List;
import com.jsowell.pile.domain.shareprofit.ShareprofitMerchantMemberRelation;
import org.springframework.stereotype.Repository;
/**
* 运营商--分润人关系Mapper接口
*
* @author jsowell
* @date 2024-09-12
*/
@Repository
public interface ShareprofitMerchantMemberRelationMapper {
/**
* 查询运营商--分润人关系
*
* @param id 运营商--分润人关系主键
* @return 运营商--分润人关系
*/
public ShareprofitMerchantMemberRelation selectShareprofitMerchantMemberRelationById(Long id);
/**
* 查询运营商--分润人关系列表
*
* @param shareprofitMerchantMemberRelation 运营商--分润人关系
* @return 运营商--分润人关系集合
*/
public List<ShareprofitMerchantMemberRelation> selectShareprofitMerchantMemberRelationList(ShareprofitMerchantMemberRelation shareprofitMerchantMemberRelation);
/**
* 新增运营商--分润人关系
*
* @param shareprofitMerchantMemberRelation 运营商--分润人关系
* @return 结果
*/
public int insertShareprofitMerchantMemberRelation(ShareprofitMerchantMemberRelation shareprofitMerchantMemberRelation);
/**
* 修改运营商--分润人关系
*
* @param shareprofitMerchantMemberRelation 运营商--分润人关系
* @return 结果
*/
public int updateShareprofitMerchantMemberRelation(ShareprofitMerchantMemberRelation shareprofitMerchantMemberRelation);
/**
* 删除运营商--分润人关系
*
* @param id 运营商--分润人关系主键
* @return 结果
*/
public int deleteShareprofitMerchantMemberRelationById(Long id);
/**
* 批量删除运营商--分润人关系
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteShareprofitMerchantMemberRelationByIds(Long[] ids);
}

View File

@@ -0,0 +1,61 @@
package com.jsowell.pile.service;
import java.util.List;
import com.jsowell.pile.domain.shareprofit.ShareprofitMerchantMemberRelation;
/**
* 运营商--分润人关系Service接口
*
* @author jsowell
* @date 2024-09-12
*/
public interface IShareprofitMerchantMemberRelationService {
/**
* 查询运营商--分润人关系
*
* @param id 运营商--分润人关系主键
* @return 运营商--分润人关系
*/
public ShareprofitMerchantMemberRelation selectShareprofitMerchantMemberRelationById(Long id);
/**
* 查询运营商--分润人关系列表
*
* @param shareprofitMerchantMemberRelation 运营商--分润人关系
* @return 运营商--分润人关系集合
*/
public List<ShareprofitMerchantMemberRelation> selectShareprofitMerchantMemberRelationList(ShareprofitMerchantMemberRelation shareprofitMerchantMemberRelation);
/**
* 新增运营商--分润人关系
*
* @param shareprofitMerchantMemberRelation 运营商--分润人关系
* @return 结果
*/
public int insertShareprofitMerchantMemberRelation(ShareprofitMerchantMemberRelation shareprofitMerchantMemberRelation);
/**
* 修改运营商--分润人关系
*
* @param shareprofitMerchantMemberRelation 运营商--分润人关系
* @return 结果
*/
public int updateShareprofitMerchantMemberRelation(ShareprofitMerchantMemberRelation shareprofitMerchantMemberRelation);
/**
* 批量删除运营商--分润人关系
*
* @param ids 需要删除的运营商--分润人关系主键集合
* @return 结果
*/
public int deleteShareprofitMerchantMemberRelationByIds(Long[] ids);
/**
* 删除运营商--分润人关系信息
*
* @param id 运营商--分润人关系主键
* @return 结果
*/
public int deleteShareprofitMerchantMemberRelationById(Long id);
}

View File

@@ -0,0 +1,89 @@
package com.jsowell.pile.service.impl;
import java.util.List;
import com.jsowell.common.util.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jsowell.pile.mapper.ShareprofitMerchantMemberRelationMapper;
import com.jsowell.pile.domain.shareprofit.ShareprofitMerchantMemberRelation;
import com.jsowell.pile.service.IShareprofitMerchantMemberRelationService;
/**
* 运营商--分润人关系Service业务层处理
*
* @author jsowell
* @date 2024-09-12
*/
@Service
public class ShareprofitMerchantMemberRelationServiceImpl implements IShareprofitMerchantMemberRelationService {
@Autowired
private ShareprofitMerchantMemberRelationMapper shareprofitMerchantMemberRelationMapper;
/**
* 查询运营商--分润人关系
*
* @param id 运营商--分润人关系主键
* @return 运营商--分润人关系
*/
@Override
public ShareprofitMerchantMemberRelation selectShareprofitMerchantMemberRelationById(Long id) {
return shareprofitMerchantMemberRelationMapper.selectShareprofitMerchantMemberRelationById(id);
}
/**
* 查询运营商--分润人关系列表
*
* @param shareprofitMerchantMemberRelation 运营商--分润人关系
* @return 运营商--分润人关系
*/
@Override
public List<ShareprofitMerchantMemberRelation> selectShareprofitMerchantMemberRelationList(ShareprofitMerchantMemberRelation shareprofitMerchantMemberRelation) {
return shareprofitMerchantMemberRelationMapper.selectShareprofitMerchantMemberRelationList(shareprofitMerchantMemberRelation);
}
/**
* 新增运营商--分润人关系
*
* @param shareprofitMerchantMemberRelation 运营商--分润人关系
* @return 结果
*/
@Override
public int insertShareprofitMerchantMemberRelation(ShareprofitMerchantMemberRelation shareprofitMerchantMemberRelation) {
shareprofitMerchantMemberRelation.setCreateTime(DateUtils.getNowDate());
return shareprofitMerchantMemberRelationMapper.insertShareprofitMerchantMemberRelation(shareprofitMerchantMemberRelation);
}
/**
* 修改运营商--分润人关系
*
* @param shareprofitMerchantMemberRelation 运营商--分润人关系
* @return 结果
*/
@Override
public int updateShareprofitMerchantMemberRelation(ShareprofitMerchantMemberRelation shareprofitMerchantMemberRelation) {
return shareprofitMerchantMemberRelationMapper.updateShareprofitMerchantMemberRelation(shareprofitMerchantMemberRelation);
}
/**
* 批量删除运营商--分润人关系
*
* @param ids 需要删除的运营商--分润人关系主键
* @return 结果
*/
@Override
public int deleteShareprofitMerchantMemberRelationByIds(Long[] ids) {
return shareprofitMerchantMemberRelationMapper.deleteShareprofitMerchantMemberRelationByIds(ids);
}
/**
* 删除运营商--分润人关系信息
*
* @param id 运营商--分润人关系主键
* @return 结果
*/
@Override
public int deleteShareprofitMerchantMemberRelationById(Long id) {
return shareprofitMerchantMemberRelationMapper.deleteShareprofitMerchantMemberRelationById(id);
}
}