Commit 2bc71f14 by linboxuan

opNeedList update by updated_at

parent bf3cddbb
......@@ -78,8 +78,9 @@ class NeedinfoService extends ServiceBase {
if (actionBody.publishMobile) {
sobj.search.publishMobile = actionBody.publishMobile
}
console.log(actionBody)
if (actionBody.stdate && actionBody.endate) {
sobj.search.updated_at = { [this.db.Op.between]: [actionBody.stdate, actionBody.endate] }
sobj.search.updated_at = [actionBody.stdate, actionBody.endate]
}
var r = await this.dao.findAndCountAll(sobj);
return system.getResultSuccess(r);
......
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