Commit c07bc137 by Sxy

fix: little bug

parent 18b99757
...@@ -263,22 +263,22 @@ class AliHandler { ...@@ -263,22 +263,22 @@ class AliHandler {
console.log("productTypeName-----------------------------" + obj.businessName); console.log("productTypeName-----------------------------" + obj.businessName);
ConsultTypeName = obj.businessName; ConsultTypeName = obj.businessName;
} }
try { // try {
let companyFind = await this.cmpService.dao.model.findOne({ // let companyFind = await this.cmpService.dao.model.findOne({
where: { name: obj.serviceName }, include: [ // where: { name: obj.servicerName }, include: [
{ // {
model: this.cmpService.db.models.user, as: "us", attributes: ['id', 'userName', 'mobile', 'isAllocated', 'opath', 'skilltags', 'regiontags', 'isAllArea', 'isSalesman', 'isDelivery'], raw: true // model: this.cmpService.db.models.user, as: "us", attributes: ['id', 'userName', 'mobile', 'isAllocated', 'opath', 'skilltags', 'regiontags', 'isAllArea', 'isSalesman', 'isDelivery'], raw: true
} // }
], excludes: ['orgJson'] // ], excludes: ['orgJson']
}); // });
if (companyFind) { // if (companyFind) {
obj.servicerCode = companyFind.id; // obj.servicerCode = companyFind.id;
} // }
//暂时不自动分配 // //暂时不自动分配
// var deliveryInfo = await this.userService.getBizUserForAliDelivery(obj.baseInfo.contactsName, obj.servicerName, ConsultTypeName, obj.skuCode, obj.serviceName, companyFind); // // var deliveryInfo = await this.userService.getBizUserForAliDelivery(obj.baseInfo.contactsName, obj.servicerName, ConsultTypeName, obj.skuCode, obj.serviceName, companyFind);
} catch (error) { // } catch (error) {
console.log("分配交付员失败.", error); // console.log("分配交付员失败.", error);
} // }
//获取交付商id //获取交付商id
let companyInfo = await this.userService.getCompanyIdByName(obj.servicerName); let companyInfo = await this.userService.getCompanyIdByName(obj.servicerName);
......
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