| | |
| | | <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 |
| | | 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 |
| | |
| | | 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=")"> |