caipin 5 years ago
parent
commit
27bd0b8de4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/models/operate_log.js

+ 2 - 2
app/models/operate_log.js

@@ -54,9 +54,9 @@ module.exports = (sequelize, DataTypes) => {
         		  { replacements: [logType,dataId], type: sequelize.QueryTypes.SELECT }
         		).spread((results, metadata) => {
                     list=results;
-                    console.log(list);
+                    
                 });
-        
+        console.log(list);
 //        var list=[];
 //        await this.sequelize.query('select  CONVERT(GROUP_CONCAT(id) USING utf8)   as id,date_format(createDate,"%Y") as year FROM operate_log where ' +
 //            'logType='+logType+' and dataId='+dataId+' GROUP BY Year(createDate) ').spread((results, metadata) => {