技术监督接口修改
This commit is contained in:
@@ -76,7 +76,10 @@ public class ThsOverRunLogServiceImpl extends ServiceImpl<ThsOverRunLogMapper, T
|
||||
|
||||
});
|
||||
}
|
||||
return SuperviceRunLogVo.builder().overRunLog(thsOverRunLogs).thsSupervise(thsSupervise).build();
|
||||
SuperviceRunLogVo superviceRunLogVo = new SuperviceRunLogVo();
|
||||
superviceRunLogVo.setThsSupervise(thsSupervise);
|
||||
superviceRunLogVo.setOverRunLog(thsOverRunLogs);
|
||||
return superviceRunLogVo;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -451,6 +451,9 @@ public class ThsSuperviseServiceImpl extends ServiceImpl<ThsSuperviseMapper, Ths
|
||||
public String dowloadAlarmFormwork(Integer type, Integer formworkType, String supIndex, HttpServletResponse response) {
|
||||
ThsAlarmFormwork thsAlarmFormwork = thsAlarmFormworkMapper.selectOne(new LambdaQueryWrapper<ThsAlarmFormwork>().eq(ThsAlarmFormwork::getFormworkType, formworkType)
|
||||
.eq(ThsAlarmFormwork::getType, type).last("limit 1"));
|
||||
if (thsAlarmFormwork == null) {
|
||||
throw new BusinessException("请先上传下发单模板单据!");
|
||||
}
|
||||
String fileUrl = fileStorageUtil.getFileUrl(thsAlarmFormwork.getPath());
|
||||
ThsSupervise thsSupervise = new ThsSupervise();
|
||||
thsSupervise.setModifyTime(new Date());
|
||||
@@ -502,6 +505,8 @@ public class ThsSuperviseServiceImpl extends ServiceImpl<ThsSuperviseMapper, Ths
|
||||
superviseVo.setAlertType(AlertTypeEnum.ORANGE.getCode());
|
||||
} else if (progressTime >= 5) {
|
||||
superviseVo.setAlertType(AlertTypeEnum.YELLOW.getCode());
|
||||
} else {
|
||||
superviseVo.setAlertType(AlertTypeEnum.BLACK.getCode());
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -560,7 +565,6 @@ public class ThsSuperviseServiceImpl extends ServiceImpl<ThsSuperviseMapper, Ths
|
||||
* @param superviseParam
|
||||
* @return
|
||||
*/
|
||||
@DS("process")
|
||||
@Override
|
||||
public List<ThsStrategyVo> selectStrategyList(SuperviseParam superviseParam) {
|
||||
return thsWarnStrategyMapper.selectStrategyList(superviseParam);
|
||||
|
||||
Reference in New Issue
Block a user