@@ -157,7 +157,7 @@ class NeedinfoService extends ServiceBase {
...
@@ -157,7 +157,7 @@ class NeedinfoService extends ServiceBase {
whereParam.end=ac.end;
whereParam.end=ac.end;
}
}
if(ac.type_name){
if(ac.type_name){
sql+=` AND typeCode = :type_name`;
sql+=` AND typeName = :type_name`;
whereParam.type_name=ac.type_name;
whereParam.type_name=ac.type_name;
}
}
if(ac.status){
if(ac.status){
...
@@ -250,7 +250,7 @@ class NeedinfoService extends ServiceBase {
...
@@ -250,7 +250,7 @@ class NeedinfoService extends ServiceBase {
*/
*/
asyncgetStatisticsByCity(pobj){
asyncgetStatisticsByCity(pobj){
letac=pobj.actionBody;
letac=pobj.actionBody;
letsql=`select typeCode,province,count(*) count from n_need_info where province is not null and typeCode is not null AND (channelTypeName <> "商标交易" or channelTypeName is null) `;
letsql=`select typeName,province,count(*) count from n_need_info where province is not null and typeCode is not null AND (channelTypeName <> "商标交易" or channelTypeName is null) `;
letwhereParams={};
letwhereParams={};
if(ac.start&&ac.end){
if(ac.start&&ac.end){
sql+=` and created_at >= :start and created_at <= :end `;
sql+=` and created_at >= :start and created_at <= :end `;
...
@@ -258,14 +258,14 @@ class NeedinfoService extends ServiceBase {
...
@@ -258,14 +258,14 @@ class NeedinfoService extends ServiceBase {