mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 17:40:13 +08:00
新增 运营商--分润会员对应关系表、实体、Service
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jsowell.pile.mapper.ShareprofitMerchantMemberRelationMapper">
|
||||
|
||||
<resultMap type="com.jsowell.pile.domain.shareprofit.ShareprofitMerchantMemberRelation" id="ShareprofitMerchantMemberRelationResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="merchantId" column="merchant_id" />
|
||||
<result property="memberPhoneNumber" column="member_phone_number" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectShareprofitMerchantMemberRelationVo">
|
||||
select id, merchant_id, member_phone_number, create_time from shareprofit_merchant_member_relation
|
||||
</sql>
|
||||
|
||||
<select id="selectShareprofitMerchantMemberRelationList" parameterType="com.jsowell.pile.domain.shareprofit.ShareprofitMerchantMemberRelation" resultMap="ShareprofitMerchantMemberRelationResult">
|
||||
<include refid="selectShareprofitMerchantMemberRelationVo"/>
|
||||
<where>
|
||||
<if test="merchantId != null "> and merchant_id = #{merchantId}</if>
|
||||
<if test="memberPhoneNumber != null and memberPhoneNumber != ''"> and member_phone_number = #{memberPhoneNumber}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectShareprofitMerchantMemberRelationById" parameterType="Long" resultMap="ShareprofitMerchantMemberRelationResult">
|
||||
<include refid="selectShareprofitMerchantMemberRelationVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertShareprofitMerchantMemberRelation" parameterType="com.jsowell.pile.domain.shareprofit.ShareprofitMerchantMemberRelation" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into shareprofit_merchant_member_relation
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="merchantId != null">merchant_id,</if>
|
||||
<if test="memberPhoneNumber != null">member_phone_number,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="merchantId != null">#{merchantId},</if>
|
||||
<if test="memberPhoneNumber != null">#{memberPhoneNumber},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateShareprofitMerchantMemberRelation" parameterType="com.jsowell.pile.domain.shareprofit.ShareprofitMerchantMemberRelation">
|
||||
update shareprofit_merchant_member_relation
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="merchantId != null">merchant_id = #{merchantId},</if>
|
||||
<if test="memberPhoneNumber != null">member_phone_number = #{memberPhoneNumber},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteShareprofitMerchantMemberRelationById" parameterType="Long">
|
||||
delete from shareprofit_merchant_member_relation where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteShareprofitMerchantMemberRelationByIds" parameterType="String">
|
||||
delete from shareprofit_merchant_member_relation where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
16
jsowell-pile/src/main/resources/rebel.xml
Normal file
16
jsowell-pile/src/main/resources/rebel.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
This is the JRebel configuration file. It maps the running application to your IDE workspace, enabling JRebel reloading for this project.
|
||||
Refer to https://manuals.jrebel.com/jrebel/standalone/config.html for more information.
|
||||
-->
|
||||
<application generated-by="intellij" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_3.xsd">
|
||||
|
||||
<id>jsowell-pile</id>
|
||||
|
||||
<classpath>
|
||||
<dir name="D:/ideaProjects/jsowell-charger-web/jsowell-pile/target/classes">
|
||||
</dir>
|
||||
</classpath>
|
||||
|
||||
</application>
|
||||
Reference in New Issue
Block a user