代码优化

This commit is contained in:
Administrator 2025-09-12 14:22:28 +08:00
parent b142d5542b
commit 69344b3d82
1 changed files with 9 additions and 0 deletions

View File

@ -406,10 +406,14 @@ public class EmployeeRelationController {
@GetMapping("/getPreparationsByBm")
@WeaPermission(publicPermission = true)
public List<Map<String, Object>> getPreparationsByBm(@RequestParam("deptId") String deptId){
log.error("getPreparationsByBm.deptId:{}", deptId);
log.error("getPreparationsByBm.hrRemoteApiService:{}", hrRemoteApiService);
log.error("getPreparationsByBm.tenant_key:{}", tenant_key);
List<Map<String, Object>> list = new ArrayList<>();
HrComEstCfgInfoParam hrComEstCfgInfoParam = new HrComEstCfgInfoParam();
hrComEstCfgInfoParam.setFindLatestParent(false);
hrComEstCfgInfoParam.setOrgId(Long.parseLong(deptId));
log.error("getPreparationsByBm.hrComEstCfgInfoParam:{}", hrComEstCfgInfoParam);
WeaResult<HrComEstCfgInfoDto> estCfgInfo = hrRemoteApiService.getEstCfgInfo(tenant_key, 1167276462243069953L, hrComEstCfgInfoParam);
log.error("getPreparationsByBm.estCfgInfo:{}", estCfgInfo);
HrComEstCfgInfoDto data = new HrComEstCfgInfoDto();
@ -418,6 +422,11 @@ public class EmployeeRelationController {
}
Map<String, Object> map = new HashMap<>();
map.put("data",data);
map.put("deptId",deptId);
map.put("hrRemoteApiService",hrRemoteApiService);
map.put("tenant_key",tenant_key);
map.put("hrComEstCfgInfoParam",hrComEstCfgInfoParam);
map.put("estCfgInfo",estCfgInfo);
list.add(map);
log.error("getPreparationsByBm.HrComEstCfgInfoDto:{}",data);
return list;