Commit e20f5dbc by 兰国旗

laolan

parent 8211d777
......@@ -1066,9 +1066,18 @@ class AliyunQcService {
return system.getResultFail(-103, "渠道来源不能为空");
}
//获取方案信息
var needsolutioninfo = await this.needsolutionDao.model.findOne({
var orderinfo = await this.orderinfoDao.model.findOne({
where: { channelOrderNo: ab.orderNo }, raw: true
});
if(orderinfo){
var orderNo = orderinfo.orderNo;
if(orderNo){
var needsolutioninfo = await this.needsolutionDao.model.findOne({
where: { orderNo: orderNo }, raw: true
});
}
}
if (!needsolutioninfo || !needsolutioninfo.id) {
return system.getResultFail(-400, "未知方案");
}
......@@ -1441,7 +1450,7 @@ class AliyunQcService {
}
//获取方案信息
var needsolutioninfo = await this.needsolutionDao.model.findOne({
where: { channelOrderNo: ab.orderNo }, raw: true
where: { orderNo: ab.orderNo }, raw: true
});
if (!needsolutioninfo || !needsolutioninfo.id) {
return system.getResultFail(-400, "未知方案");
......
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