Commit b00a7b4b by 宋毅

tj

parent 92e71503
...@@ -26,14 +26,13 @@ class OrderTmProductDao extends Dao { ...@@ -26,14 +26,13 @@ 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,
attributes: ["id",
"deliveryOrderNo", "deliveryOrderNo",
"needNo", "needNo",
"sourceOrderNo", "sourceOrderNo",
...@@ -52,9 +51,9 @@ class OrderTmProductDao extends Dao { ...@@ -52,9 +51,9 @@ class OrderTmProductDao extends Dao {
"updateuser", "updateuser",
"notes", "notes",
"nclOneCount" "nclOneCount"
], ];
raw: true
}); return this.model.findOne(sqlWhere);
} }
} }
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