|
@@ -648,9 +648,10 @@ public interface FsStoreOrderMapper
|
|
|
List<FsStoreOrder> selectFsStoreOrderListByFinish7Day();
|
|
|
|
|
|
@Select({"<script> " +
|
|
|
- "select o.*,cts.name as scheduleName,u.nickname,u.phone,cc.push_code,cc.create_time as customer_create_time,cc.source,cc.customer_code, c.company_name ,cu.nick_name as company_user_nick_name ,cu.phonenumber as company_usere_phonenumber ,p.title as package_title ,p.cate_id,CASE WHEN o.certificates IS NULL OR o.certificates = '' THEN 0 ELSE 1 END AS is_upload " +
|
|
|
+ "select o.*,deliver.deliver_id as deliver_code,deliver.state_ex as delivery_type_code,deliver.status as kdn_delivery_status,cts.name as scheduleName,u.nickname,u.phone,cc.push_code,cc.create_time as customer_create_time,cc.source,cc.customer_code, c.company_name ,cu.nick_name as company_user_nick_name ,cu.phonenumber as company_usere_phonenumber ,p.title as package_title ,p.cate_id,CASE WHEN o.certificates IS NULL OR o.certificates = '' THEN 0 ELSE 1 END AS is_upload " +
|
|
|
" from fs_store_order o left JOIN fs_store_product_package p on o.package_id=p.package_id left join fs_user u on o.user_id=u.user_id " +
|
|
|
" left join company c on c.company_id=o.company_id left join company_user cu on cu.user_id=o.company_user_id left join crm_customer cc on cc.customer_id=o.customer_id left join company_tcm_schedule cts on cts.id = o.schedule_id " +
|
|
|
+ " left join fs_store_delivers deliver on deliver.order_id=o.id "+
|
|
|
"where 1=1 " +
|
|
|
"<if test = 'maps.orderCode != null and maps.orderCode !=\"\" '> " +
|
|
|
"and o.order_code like CONCAT('%',#{maps.orderCode},'%') " +
|