订单详情增加显示引车员名称

This commit is contained in:
许允枞 2024-11-12 17:08:36 +08:00
parent 3e431533f1
commit 900ec6e914
2 changed files with 11 additions and 1 deletions

View File

@ -118,7 +118,7 @@ public class AppInspectionPartnerServiceImpl extends ServiceImpl<AppInspectionPa
@Autowired @Autowired
private RoleService roleService; private RoleService roleService;
@Autowired @Autowired
private IInspectionWorkNodeService inspectionWorkNodeService; private AdminUserService adminUserService;
@Override @Override
public IPage<PartnerListVo> partnerList(Page<PartnerListVo> page, PartnerListQuery partnerListQuery) { public IPage<PartnerListVo> partnerList(Page<PartnerListVo> page, PartnerListQuery partnerListQuery) {
@ -1461,6 +1461,13 @@ public class AppInspectionPartnerServiceImpl extends ServiceImpl<AppInspectionPa
res.setWorkerName(Optional.ofNullable(worker.getNickname()).orElse(null)); res.setWorkerName(Optional.ofNullable(worker.getNickname()).orElse(null));
res.setWorkerPhone(worker.getMobile()); res.setWorkerPhone(worker.getMobile());
} }
/*根据工单表中的leadManId查询对应的引车员*/
if (ObjectUtil.isNotNull(info.getLeadManId())){
AdminUserDO leadMan = adminUserService.getById(info.getLeadManId());
res.setLeadManName(leadMan.getNickname());
}else {
res.setLeadManName("");
}
res.setBuyUserName(Optional.ofNullable(buyUser.getNickname()).orElse("")); res.setBuyUserName(Optional.ofNullable(buyUser.getNickname()).orElse(""));
res.setBuyUserPhone(buyUser.getMobile()); res.setBuyUserPhone(buyUser.getMobile());
res.setCarNum(info.getCarNum()); res.setCarNum(info.getCarNum());

View File

@ -82,4 +82,7 @@ public class InspectionInfoVo {
//是否制证并完成 1完成 //是否制证并完成 1完成
private String makeCert; private String makeCert;
private String orderStatus; private String orderStatus;
/*引车员名字*/
private String leadManName;
} }