Commit 2c6387eb by 任晓松

update

parent 2b7f8bed
...@@ -259,8 +259,8 @@ class NeedinfoService extends ServiceBase { ...@@ -259,8 +259,8 @@ class NeedinfoService extends ServiceBase {
*/ */
async getNeedComparison(pobj){ async getNeedComparison(pobj){
let ab =pobj.actionBody; let ab =pobj.actionBody;
let sql1 = `select count(DISTINCT(a.needNo)) count from n_need_info where deleted_at is null `; let sql1 = `select count(DISTINCT(needNo)) count from n_need_info where deleted_at is null `;
let sql2 = `select count(DISTINCT(a.needNo)) count from n_need_solution a left join n_need_info b on a.needNo = b.needNo where a.deleted_at is null and b.status = 'ycd'`; let sql2 = `select count(DISTINCT(b.needNo)) count from n_need_solution a left join n_need_info b on a.needNo = b.needNo where a.deleted_at is null and b.status = 'ycd'`;
let whereParams = {}; let whereParams = {};
if(ab.startNow&&ab.endNow){ if(ab.startNow&&ab.endNow){
sql1 += ` and created_at >= :start and created_at <= :end`; sql1 += ` and created_at >= :start and created_at <= :end`;
......
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