Commit 2ac9ff02 by 墨竹

feat:去除绑定

parent 1ae2695f
...@@ -282,11 +282,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe ...@@ -282,11 +282,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
private ServiceResponse getManageFlagBind(StaffClerkRelationDTO staffClerkRelation) { private ServiceResponse getManageFlagBind(StaffClerkRelationDTO staffClerkRelation) {
boolean bindFlag = staffClerkRelationService.getBindByStaffIdAndEnterpriseId(staffClerkRelation.getWxEnterpriseId(), staffClerkRelation.getStaffId()); boolean bindFlag = staffClerkRelationService.getBindByStaffIdAndEnterpriseId(staffClerkRelation.getWxEnterpriseId(), staffClerkRelation.getStaffId());
if (bindFlag) { if (bindFlag) {
return ServiceResponse.failure("3","该员工已经绑定过导购,不允许再次绑定区经/督导"); return ServiceResponse.failure("3","该员工已经绑定,不允许绑定区经/督导");
}
boolean flag = staffClerkRelationService.getBindByManage(staffClerkRelation.getEnterpriseId());
if (flag) {
return ServiceResponse.failure("3","一个商户只能一个区经/督导");
} }
return ServiceResponse.success(); return ServiceResponse.success();
} }
......
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