浏览代码

no message

FengChaoYu 6 月之前
父节点
当前提交
1d620e1d3f

+ 1 - 1
mall-server-api/src/main/java/com/gree/mall/manager/logic/material/manage/WebsitPartsCreditLogic.java

@@ -68,7 +68,7 @@ public class WebsitPartsCreditLogic {
             throw new RemoteServiceException("单号不存在");
         }
         final WebsitPartsSales sales = websitPartsSalesService.lambdaQuery()
-                .eq(WebsitPartsSales::getCompanyWechatId, adminUser.getCompanyWechatId())
+                .eq(Objects.nonNull(adminUser.getAdminCompanyWechat()), WebsitPartsSales::getCompanyWechatId, adminUser.getCompanyWechatId())
                 .eq(WebsitPartsSales::getId, record.getSalesId())
                 .one();
         if (Objects.isNull(sales)) {