|
|
|
@ -43,6 +43,7 @@ public class ManContController { |
|
|
|
/*根据主表id拿到表单字段信息*/ |
|
|
|
@RequestMapping(value = "getParentOrgsByDeviceNo") |
|
|
|
public JsonData getParentOrgsByDeviceNo(@RequestBody Map<String,String> requestBody) { |
|
|
|
//System.out.println("getParentOrgsByDeviceNo");
|
|
|
|
|
|
|
|
String paramType = requestBody.get("paramType"); |
|
|
|
String paramValue = requestBody.get("paramValue"); |
|
|
|
@ -58,29 +59,35 @@ public class ManContController { |
|
|
|
parentOrgs.add("224"); |
|
|
|
return JsonData.buildSuccess(parentOrgs); |
|
|
|
}else{*/ |
|
|
|
//System.out.println();
|
|
|
|
List<String> parentOrgs = userService.getAllParentOrgForEmp(manCont); |
|
|
|
return JsonData.buildSuccess(parentOrgs); |
|
|
|
//return JsonData.buildError("当前deviceNo没有绑定员工,可以xxl-job手动同步一下试试");
|
|
|
|
/*}*/ |
|
|
|
|
|
|
|
}else{ |
|
|
|
//System.out.println("当前deviceNo绑定的员工不在职");
|
|
|
|
return JsonData.buildError("当前deviceNo绑定的员工不在职"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
System.out.println("当前deviceNo没有绑定员工,可以xxl-job手动同步一下试试-->"+paramValue); |
|
|
|
return JsonData.buildError("当前deviceNo没有绑定员工,可以xxl-job手动同步一下试试"); |
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
//System.out.println("paramValue 非法,isBlank");
|
|
|
|
return JsonData.buildError("paramValue 非法,isBlank"); |
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
//System.out.println("paramType 非法,仅支持deviceNo");
|
|
|
|
return JsonData.buildError("paramType 非法,仅支持deviceNo"); |
|
|
|
} |
|
|
|
}else{ |
|
|
|
//System.out.println("paramType 非法, isBlank");
|
|
|
|
return JsonData.buildError("paramType 非法, isBlank"); |
|
|
|
} |
|
|
|
|
|
|
|
|