diff --git a/yshop-weixin/src/main/java/co/yixiang/modules/mp/listener/TemplateListener.java b/yshop-weixin/src/main/java/co/yixiang/modules/mp/listener/TemplateListener.java index 1f43dcf1..bfe34431 100644 --- a/yshop-weixin/src/main/java/co/yixiang/modules/mp/listener/TemplateListener.java +++ b/yshop-weixin/src/main/java/co/yixiang/modules/mp/listener/TemplateListener.java @@ -95,7 +95,7 @@ public class TemplateListener implements SmartApplicationListener { , templateBean.getPrice(), templateBean.getUid()); /**************给客服发送消息**************/ try { - List yxStoreCustomers = yxStoreCustomerService.list(new LambdaQueryWrapper().eq(YxStoreCustomer::getIsEnable, ShopConstants.YSHOP_ONE_NUM)); + List yxStoreCustomers = yxStoreCustomerService.lambdaQuery().eq(YxStoreCustomer::getIsEnable, ShopConstants.YSHOP_ONE_NUM).list(); yxStoreCustomers.forEach(msg -> { if (StrUtil.isNotBlank(msg.getOpenId())) { weixinTemplateService.paySuccessNoticeToKefu(templateBean.getOrderId()