删除废弃代码

This commit is contained in:
Guoqs
2024-11-29 16:02:51 +08:00
parent 8bb6b3530b
commit 9abaf38542
12 changed files with 0 additions and 1078 deletions

View File

@@ -1,129 +0,0 @@
<?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.ShareprofitGroupMapper">
<resultMap type="com.jsowell.pile.domain.shareprofit.ShareprofitGroup" id="ShareprofitGroupResult">
<result property="id" column="id" />
<result property="groupCode" column="group_code" />
<result property="merchantId" column="merchant_id" />
<result property="stationId" column="station_id" />
<result property="memberPhoneNumber" column="member_phone_number" />
<result property="electricityFeeScale" column="electricity_fee_scale" />
<result property="serviceFeeScale" column="service_fee_scale" />
<result property="undertakeHandlingCharge" column="undertake_handling_charge" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectShareprofitGroupVo">
select id, group_code, merchant_id, station_id, member_phone_number, electricity_fee_scale, service_fee_scale, undertake_handling_charge, create_time, create_by, update_time, update_by, del_flag from shareprofit_group
</sql>
<select id="selectShareprofitGroupList" parameterType="com.jsowell.pile.domain.shareprofit.ShareprofitGroup" resultMap="ShareprofitGroupResult">
<include refid="selectShareprofitGroupVo"/>
<where>
<if test="groupCode != null and groupCode != ''"> and group_code = #{groupCode}</if>
<if test="merchantId != null "> and merchant_id = #{merchantId}</if>
<if test="stationId != null "> and station_id = #{stationId}</if>
<if test="memberPhoneNumber != null and memberPhoneNumber != ''"> and member_phone_number = #{memberPhoneNumber}</if>
<if test="electricityFeeScale != null and electricityFeeScale != ''"> and electricity_fee_scale = #{electricityFeeScale}</if>
<if test="serviceFeeScale != null and serviceFeeScale != ''"> and service_fee_scale = #{serviceFeeScale}</if>
<if test="undertakeHandlingCharge != null and undertakeHandlingCharge != ''"> and undertake_handling_charge = #{undertakeHandlingCharge}</if>
</where>
</select>
<select id="selectShareprofitGroupById" parameterType="Long" resultMap="ShareprofitGroupResult">
<include refid="selectShareprofitGroupVo"/>
where id = #{id}
</select>
<insert id="insertShareprofitGroup" parameterType="com.jsowell.pile.domain.shareprofit.ShareprofitGroup" useGeneratedKeys="true" keyProperty="id">
insert into shareprofit_group
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="groupCode != null">group_code,</if>
<if test="merchantId != null">merchant_id,</if>
<if test="stationId != null">station_id,</if>
<if test="memberPhoneNumber != null">member_phone_number,</if>
<if test="electricityFeeScale != null">electricity_fee_scale,</if>
<if test="serviceFeeScale != null">service_fee_scale,</if>
<if test="undertakeHandlingCharge != null">undertake_handling_charge,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="delFlag != null">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="groupCode != null">#{groupCode},</if>
<if test="merchantId != null">#{merchantId},</if>
<if test="stationId != null">#{stationId},</if>
<if test="memberPhoneNumber != null">#{memberPhoneNumber},</if>
<if test="electricityFeeScale != null">#{electricityFeeScale},</if>
<if test="serviceFeeScale != null">#{serviceFeeScale},</if>
<if test="undertakeHandlingCharge != null">#{undertakeHandlingCharge},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="delFlag != null">#{delFlag},</if>
</trim>
</insert>
<update id="updateShareprofitGroup" parameterType="com.jsowell.pile.domain.shareprofit.ShareprofitGroup">
update shareprofit_group
<trim prefix="SET" suffixOverrides=",">
<if test="groupCode != null">group_code = #{groupCode},</if>
<if test="merchantId != null">merchant_id = #{merchantId},</if>
<if test="stationId != null">station_id = #{stationId},</if>
<if test="memberPhoneNumber != null">member_phone_number = #{memberPhoneNumber},</if>
<if test="electricityFeeScale != null">electricity_fee_scale = #{electricityFeeScale},</if>
<if test="serviceFeeScale != null">service_fee_scale = #{serviceFeeScale},</if>
<if test="undertakeHandlingCharge != null">undertake_handling_charge = #{undertakeHandlingCharge},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteShareprofitGroupById" parameterType="Long">
delete from shareprofit_group where id = #{id}
</delete>
<delete id="deleteShareprofitGroupByIds" parameterType="String">
delete from shareprofit_group where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="getShareprofitGroupVOList" resultType="com.jsowell.pile.vo.web.ShareprofitGroupVO">
SELECT
t1.merchant_id AS merchantId,
t2.merchant_name AS merchantName,
t1.station_id AS stationId,
t3.station_name AS stationName,
t1.member_phone_number AS memberPhoneNumber,
t1.electricity_fee_scale AS electricityFeeScale,
t1.service_fee_scale AS serviceFeeScale,
t1.undertake_handling_charge AS undertakeHandlingCharge
FROM
shareprofit_group t1
JOIN pile_merchant_info t2 ON t1.merchant_id = t2.id
AND t1.del_flag = '0'
JOIN pile_station_info t3 ON t1.station_id = t3.id
AND t1.del_flag = '0'
<where>
<if test="merchantId != null"> and t1.merchant_id = #{merchantId}</if>
<if test="stationId != null"> and t1.station_id = #{stationId}</if>
<if test="memberPhoneNumber != null"> and t1.member_phone_number = #{memberPhoneNumber}</if>
</where>
</select>
</mapper>

View File

@@ -1,65 +0,0 @@
<?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>