Bladeren bron

商家PC端 门店入住修改经营板块效验

qinxuyang 2 maanden geleden
bovenliggende
commit
7760266c6b

+ 9 - 9
alien-store-platform/src/main/java/shop/alien/storeplatform/service/impl/StoreManageServiceImpl.java

@@ -98,14 +98,14 @@ public class StoreManageServiceImpl implements StoreManageService {
 
 
         // 1. 获取经营板块信息
         // 1. 获取经营板块信息
         Integer businessSection = storeInfoDto.getBusinessSection();
         Integer businessSection = storeInfoDto.getBusinessSection();
-        StoreDictionary businessSectionDict = storeDictionaryMapper.selectOne(
-                new LambdaQueryWrapper<StoreDictionary>()
-                        .eq(StoreDictionary::getDictId, businessSection)
-                        .eq(StoreDictionary::getTypeName, "business_section")
-        );
-        if (businessSectionDict == null) {
-            throw new IllegalArgumentException("经营板块不存在:" + businessSection);
-        }
+//        StoreDictionary businessSectionDict = storeDictionaryMapper.selectOne(
+//                new LambdaQueryWrapper<StoreDictionary>()
+//                        .eq(StoreDictionary::getDictId, businessSection)
+//                        .eq(StoreDictionary::getTypeName, "business_section")
+//        );
+//        if (businessSectionDict == null) {
+//            throw new IllegalArgumentException("经营板块不存在:" + businessSection);
+//        }
 
 
         // 2. 获取经营种类信息
         // 2. 获取经营种类信息
         List<String> businessTypes = storeInfoDto.getBusinessTypes();
         List<String> businessTypes = storeInfoDto.getBusinessTypes();
@@ -162,7 +162,7 @@ public class StoreManageServiceImpl implements StoreManageService {
 
 
         // 7. 设置经营板块及类型
         // 7. 设置经营板块及类型
         storeInfo.setBusinessSection(businessSection);
         storeInfo.setBusinessSection(businessSection);
-        storeInfo.setBusinessSectionName(businessSectionDict.getDictDetail());
+        storeInfo.setBusinessSectionName(storeInfoDto.getBusinessSectionName());
         storeInfo.setBusinessTypes(String.join(",", businessTypes));
         storeInfo.setBusinessTypes(String.join(",", businessTypes));
         storeInfo.setBusinessTypesName(String.join(",", businessTypeNames));
         storeInfo.setBusinessTypesName(String.join(",", businessTypeNames));