Commit 08173a4f by 蒋勇

log

parent 5ccf5ed9
......@@ -570,6 +570,7 @@ class DeliverybillCtl extends CtlBase {
if (pobj.deliverNumber && pobj.deliverNumber != 'undefined') {
try {
var res = await this.service.findInfoByDeliverCode(pobj);
console.log("fen pei 业务员jiaofuyuan信息 after findInfoByDeliverCode==============");
if (res) {
var sInfo = {
"flowType": "DELIVERY",
......@@ -609,6 +610,7 @@ class DeliverybillCtl extends CtlBase {
...pobj,
master_source_number: res.master_source_number
});//更新业务员信息
console.log("更新业务员信息 updateSalesmanInfoByDeliverCodeupdateSalesmanInfoByDeliverCode==============");
return system.getResult("操作成功!");
}
else {
......
......@@ -217,6 +217,9 @@ class Dao {
} else {
inWhereObj["where"] = whereObj;
}
console.log("inWhereObj------------------------");
console.log(inWhereObj)
console.log("inWhereObj------------------------");
return this.model.update(setObj, inWhereObj);
}
async customExecAddOrPutSql (sql, paras = null) {
......
......@@ -99,6 +99,7 @@ class DeliverybillDao extends Dao {
/*更新业务员/交付员信息*/
async updateSalesmanInfoByDeliverCode(qobj, t) {
console.log("updateSalesmanInfoByDeliverCodeupdateSalesmanInfoByDeliverCode==============");
var setobj = {};
if (qobj.type == "salesman") {
if (qobj.salesmanId && qobj.salesmanId != 'undefined') {
......@@ -140,6 +141,7 @@ class DeliverybillDao extends Dao {
if (qobj.productCode) {
whereobj.product_code = qobj.productCode;
}
console.log("before fenpei dao updateByWhere==============");
return await this.updateByWhere(setobj, whereobj, t);
}
......
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