Browse Source

修复bug

gaosheng 2 days ago
parent
commit
a6f8aa0d78

+ 1 - 0
xinkeaboard-server/b2b2c-web/src/main/java/com/slodon/b2b2c/controller/seller/admin/AdminStoreAuditController.java

@@ -466,6 +466,7 @@ public class AdminStoreAuditController {
                 }else{
                     throw new MallException("请选择开店时长");
                 }
+                storeApply.setStoreGradeIdCn(storeApply.getStoreGradeId());
                 int count = storeModel.openStore(storeApply);
                 total += count;
             } else {

+ 1 - 1
xinkeaboard-server/b2b2c-web/src/main/java/com/slodon/b2b2c/model/seller/StoreModel.java

@@ -196,7 +196,7 @@ public class StoreModel {
         storeSiteInfo.setWebSite(WebSiteConstant.MEMBER_DISTRIBUTOR);
         storeSiteInfo.setStoreGradeId(storeApply.getStoreGradeIdCn());
         storeGrade = storeGradeReadMapper.getByPrimaryKey(storeSiteInfo.getStoreGradeId());
-        storeSiteInfo.setStoreGradeName(storeGrade.getGradeName());
+        storeSiteInfo.setStoreGradeName(storeGrade != null ? storeGrade.getGradeName() : null);
 
         if (!StringUtil.isNullOrZero(storeApply.getApplyYearCn())) {
             //开店时长