|
|
@ -83,11 +83,46 @@ |
|
|
|
</foreach> |
|
|
|
</trim> |
|
|
|
UPDATED_TIME = NOW() |
|
|
|
WHERE 1=1 |
|
|
|
<foreach collection="list" item="item" open="AND( " separator=" OR " index="index" close=")"> |
|
|
|
id = #{item.icResiUserId} |
|
|
|
</foreach> |
|
|
|
</trim> |
|
|
|
WHERE 1=1 |
|
|
|
<foreach collection="list" item="item" open="AND( " separator=" OR " index="index" close=")"> |
|
|
|
id = #{item.icResiUserId} |
|
|
|
</foreach> |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="batchUpdateDisability"> |
|
|
|
UPDATE data_sync_record_disability |
|
|
|
<trim prefix="set" suffixOverrides=","> |
|
|
|
<trim prefix="DEAL_STATUS =(case" suffix="end),"> |
|
|
|
<foreach collection="list" item="item"> |
|
|
|
<choose> |
|
|
|
<when test='item.updateStatus == true '> |
|
|
|
when id = #{item.id} then 2 |
|
|
|
</when> |
|
|
|
<otherwise> |
|
|
|
when id = #{item.id} then 1 |
|
|
|
</otherwise> |
|
|
|
</choose> |
|
|
|
</foreach> |
|
|
|
</trim> |
|
|
|
<trim prefix="DEAL_RESULT =(case" suffix="end),"> |
|
|
|
<foreach collection="list" item="item"> |
|
|
|
<choose> |
|
|
|
<when test='item.updateStatus == true '> |
|
|
|
when id = #{item.id} then '处理失败' |
|
|
|
</when> |
|
|
|
<otherwise> |
|
|
|
when id = #{item.id} then '处理成功' |
|
|
|
</otherwise> |
|
|
|
</choose> |
|
|
|
</foreach> |
|
|
|
</trim> |
|
|
|
UPDATED_TIME = NOW() |
|
|
|
</trim> |
|
|
|
WHERE 1=1 |
|
|
|
<foreach collection="list" item="item" open="AND( " separator=" OR " index="index" close=")"> |
|
|
|
id = #{item.id} |
|
|
|
</foreach> |
|
|
|
</update> |
|
|
|
|
|
|
|
<select id="list" resultType="com.epmet.dto.DataSyncRecordDisabilityDTO"> |
|
|
|