Commit 18fd5019 by 王悦

fix

parent ec091582
...@@ -842,10 +842,7 @@ class TrademarktransactionService extends ServiceBase { ...@@ -842,10 +842,7 @@ class TrademarktransactionService extends ServiceBase {
async createjsonfile() { async createjsonfile() {
var nowTime = new Date(); var sql = "select * from tm_transaction where publish_status in ('uppershelf','lowershelf') limit 50";
nowTime.setMinutes(nowTime.getMinutes() - 30);
var lastTimeStr = nowTime.toISOString().split("T")[0] + " " + nowTime.toISOString().split("T")[1];
var sql = "select * from tm_transaction where updated_at>='" + lastTimeStr + "' and publish_status in ('uppershelf','lowershelf')";
var tminfos = await this.dao.customQuery(sql); var tminfos = await this.dao.customQuery(sql);
var sources = []; var sources = [];
if (tminfos) { if (tminfos) {
......
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