Commit d71702f5 by 孙亚楠

dd

parent 4488eefa
......@@ -102,7 +102,7 @@ class OorderService extends ServiceBase {
order.status = orderProcessList[0].status;
// 开启事务
var self = this;
let orderReg = this.buildRegInfo(params.bminfo);
let orderReg = this.buildRegInfo(params.bminfo,params);
await this.db.transaction(async function (t) {
// 插入订单数据
order = await self.dao.create(order, t);
......@@ -133,7 +133,7 @@ class OorderService extends ServiceBase {
return system.getResult(order);
}
buildRegInfo(bminfo) {
buildRegInfo(bminfo,params) {
let obj = {};
if(!bminfo) {
return obj;
......@@ -151,6 +151,10 @@ class OorderService extends ServiceBase {
obj.idcard_front = this.trim(bminfo.idcard_front);
obj.idcard_back = this.trim(bminfo.idcard_back);
obj.guest_mail_addr = this.trim(params.guest_mail_addr) || "";
obj.guest_mail_to= this.trim(params.guest_mail_to) || "";
obj.guest_mail_mobile= this.trim(params.guest_mail_mobile) || "";
// 这些字段在交付系统里暂时没有
// `bank_front` '银行卡正面照片',
// `bank_back` '银行卡背面照片',
......
......@@ -107,7 +107,7 @@ class SaasOrderService extends ServiceBase {
if (!order) {
return system.getResult(null, "订单不存在");
}
this.handleDate(order, ["created_at"], null, -8);
this.handleDate(order, ["created_at"], null);
await this.setOrderStatus([order]);
let bminfo = await this.saasorderbminfoDao.getById(params.id) || {};
let deliverInfo = await this.saasorderdeliverinfoDao.getById(params.id) || {};
......
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