代码优化
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user