|
|
|
@ -479,6 +479,26 @@ public class CompController extends JeecgController<Comp, ICompService> { |
|
|
|
|
@GetMapping(value = "/complistnoxq") |
|
|
|
|
public Result<?> complistnoxq(@RequestParam(name = "id", required = true) String id) { |
|
|
|
|
Comp comp = compService.getById(id); |
|
|
|
|
if (comp.getCompAdmin()!= null) { |
|
|
|
|
QueryChainWrapper<SysUser> query = sysUserService.query(); |
|
|
|
|
query.eq("work_no", comp.getCompAdmin()); |
|
|
|
|
SysUser sysUser = query.one(); |
|
|
|
|
if (sysUser != null && sysUser.getRealname() != null) { |
|
|
|
|
comp.setCompAdmin(sysUser.getRealname()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (comp.getCompOrgan() != null) { |
|
|
|
|
SysDepart sysDepart = iSysDepartService.getById(comp.getCompOrgan()); |
|
|
|
|
if (sysDepart != null && sysDepart.getDepartName() != null) { |
|
|
|
|
comp.setComporderc(sysDepart.getDepartName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (!comp.getCompTypeId().isEmpty()) { |
|
|
|
|
CompType compType = compTypeService.getById(comp.getCompTypeId()); |
|
|
|
|
if (compType != null && compType.getTypeName() != null) { |
|
|
|
|
comp.setCompTypeId(compType.getTypeName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return Result.OK(comp); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|