Commit 51d0a365 by 宋毅

tj

parent 0c92c857
......@@ -452,8 +452,8 @@ class OrderInfoService extends ServiceBase {
if (produceinfo) {
pobj.actionBody.payCode = produceinfo[0].payCode;
}
pobj.actionBody.totalSum = pobj.actionBody.orderPrice;
pobj.actionBody.payTotalSum = pobj.actionBody.orderPrice;
pobj.actionBody.totalSum = Number(pobj.actionBody.orderPrice || "0");
pobj.actionBody.payTotalSum = = Number(pobj.actionBody.orderPrice || "0");
var self = this;
return await self.db.transaction(async function (t) {
var orderNo = await self.getBusUid("ic" + pobj.appInfo.uapp_id);
......@@ -486,7 +486,7 @@ class OrderInfoService extends ServiceBase {
}
var solutionContent = needsolutioninfo.solutionContent;
solutionContent = JSON.parse(solutionContent);
solutionContent["totalSum"] = orderPrice;
solutionContent["totalSum"] = Number(orderPrice || "0");
needsolutioninfo.solutionContent = JSON.stringify(solutionContent);
needsolutioninfo.status = status;
await self.needsolutionDao.update(needsolutioninfo, t);
......
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