|
|
@ -31,11 +31,16 @@ public class ManContController { |
|
|
if(!StringUtils.isBlank(paramValue)){ |
|
|
if(!StringUtils.isBlank(paramValue)){ |
|
|
ManCont manCont = userService.getManContByDeviceNo(paramType,paramValue); |
|
|
ManCont manCont = userService.getManContByDeviceNo(paramType,paramValue); |
|
|
if(null!=manCont){ |
|
|
if(null!=manCont){ |
|
|
|
|
|
if(null!=manCont.getEmpType() && manCont.getEmpType()<9){ |
|
|
|
|
|
//查出该员工的所有父级部门
|
|
|
|
|
|
List<String> parentOrgs = userService.getAllParentOrgForEmp(manCont); |
|
|
|
|
|
return JsonData.buildSuccess(parentOrgs); |
|
|
|
|
|
//return JsonData.buildError("当前deviceNo没有绑定员工,可以xxl-job手动同步一下试试");
|
|
|
|
|
|
}else{ |
|
|
|
|
|
return JsonData.buildError("当前deviceNo绑定的员工不在职"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查出该员工的所有父级部门
|
|
|
|
|
|
List<String> parentOrgs = userService.getAllParentOrgForEmp(manCont); |
|
|
|
|
|
return JsonData.buildSuccess(parentOrgs); |
|
|
|
|
|
//return JsonData.buildError("当前deviceNo没有绑定员工,可以xxl-job手动同步一下试试");
|
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
}else{ |
|
|
return JsonData.buildError("当前deviceNo没有绑定员工,可以xxl-job手动同步一下试试"); |
|
|
return JsonData.buildError("当前deviceNo没有绑定员工,可以xxl-job手动同步一下试试"); |
|
|
|