0320-北仑:企业九维数据+客户分层导入+消息提醒;版本更新通知公告限制部门可见
This commit is contained in:
@@ -857,6 +857,28 @@
|
||||
select id,cust_name from cust_info_business where social_credit_code = #{socialCreditCode}
|
||||
</select>
|
||||
|
||||
<select id="selectExistingSocialCreditCodes" resultType="java.lang.String">
|
||||
select social_credit_code
|
||||
from cust_info_business_${deptCode}
|
||||
where social_credit_code in
|
||||
<foreach item="socialCreditCode" collection="socialCreditCodes" open="(" separator="," close=")">
|
||||
#{socialCreditCode}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<update id="batchUpdateCustLevelBySocialCreditCode">
|
||||
update cust_info_business_${deptCode}
|
||||
set cust_level = case social_credit_code
|
||||
<foreach item="item" collection="list">
|
||||
when #{item.socialCreditCode} then #{item.custLevel}
|
||||
</foreach>
|
||||
end
|
||||
where social_credit_code in
|
||||
<foreach item="item" collection="list" open="(" separator="," close=")">
|
||||
#{item.socialCreditCode}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<insert id="insertCustomersToBusinessByScCode" parameterType="java.util.List">
|
||||
INSERT INTO cust_info_business
|
||||
(cust_id,cust_name, social_credit_code, update_by, update_time, cust_phone, industry, asset, credit)
|
||||
@@ -866,4 +888,4 @@
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user