Commit c07bc137 by Sxy

fix: little bug

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