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