Commit 4f186c06 by 徐高华

非空判断

parent 3eb310ff
...@@ -134,7 +134,7 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService { ...@@ -134,7 +134,7 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
log.info("只能托管一个企业={},{}", uuid, corpName); log.info("只能托管一个企业={},{}", uuid, corpName);
return ServiceResponse.failure("9999", "只能托管一个企业"); return ServiceResponse.failure("9999", "只能托管一个企业");
} }
if(!openStaff.getStaffId().equals(staff.getStaffId())) { if(null != staff && !openStaff.getStaffId().equals(staff.getStaffId())) {
this.openStaffService.logout(uuid, "userid不能关联2个成员", 0, null); this.openStaffService.logout(uuid, "userid不能关联2个成员", 0, null);
log.info("userid不能关联2个成员={},{},{}", openStaff.getStaffId(), staff.getStaffId(),qwUserId); log.info("userid不能关联2个成员={},{},{}", openStaff.getStaffId(), staff.getStaffId(),qwUserId);
return ServiceResponse.failure("9999", "userid不能关联2个成员"); return ServiceResponse.failure("9999", "userid不能关联2个成员");
......
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