Commit b00a7b4b by 宋毅

tj

parent 92e71503
...@@ -26,35 +26,34 @@ class OrderTmProductDao extends Dao { ...@@ -26,35 +26,34 @@ class OrderTmProductDao extends Dao {
where: { where: {
channelServiceNo: channelServiceNo, channelServiceNo: channelServiceNo,
app_id: appId app_id: appId
} },
raw: true
}; };
if (t) { if (t) {
sqlWhere.transaction = t; sqlWhere.transaction = t;
} }
return this.model.findOne({ sqlWhere.attributes = ["id",
sqlWhere, "deliveryOrderNo",
attributes: ["id", "needNo",
"deliveryOrderNo", "sourceOrderNo",
"needNo", "tmName",
"sourceOrderNo", "tmType",
"tmName", "tmFormType",
"tmType", "nclOneCodes",
"tmFormType", "deliveryStatus",
"nclOneCodes", "picUrl",
"deliveryStatus", "colorizedPicUrl",
"picUrl", "sywjUrl",
"colorizedPicUrl", "gzwtsUrl",
"sywjUrl", "nclCount",
"gzwtsUrl", "smwjUrl",
"nclCount", "updateuser_id",
"smwjUrl", "updateuser",
"updateuser_id", "notes",
"updateuser", "nclOneCount"
"notes", ];
"nclOneCount"
], return this.model.findOne(sqlWhere);
raw: true
});
} }
} }
module.exports = OrderTmProductDao; module.exports = OrderTmProductDao;
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