Commit f06cf027 by 墨竹

fix:绑定口子统一修改

parent 25f5bc55
......@@ -40,7 +40,7 @@ public interface StaffClerkRelationApiService {
StaffClerkRelationDTO getByCodeAndEnterpriseId(String clerkCode, String enterpriseId);
/**
* 小程序绑定
* 审核绑定
* @param staffClerkRelation
* @param optStaffId
* @param chanelCode
......
......@@ -7,9 +7,7 @@ import com.gic.clerk.api.service.ClerkService;
import com.gic.commons.util.EntityUtil;
import com.gic.haoban.manage.api.dto.StaffDTO;
import com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO;
import com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO;
import com.gic.haoban.manage.api.enums.AppPageType;
import com.gic.haoban.manage.api.enums.ChannelCodeEnum;
import com.gic.haoban.manage.api.enums.NoticeMessageTypeEnum;
import com.gic.haoban.manage.api.service.StaffApiService;
import com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService;
......@@ -525,20 +523,6 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
NoticeMessageUtil.sendNoticeMessageByStaff(enterpriseId, staffId, clerkId, NoticeMessageTypeEnum.STORE_ACCOUNT_REFUSE.getType(), auditId, params, jsonObject);
} else {
NoticeMessageUtil.sendNoticeMessageByStaff(enterpriseId, staffId, clerkId, NoticeMessageTypeEnum.STORE_ACCOUNT_AGREE.getType(), auditId, params, jsonObject);
StaffDTO staffDTO = staffApiService.selectById(staffId);
logger.info("绑定自动创建活码,staffId:{}",staffId);
// 绑定自动创建活码
HmQrcodeQDTO hmQrcodeQDTO = new HmQrcodeQDTO();
hmQrcodeQDTO.setHmType(1);
hmQrcodeQDTO.setWxEnterpriseId(staffDTO.getWxEnterpriseId());
hmQrcodeQDTO.setEnterpriseId(enterpriseId);
hmQrcodeQDTO.setName(staffDTO.getStaffName());
hmQrcodeQDTO.setPassFlag(1);
hmQrcodeQDTO.setStoreId(clerkDTO.getStoreId());
hmQrcodeQDTO.setClerkIdList(Collections.singletonList(clerkDTO.getClerkId()));
hmQrcodeQDTO.setInvokingType(ChannelCodeEnum.AUDIT_BIND.getCode());
hmQrcodeApiService.add(hmQrcodeQDTO);
}
}
......
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