| | |
| | | WHERE |
| | | TPC.deleted = 0 |
| | | </select> |
| | | <select id="findByTaskId" resultType="com.ycl.domain.entity.ProcessCoding"> |
| | | SELECT * from t_process_coding where task_id = #{taskId} |
| | | </select> |
| | | |
| | | <!-- 自定义批量更新,使用前判断list是否为空 转换为sql |
| | | update t_process_coding |
| | |
| | | when id=#{item.id} then #{item.status} |
| | | </foreach> |
| | | </trim> |
| | | <trim prefix="overtime_status =case" suffix="end,"><!-- 构造case语法 末尾加上end,如果需要更新多个字段复制这个trim --> |
| | | <foreach collection="list" item="item"> |
| | | when id=#{item.id} then #{item.overtimeStatus} |
| | | </foreach> |
| | | </trim> |
| | | <trim prefix="start_task_time =case" suffix="end,"><!-- 构造case语法 末尾加上end,如果需要更新多个字段复制这个trim --> |
| | | <foreach collection="list" item="item"> |
| | | when id=#{item.id} then #{item.startTaskTime} |
| | | </foreach> |
| | | </trim> |
| | | </trim> |
| | | where id in |
| | | <foreach collection="list" index="index" item="item" separator="," open="(" close=")"> |