@@ -259,8 +259,8 @@ class NeedinfoService extends ServiceBase {
*/
asyncgetNeedComparison(pobj){
letab=pobj.actionBody;
letsql1=`select count(DISTINCT(a.needNo)) count from n_need_info where deleted_at is null `;
letsql2=`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'`;
letsql1=`select count(DISTINCT(needNo)) count from n_need_info where deleted_at is null `;
letsql2=`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'`;
letwhereParams={};
if(ab.startNow&&ab.endNow){
sql1+=` and created_at >= :start and created_at <= :end`;