Commit 1ee0afbf by 任晓松

update

parent f393eb68
......@@ -250,7 +250,7 @@ class NeedinfoService extends ServiceBase {
*/
async getStatisticsByCity(pobj){
let ac = pobj.actionBody;
let sql = `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) `;
let sql = `select typeName typeCode,province,count(*) count from n_need_info where province is not null and typeCode is not null AND (channelTypeName <> "商标交易" or channelTypeName is null) `;
let whereParams = {};
if(ac.start&&ac.end){
sql += ` 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