Commit 6635db4c by 王悦

fix

parent 18fd5019
......@@ -842,7 +842,10 @@ class TrademarktransactionService extends ServiceBase {
async createjsonfile() {
var sql = "select * from tm_transaction where publish_status in ('uppershelf','lowershelf') limit 50";
var nowTime = new Date();
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 sources = [];
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