代码优化

This commit is contained in:
xy
2026-04-08 10:19:06 +08:00
parent 445f27143b
commit 45fd613e47
6 changed files with 7 additions and 42 deletions

View File

@@ -221,8 +221,13 @@ public class CsAppReportServiceImpl extends ServiceImpl<CsAppReportMapper, CsApp
vo.setEventNums(item.getEventList().split(",").length);
vo.setFilePath(item.getFilePath());
vo.setIsComplete(Objects.isNull(item.getFilePath()) ? 0 : 1);
vo.setApplyUser(userVO.getName());
String applyUser = item.getCreateBy();
if (applyUser != null && !applyUser.isEmpty()) {
UserVO applyUserVo = userFeignClient.getUserById(applyUser).getData();
vo.setApplyUser(Objects.isNull(applyUserVo)? null : applyUserVo.getName());
} else {
vo.setApplyUser(null);
}
CsLinePO linePO = csLineFeignClient.getById(item.getLineId()).getData();
DevDetailDTO devDetailDTO = csLedgerFeignClient.queryDevDetail(linePO.getDeviceId()).getData();
vo.setLineName(linePO.getName());