Commit 18033394 by qwmqiuwenmin

fix

parent 78aece96
......@@ -461,7 +461,8 @@ public class DepartmentContoller extends WebBaseController{
String departmentId = departmentAddQO.getDepartmentId();
Boolean addFlag = departmentAddQO.getAddFlag();
//在部门下新增部门
if(addFlag != null && addFlag) {
DepartmentDTO oldDepartment = departmentApiService.selectById(departmentId);
if(addFlag != null && addFlag && oldDepartment == null) {
DepartmentDTO department = new DepartmentDTO();
department.setParentDepartmentId(parentId);
department.setWxEnterpriseId(dto.getWxEnterpriseId());
......
......@@ -137,7 +137,13 @@ public class StaffController extends WebBaseController{
if(staff == null) {
return resultResponse(HaoBanErrCode.ERR_10006);
}
String phoneNumber = staffDTO.getPhoneNumber();
String nationcode = staffDTO.getNationCode();
String wxEnterpriseId = staff.getWxEnterpriseId();
StaffDTO old = staffApiService.selectByNationcodeAndPhoneNumber(wxEnterpriseId,nationcode,phoneNumber);
if(old != null && !old.getStaffId().equals(staffId)){
return resultResponse(HaoBanErrCode.ERR_10005);
}
staffApiService.staffEdit(staffDTO,departmentIds);
return resultResponse(HaoBanErrCode.ERR_1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment