老数据数据处理
This commit is contained in:
@@ -10,6 +10,44 @@
|
||||
update xfsg_sign_franchise
|
||||
set sign_type = 1
|
||||
</update>
|
||||
<update id="updateSpecific">
|
||||
<foreach collection="list" separator=";" item ="item" index="index">
|
||||
update xfsg_sign_franchise
|
||||
<set>
|
||||
<if test="item.contractCode != null">
|
||||
contract_code = #{item.contractCode},
|
||||
</if>
|
||||
<if test="item.contractStartTime != null">
|
||||
contract_start_time = #{item.contractStartTime},
|
||||
</if>
|
||||
<if test="item.contractEndTime != null">
|
||||
contract_end_time = #{item.contractEndTime},
|
||||
</if>
|
||||
<if test="item.partnershipSignatorySecond != null and item.partnershipSignatorySecond != ''">
|
||||
partnership_signatory_second = #{item.partnershipSignatorySecond},
|
||||
</if>
|
||||
<if test="item.partnershipSignatorySecondIdNumber != null and item.partnershipSignatorySecondIdNumber!=''">
|
||||
partnership_signatory_second_id_number = #{item.partnershipSignatorySecondIdNumber},
|
||||
</if>
|
||||
<if test="item.partnershipSignatorySecondMobile !=null and item.partnershipSignatorySecondMobile != '' ">
|
||||
partnership_signatory_second_mobile = #{item.partnershipSignatorySecondMobile},
|
||||
</if>
|
||||
<if test="item.introductionAward !=null and item.introductionAward !=''">
|
||||
introduction_award = #{item.introductionAward},
|
||||
</if>
|
||||
<if test="item.introduceStore !=null and item.introduceStore!=''">
|
||||
introduce_store = #{item.introduceStore},
|
||||
</if>
|
||||
<if test="item.introducer!=null and item.introducer!=''">
|
||||
introducer = #{item.introducer},
|
||||
</if>
|
||||
<if test="item.protectiveDistance!=null">
|
||||
protective_distance = #{item.protectiveDistance},
|
||||
</if>
|
||||
</set>
|
||||
where shop_id = #{item.shopId}
|
||||
</foreach>
|
||||
</update>
|
||||
<select id="selectByShopId" resultType="com.cool.store.entity.SignFranchiseDO">
|
||||
select *
|
||||
from xfsg_sign_franchise
|
||||
@@ -28,4 +66,11 @@
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectAllByShopIds" resultType="com.cool.store.entity.SignFranchiseDO">
|
||||
select * from xfsg_sign_franchise
|
||||
where shop_id in
|
||||
<foreach collection="list" open="(" separator="," close=")" item="item" index="index">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user