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