master
Yangwl 1 year ago
parent 37684cc7d5
commit 96a604e73d

@ -155,7 +155,16 @@ public class OpenController extends BaseController {
return openService.GetOaNodeInfo(requestId); return openService.GetOaNodeInfo(requestId);
} }
/**
* HR
* dateTime :"2024-01-05"
* @param dateTime
* @return
*/
@GetMapping("/GetHrUserInfo")
public AjaxResult GetHrUserInfo(@RequestParam("dateTime") String dateTime) {
return openService.GetHrUserInfo(dateTime);
}
} }

@ -32,4 +32,6 @@ public interface OpenService {
AjaxResult OAInspection(Map<String, Object> paramMap); AjaxResult OAInspection(Map<String, Object> paramMap);
AjaxResult GetOaNodeInfo(String requestId); AjaxResult GetOaNodeInfo(String requestId);
AjaxResult GetHrUserInfo(String dateTime);
} }

@ -75,6 +75,9 @@ public class OpenServiceImpl implements OpenService {
@Value("${OA.getnodeInfo}") @Value("${OA.getnodeInfo}")
private String getnodeInfo; private String getnodeInfo;
@Value("${HR.url}")
private String hr_url;
@Autowired @Autowired
private OpenMapper openMapper; private OpenMapper openMapper;
@ -411,8 +414,6 @@ public class OpenServiceImpl implements OpenService {
String requestName = paramMap.get("requestName").toString(); String requestName = paramMap.get("requestName").toString();
String workflowId = paramMap.get("workflowId").toString(); String workflowId = paramMap.get("workflowId").toString();
String mainObject = paramMap.get("mainObject").toString(); String mainObject = paramMap.get("mainObject").toString();
String details = paramMap.get("details").toString();
// Building the postData string using StringBuilder // Building the postData string using StringBuilder
StringBuilder postDataBuilder = new StringBuilder(); StringBuilder postDataBuilder = new StringBuilder();
postDataBuilder.append("user=").append(user) postDataBuilder.append("user=").append(user)
@ -421,6 +422,7 @@ public class OpenServiceImpl implements OpenService {
.append("&workflowId=").append(workflowId) .append("&workflowId=").append(workflowId)
.append("&mainObject=").append(URLEncoder.encode(mainObject, StandardCharsets.UTF_8.toString())); .append("&mainObject=").append(URLEncoder.encode(mainObject, StandardCharsets.UTF_8.toString()));
if (Constants.WORKFLOWID_ZL0020.equals(workflowId)) { if (Constants.WORKFLOWID_ZL0020.equals(workflowId)) {
String details = paramMap.get("details").toString();
postDataBuilder.append("&details=").append(URLEncoder.encode(details, StandardCharsets.UTF_8.toString())); postDataBuilder.append("&details=").append(URLEncoder.encode(details, StandardCharsets.UTF_8.toString()));
} }
String postData = postDataBuilder.toString(); String postData = postDataBuilder.toString();
@ -454,4 +456,16 @@ public class OpenServiceImpl implements OpenService {
} }
} }
@Override
public AjaxResult GetHrUserInfo(String dateTime) {
try {
StringBuilder postDataBuilder = new StringBuilder();
postDataBuilder.append("createTime=").append("dateTime");
String result = HttpUtils.sendPost("http://lj.lanju.cn:8801/outside/api/mes/getUserList.do",postDataBuilder.toString());
return success(result);
} catch (Exception e) {
e.printStackTrace();
return error(e.getMessage());
}
}
} }

Loading…
Cancel
Save