Commit b13cbb04 by 徐高华

导购绑定

parent 754a032f
......@@ -303,7 +303,8 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
@Override
public ServiceResponse wxBindStaffClerk(StaffClerkRelationDTO staffClerkRelation, String optStaffId, int channelCode) {
Integer manageFlag = staffClerkRelation.getManageFlag();
if (manageFlag != null && manageFlag == 1) {
logger.info("manageFlag={}",manageFlag);
if (manageFlag != null && manageFlag.intValue() == 1) {
ServiceResponse serviceResponse = getManageFlagBind(staffClerkRelation);
if (!serviceResponse.isSuccess()) {
return serviceResponse;
......
......@@ -937,7 +937,7 @@ public class WxStaffController extends WebBaseController {
}
String storeId = "";
String storeName = "";
if (manageFlag != null && manageFlag == 1) {
if (manageFlag != null && manageFlag.intValue() == 1) {
// 区经无门店
} else {
storeId = clerk.getStoreId();
......@@ -959,6 +959,11 @@ public class WxStaffController extends WebBaseController {
StaffClerkRelationDTO staffClerkRelation = staffClerkRelationApiService.getByCodeAndEnterpriseId(clerkId,
enterpriseId);
if(null != staffClerkRelation) {
return resultResponse(HaoBanErrCode.ERR_DEFINE, "此导购已绑定成员", null,
"此导购已绑定成员");
}
if (auditType == 2) {
// 无需审核
if (staffClerkRelation == null) {
......
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