|
@@ -54,12 +54,12 @@ public class AdminPersonnelApiController extends CertifyApiController {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "员工编号", "员工编号"));
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "员工编号", "员工编号"));
|
|
|
return res;
|
|
return res;
|
|
|
}
|
|
}
|
|
|
- int x=personnelService.checkDoorId(i.getDoorId(),i.getId());
|
|
|
|
|
|
|
+ int x=personnelService.checkDoorId(i.getDoorId(),null);
|
|
|
if(x>0) {
|
|
if(x>0) {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_BEING_ERROR, "门禁", "门禁"));
|
|
res.getError().add(buildError(ErrorConstants.PARAM_BEING_ERROR, "门禁", "门禁"));
|
|
|
return res;
|
|
return res;
|
|
|
}
|
|
}
|
|
|
- int y=personnelService.checkEmployeeId(i.getEmployeeId(),i.getId());
|
|
|
|
|
|
|
+ int y=personnelService.checkEmployeeId(i.getEmployeeId(),null);
|
|
|
if (y>0) {
|
|
if (y>0) {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_BEING_ERROR, "员工编号", "员工编号"));
|
|
res.getError().add(buildError(ErrorConstants.PARAM_BEING_ERROR, "员工编号", "员工编号"));
|
|
|
return res;
|
|
return res;
|