FengChaoYu 6 ay önce
ebeveyn
işleme
768cef8074

+ 4 - 0
mall-server-api/src/main/java/com/gree/mall/manager/logic/contract/CompanyCaAuthLogic.java

@@ -61,6 +61,8 @@ public class CompanyCaAuthLogic {
     public void add(CompanyCaAuth companyCaAuth) {
         final AdminWebsit websit = adminWebsitService.getById(companyCaAuth.getWebsitId());
         companyCaAuth.setCompanyName(websit.getName());
+        companyCaAuth.setCompanyWechatId(websit.getCompanyWechatId());
+        companyCaAuth.setCompanyName(websit.getCompanyWechatName());
         CompanyCaAuth caAuth = companyCaAuthService.lambdaQuery()
                 .eq(CompanyCaAuth::getWebsitId, companyCaAuth.getWebsitId())
                 .one();
@@ -75,6 +77,8 @@ public class CompanyCaAuthLogic {
     public void update(CompanyCaAuth companyCaAuth) {
         final AdminWebsit websit = adminWebsitService.getById(companyCaAuth.getWebsitId());
         companyCaAuth.setCompanyName(websit.getName());
+        companyCaAuth.setCompanyWechatId(websit.getCompanyWechatId());
+        companyCaAuth.setCompanyName(websit.getCompanyWechatName());
         this.checkInfo(companyCaAuth);
         CompanyCaAuth byId = companyCaAuthService.getById(companyCaAuth.getCompanyCaAuthId());