Commit 444b026c by 孙亚楠

d

parent 48d2cc26
......@@ -52,7 +52,6 @@ class OorderService extends ServiceBase {
* @params customer_name 客户名称
*/
async addSourceOrder(params) {
// 整理参数
let order = {
merchant_id: "",
......@@ -71,6 +70,7 @@ class OorderService extends ServiceBase {
order.service_items = this.trim(params.service_items);
order.ali_deliver_api = this.trim(params.ali_deliver_api) || "";
order.saas_id = this.trim(params.saas_id) || "";
try {
// 验证订单是否存在
let exists = await this.dao.findOne({ source_id: order.source_id, source_no: order.source_no });
if (exists) {
......@@ -116,6 +116,7 @@ class OorderService extends ServiceBase {
await self.oorderprocessDao.bulkCreate(orderProcessList, t);
orderReg.id = order.id;
orderReg.saas_id = order.saas_id
await self.oorderinforegDao.create(orderReg, t);
//如果存在交付商ID 则需要创建交付商记录 并更新订单表的交付商信息
......@@ -134,6 +135,11 @@ class OorderService extends ServiceBase {
});
await this.getOrderProcessStatus(order.id, order.status);
return system.getResult(order);
}catch (e) {
console.log(e);
return system.getResult(null, `系统错误`);
}
}
buildRegInfo(bminfo,params) {
......@@ -157,7 +163,7 @@ class OorderService extends ServiceBase {
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) || "";
obj.saas_id= this.trim(params.saas_id) || "";
// 这些字段在交付系统里暂时没有
// `bank_front` '银行卡正面照片',
// `bank_back` '银行卡背面照片',
......
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