Browse Source

修改选择客户接口1.1

master
fanzongzhe 9 months ago
parent
commit
5a3933083f
  1. 4
      yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleMapper.xml
  2. 1
      yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleService.java

4
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
<where> ${ew.sqlSegment} </where>
</select>

1
yxt-as/src/main/java/com/yxt/anrui/as/biz/ascustomervehicle/AsCustomerVehicleService.java

@ -231,6 +231,7 @@ public class AsCustomerVehicleService extends MybatisBaseService<AsCustomerVehic
if (StringUtils.isNotBlank(query.getVinNo())) {
qw.like("v.vinNo", query.getVinNo());
}
qw.orderByDesc("v.id");
IPage<AsCustomerVehicle> page = PagerUtil.queryToPage(pq);
IPage<AsCustomerCrmVehVo> pagging = baseMapper.customerList(page, qw);
PagerVo<AsCustomerCrmVehVo> p = PagerUtil.pageToVo(pagging, null);

Loading…
Cancel
Save