| | |
| | | |
| | | List<WrkMast> selectByCrnNo(@Param("crnNo") Integer crnNo); |
| | | |
| | | List<WrkMast> selectByCrnNoLog(@Param("crnNo") Integer crnNo); |
| | | |
| | | // @Select("select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no") |
| | | List<WrkMast> selectToBeCompleteData(); |
| | | |
| | |
| | | if (!wrkMasts.isEmpty()) { |
| | | continue; |
| | | } |
| | | List<TaskWrkLog> taskWrkLogs = taskWrkLogService.selectList(new EntityWrapper<TaskWrkLog>().eq("CRN_NO",crnProtocol.getCrnNo()).orderBy("COMPLETE_TIME",false)); |
| | | if (!taskWrkLogs.isEmpty()) { |
| | | List<WrkMast> WrkMastLogList = wrkMastMapper.selectByCrnNoLog(crnProtocol.getCrnNo()); |
| | | if (!WrkMastLogList.isEmpty()) { |
| | | boolean signT = false; |
| | | for (TaskWrkLog taskWrkLog : taskWrkLogs){ |
| | | Date completeTime = taskWrkLog.getCompleteTime(); |
| | | for (WrkMast wrkMast : WrkMastLogList){ |
| | | Date completeTime = wrkMast.getIoTime(); |
| | | if (completeTime==null){ |
| | | continue; |
| | | } |
| | |
| | | select * from asr_wrk_mast where 1=1 and crn_no = #{crnNo} |
| | | </select> |
| | | |
| | | <select id="selectByCrnNoLog" resultMap="BaseResultMap"> |
| | | select * from asr_wrk_mast_log where 1=1 and crn_no = #{crnNo} |
| | | order by io_time desc |
| | | </select> |
| | | |
| | | <select id="selectToBeCompleteData" resultMap="BaseResultMap"> |
| | | select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type != 103 and io_type != 104 and io_type != 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no |
| | | </select> |