diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleMapper.xml b/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleMapper.xml index 46a4e11c86..55dfd0e16d 100644 --- a/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleMapper.xml +++ b/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleMapper.xml @@ -34,8 +34,8 @@ c.mobile, s.`name` AS salesCompany FROM - anrui_crm.crm_customer_temp AS c - LEFT JOIN as_customer_vehicle AS v ON c.sid = v.customerSid + as_customer_vehicle AS v + LEFT JOIN anrui_crm.crm_customer_temp AS c ON v.customerSid = c.sid LEFT JOIN anrui_portal.sys_organization AS s ON c.createOrgSid = s.sid ${ew.sqlSegment} diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleService.java b/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleService.java index f0847ba7f2..09e86ebbde 100644 --- a/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleService.java +++ b/yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleService.java @@ -231,6 +231,7 @@ public class AsCustomerVehicleService extends MybatisBaseService page = PagerUtil.queryToPage(pq); IPage pagging = baseMapper.customerList(page, qw); PagerVo p = PagerUtil.pageToVo(pagging, null);