Commit 2ab71902 by 孙亚楠

d

parent 64b29bb8
......@@ -159,13 +159,14 @@ class OrderCtl extends CtlBase {
return system.getResult(null, `订单【${pobj.id}】不存在`);
}
let res = await this.orderSve.getEorderById(pobj);
if(res.status==0 && res.data.productChildren){
for(let item of res.data.productChildren){
if(res.status==0 && res.data.product_arr){
for(let item of res.data.product_arr){
item.price = system.f2y(item.price);
}
}
// 计费
let feeRes = await this.feeSve.setRowsFee([res.data], "engine_account_id");
// let feeRes = await this.feeSve.setRowsFee([res.data], "engine_account_id");
return res;
}catch (e) {
console.log(e);
......@@ -201,7 +202,7 @@ class OrderCtl extends CtlBase {
}
let p_listRes = await this.productSve.getByIds({ids:ids});
if(p_listRes.status!=0){
return system.getResul(`获取订单产品失败`);
return system.getResult(`获取订单产品失败`);
}
//将产品列表映射成Map结构
for (let ele of p_listRes.data) {
......
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