Commit 6b21136f by 庄冰

channel

parent 53deb201
......@@ -1034,27 +1034,29 @@ class OrderTmProductService extends ServiceBase {
tm["itemName"] = productItem.itemName;
tm["channelUserId"] = user.channelUserId;
tm["updated_at"] = new Date();
if (tm.officialType == "WAITARTIFICIALEXAMINE") {
tm.officialType = "dsh"
}
else if (tm.officialType == "FILLEXCEPTION") {
tm.officialType = "shbtg"
}
else if (tm.officialType == "WAITCOMMIT") {
tm.officialType = "ddj"
}
else if (tm.officialType == "ROBOT") {
tm.officialType = "ydj"
} else {
tm.officialType = "dsccl";
}
tm.officialType = "dsh"
// if (tm.officialType == "WAITARTIFICIALEXAMINE") {
// tm.officialType = "dsh"
// }
// else if (tm.officialType == "FILLEXCEPTION") {
// tm.officialType = "shbtg"
// }
// else if (tm.officialType == "WAITCOMMIT") {
// tm.officialType = "ddj"
// }
// else if (tm.officialType == "ROBOT") {
// tm.officialType = "ydj"
// } else {
// tm.officialType = "dsccl";
// }
await self.trademarkDao.create(tm, t);
}
//交付单
var otp = obj.order;
if (otp.tmStatus && otp.tmStatus == "SUBALITMOK") {
otp["deliveryStatus"] = "dqrfa";
}
// if (otp.tmStatus && otp.tmStatus == "SUBALITMOK") {
// otp["deliveryStatus"] = "dqrfa";
// }
otp["deliveryStatus"] = "dqrfa";
otp["updated_at"] = new Date();
await self.dao.model.update(otp, whereObj);
......
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