|
|
@@ -171,7 +171,13 @@ public class ContractUtil {
|
|
|
RestResult userResult = personGet(hwUserContract);
|
|
|
if (ContractConst.CODE_1.equals(userResult.getCode())) {
|
|
|
System.out.println("查询员工已存在=======" + userResult);
|
|
|
- return userResult;
|
|
|
+ JSONArray jsonArray = JSONArray.parseArray(userResult.getData().toString());
|
|
|
+ JSONObject jsonObject = jsonArray.getJSONObject(0);
|
|
|
+ //在职离职 0-在职 1-离职
|
|
|
+ String isDimission = jsonObject.getString("isDimission");
|
|
|
+ if (ContractConst.CODE_0.equals(isDimission)) {
|
|
|
+ return userResult;
|
|
|
+ }
|
|
|
}
|
|
|
//添加员工
|
|
|
BatchStaffAddDTO batchStaffAddDTO = new BatchStaffAddDTO();
|