|
@@ -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));
|
|
|
|
|
|