You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
746 B

<?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.epmet.dao.IcUserChangeDetailedDao">
<delete id="delByCustomerId">
DELETE
FROM
ic_user_change_detailed
WHERE
CUSTOMER_ID = #{customerId}
AND type = #{type}
<foreach collection="icUserIds" item="icUserId" open="AND ic_user_id IN (" separator="," close=")">
#{icUserId}
</foreach>
</delete>
<update id="deleteByIcResiUserId" parameterType="java.lang.String">
update ic_user_change_detailed set del_flag='1'
where IC_USER_ID=#{icResiUserId}
</update>
</mapper>