1.小程序钩子PartnerUserHolder;

提交状态
This commit is contained in:
guohb
2024-05-09 15:25:52 +08:00
parent 01d3d06964
commit 31fca6ad8c
4 changed files with 10 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ import com.cool.store.request.LicenseListRequest;
import com.cool.store.request.SubmitLicenseRequest;
import com.cool.store.response.LicenseListResponse;
import com.cool.store.response.SubmitLicenseResponse;
import com.cool.store.vo.PartnerUserInfoVO;
import com.github.pagehelper.PageInfo;
public interface ApplyLicenseService {
@@ -13,7 +14,7 @@ public interface ApplyLicenseService {
* @param request
* @return
*/
Boolean submitLicense(SubmitLicenseRequest request, LoginUserInfo user);
Boolean submitLicense(SubmitLicenseRequest request, PartnerUserInfoVO user);
/**
* 获取默认值

View File

@@ -25,6 +25,7 @@ import com.cool.store.service.RegionService;
import com.cool.store.utils.StringUtil;
import com.cool.store.utils.poi.StringUtils;
import com.cool.store.utils.poi.constant.Constants;
import com.cool.store.vo.PartnerUserInfoVO;
import com.cool.store.vo.ShopAuditInfoVO;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
@@ -79,7 +80,7 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
@Override
@Transactional(rollbackFor = Exception.class)
public Boolean submitLicense(SubmitLicenseRequest request,LoginUserInfo user) {
public Boolean submitLicense(SubmitLicenseRequest request, PartnerUserInfoVO user) {
log.info("submitLicense request{}", JSONObject.toJSONString(request));
if (Objects.isNull(request)) {
return false;
@@ -95,8 +96,8 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
ShopAuditInfoDO shopAuditInfoDO = new ShopAuditInfoDO();
shopAuditInfoDO.setShopId(request.getShopId());
shopAuditInfoDO.setAuditType(AuditTypeEnum.LICENSE_APPROVAL.getCode());
shopAuditInfoDO.setSubmittedUserId(user.getUserId());
shopAuditInfoDO.setSubmittedUserName(user.getName());
shopAuditInfoDO.setSubmittedUserId(user.getOpenid());
shopAuditInfoDO.setSubmittedUserName(user.getUsername());
shopAuditInfoDO.setDataType(0);
shopAuditInfoMapper.insertSelective(shopAuditInfoDO);
shopStageInfoDAO.updateShopStageAndAuditInfo(request.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_41, null);