Commit baa086dd by 庄冰

线索提交记录-new

parent cdc0d8a8
......@@ -104,7 +104,7 @@ class Dao {
// console.log(search[k], ":search[k]search[k]search[k]");
if ((search[k] && search[k] != 'undefined' && search[k] != "") || search[k] === 0 || k=="channel_only_code") {
if ((k.indexOf("Date") >= 0 || k.indexOf("_at") >= 0)) {
if (search[k] != "" && search[k]) {
if (search[k] != "" && search[k] && search[k][0] && search[k][1]) {
var stdate = new Date(search[k][0]);
var enddate = new Date(search[k][1]);
qc.where[k] = { [this.db.Op.between]: [stdate, enddate] };
......
......@@ -28,7 +28,9 @@ module.exports = (db, DataTypes) => {
region:DataTypes.STRING,//地区
business_id:DataTypes.STRING,//云服产品id
push_status:DataTypes.INTEGER,
notes: DataTypes.STRING
notes: DataTypes.STRING,
sub_status:DataTypes.INTEGER,
sub_notes: DataTypes.STRING
}, {
paranoid: true,//假的删除
underscored: true,
......
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