Commit d171c5ad by 任晓松

展板,需求列表

parent f8912ae6
...@@ -1309,7 +1309,7 @@ class OrderInfoService extends ServiceBase { ...@@ -1309,7 +1309,7 @@ class OrderInfoService extends ServiceBase {
LEFT JOIN center_app.p_app d on a.uapp_id = d.uapp_id LEFT JOIN center_app.p_app d on a.uapp_id = d.uapp_id
WHERE WHERE
a.deleted_at IS NULL`; a.deleted_at IS NULL`;
let totalSql = `select count(*) count from c_order_info a left join c_order_product b on a.orderNo = b.sourceOrderNo where a.deleted_at is null ` let totalSql = `select count(*) count from c_order_info a left join c_order_product b on a.orderNo = b.sourceOrderNo LEFT JOIN center_order.c_order_contacts c on a.orderNo = c.sourceOrderNo where a.deleted_at is null `
let whereParams ={}; let whereParams ={};
if(ab.start&&ab.end){ if(ab.start&&ab.end){
listSql += ` and a.created_at >= :start and a.created_at <= :end`; listSql += ` and a.created_at >= :start and a.created_at <= :end`;
...@@ -1328,8 +1328,8 @@ class OrderInfoService extends ServiceBase { ...@@ -1328,8 +1328,8 @@ class OrderInfoService extends ServiceBase {
whereParams.type_code = ab.type_code; whereParams.type_code = ab.type_code;
} }
if(ab.fuzzy_code){ if(ab.fuzzy_code){
listSql += ` ( a.orderNo like :fuzzy_code or a.channelOrderNo like :fuzzy_code or c.mobile like :fuzzy_code)`; listSql += ` and ( a.orderNo like :fuzzy_code or a.channelOrderNo like :fuzzy_code or c.mobile like :fuzzy_code)`;
totalSql += ` ( a.orderNo like :fuzzy_code or a.channelOrderNo like :fuzzy_code or c.mobile like :fuzzy_code)`; totalSql += ` and ( a.orderNo like :fuzzy_code or a.channelOrderNo like :fuzzy_code or c.mobile like :fuzzy_code)`;
whereParams.fuzzy_code = "%"+ab.fuzzy_code+"%"; whereParams.fuzzy_code = "%"+ab.fuzzy_code+"%";
} }
if(pageSize != -1){ if(pageSize != -1){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment