소스 검색

no message

FengChaoYu 1 년 전
부모
커밋
44c438266a
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      mall-server-api/src/main/java/com/gree/mall/manager/logic/material/manage/WebsitPartsConfigLogic.java

+ 5 - 4
mall-server-api/src/main/java/com/gree/mall/manager/logic/material/manage/WebsitPartsConfigLogic.java

@@ -63,15 +63,16 @@ public class WebsitPartsConfigLogic {
 
     public WebsitPartsConfigBean detail(String id) {
         AdminUserCom adminUser = commonLogic.getAdminUser();
-        MaterialConfig centerConfig = materialConfigService.lambdaQuery()
-                .eq(MaterialConfig::getCompanyWechatId, adminUser.getAdminCompanyWechat().getCompanyWechatId())
-                .last("limit 1")
-                .one();
 
         final WebsitPartsRefundConfig config = websitPartsRefundConfigService.getById(id);
 
         WebsitPartsConfigBean bean = new WebsitPartsConfigBean();
         BeanUtils.copyProperties(config, bean);
+
+        MaterialConfig centerConfig = materialConfigService.lambdaQuery()
+                .eq(MaterialConfig::getCompanyWechatId, config.getCompanyWechatId())
+                .last("limit 1")
+                .one();
         bean.setPriceRate1(centerConfig.getPriceRate1());
         bean.setPriceRate2(centerConfig.getPriceRate2());
         bean.setPriceRate3(centerConfig.getPriceRate3());