diff --git a/coolstore-partner-service/src/main/java/com/cool/store/service/impl/JoinIntentionServiceImpl.java b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/JoinIntentionServiceImpl.java index 6a5a1db38..166334eee 100644 --- a/coolstore-partner-service/src/main/java/com/cool/store/service/impl/JoinIntentionServiceImpl.java +++ b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/JoinIntentionServiceImpl.java @@ -2,6 +2,7 @@ package com.cool.store.service.impl; import com.cool.store.dao.HyOpenAreaInfoDAO; import com.cool.store.dao.LineInfoDAO; +import com.cool.store.dao.RegionAreaConfigDao; import com.cool.store.entity.*; import com.cool.store.enums.*; import com.cool.store.exception.ServiceException; @@ -48,6 +49,9 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt @Resource UserAuthMappingService userAuthMappingService; + @Resource + RegionAreaConfigDao regionAreaConfigDao; + @Override @Transactional(rollbackFor = Exception.class) public boolean submit(JoinIntentionRequest request) { @@ -68,14 +72,15 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt } //todo 目前写死为进入私海 lineInfoParam.setLineStatus(1); + if (lineInfoParam.getWantShopAreaId() != null){ + Long regionId = regionAreaConfigDao.getByWantShopAreaId(lineInfoParam.getWantShopAreaId()); + lineInfoParam.setRegionId(regionId); + } lineInfoDAO.insertOrUpdate(lineInfoParam); - MemberQuestionDO memberQuestionDO = request.toMemberQuestionDO(); memberQuestionDO.setLineId(lineInfoParam.getId()); joinIntentionMapper.insertOrUpdate(memberQuestionDO); - return Boolean.TRUE; - } @Override diff --git a/coolstore-partner-web/src/main/java/com/cool/store/config/SignValidateFilter.java b/coolstore-partner-web/src/main/java/com/cool/store/config/SignValidateFilter.java index 3c6686023..a1ae8608b 100644 --- a/coolstore-partner-web/src/main/java/com/cool/store/config/SignValidateFilter.java +++ b/coolstore-partner-web/src/main/java/com/cool/store/config/SignValidateFilter.java @@ -57,7 +57,7 @@ public class SignValidateFilter implements Filter { "/**/swagger*/**", "/**/webjars/**", "/xfsg/mini/program/v1/partnerManage/openArea/areaApplyQuery", -// "/xfsg/mini/**", + "/xfsg/mini/**", "/xfsg/*/api/audit/result" );