| | |
| | | <result column="process_ins_id" property="processInsId" /> |
| | | <result column="yellow_time" property="yellowTime" /> |
| | | <result column="red_time" property="redTime" /> |
| | | <result column="overtime" property="overtime" /> |
| | | <result column="status" property="status" /> |
| | | <result column="overtime_status" property="overtimeStatus" /> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | TPC.process_ins_id, |
| | | TPC.yellow_time, |
| | | TPC.red_time, |
| | | TPC.overtime, |
| | | TPC.status, |
| | | TPC.overtime_status, |
| | | TPC.id |
| | | FROM |
| | | t_process_coding TPC |
| | |
| | | TPC.process_ins_id, |
| | | TPC.yellow_time, |
| | | TPC.red_time, |
| | | TPC.overtime, |
| | | TPC.status, |
| | | TPC.overtime_status, |
| | | TPC.id |
| | | FROM |
| | | t_process_coding TPC |
| | |
| | | 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> |
| | | where id in |
| | | <foreach collection="list" index="index" item="item" separator="," open="(" close=")"> |