Commit a707273a by 任晓松

update

parent a38a1eea
......@@ -177,7 +177,7 @@ class NeedinfoService extends ServiceBase {
async getNeedFunnelStatistics(pobj){
let ac = pobj.actionBody;
let sql = `select count(*) count from n_need_info where deleted_at is null `;
let sql2 = sql + ` and status = 'ygj' or status = 'ygb' or status = 'ycd'`;
let sql2 = sql + ` and status in('ygj','ygb','ycd')`;
let sql3 = sql + ` and status = 'ycd'`;
let whereParams = {};
if (ac.start&&ac.end){
......@@ -190,11 +190,13 @@ class NeedinfoService extends ServiceBase {
if(ac.uapp_id){
sql += ` and uapp_id = :uapp_id`;
sql2 += ` and uapp_id = :uapp_id`;
sql3 += ` and uapp_id = :uapp_id`;
whereParams.uapp_id = ac.uapp_id;
}
if(ac.type_name){
sql += ` and typeName = :type_name`;
sql2 += ` and typeName = :type_name`;
sql3 += ` and typeName = :type_name`;
whereParams.type_name = ac.type_name;
}
let total = await this.customQuery(sql,whereParams);
......@@ -359,7 +361,7 @@ class NeedinfoService extends ServiceBase {
needTotalSql += ` and a.typeName = :type_name`;
needToOrderSql += ` and b.typeName = :type_name`;
needToOrderTotalSql += ` and b.typeName = :type_name`;
whereParams.typeName = actionBody.type_name;
whereParams.type_name = actionBody.type_name;
}
if(actionBody.status){
needSql += ` and a.status = :status`;
......
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