Commit b3074c26 by qwmqiuwenmin

fix

parent 8b081ecf
......@@ -147,6 +147,7 @@ public class StaffController extends WebBaseController{
return resultResponse(HaoBanErrCode.ERR_2);
}
String[] staffArr = staffDepartmentRelatedIds.split(",");
int size = staffArr.length;
for (String string : staffArr) {
StaffDepartmentRelatedDTO related = staffDepartmentRelatedApiService.getByStaffDepartmentRelatedId(string);
if(related == null){
......@@ -154,7 +155,9 @@ public class StaffController extends WebBaseController{
}
DepartmentDTO department = departmentApiService.selectById(related.getDepartmentId());
if(department.getTempFlag() != null && department.getTempFlag() == 1){
//return resultResponse(HaoBanErrCode.ERR_10014);
if(size == 1){
return resultResponse(HaoBanErrCode.ERR_10014);
}
continue;
}
staffApiService.del(string);
......
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