Commit 106312e7 by Sxy

feat: 同步 业务员

parent 66c7ec2a
...@@ -183,5 +183,14 @@ class DeliverCtl extends CtlBase { ...@@ -183,5 +183,14 @@ class DeliverCtl extends CtlBase {
return system.getResult(null, err.message) return system.getResult(null, err.message)
} }
} }
async changeSalesman(pobj) {
try {
let rs = await this.service.changeSalesman(pobj);
return system.getResult(rs);
} catch (err) {
return system.getResult(null, err.message)
}
}
} }
module.exports = DeliverCtl; module.exports = DeliverCtl;
...@@ -476,5 +476,16 @@ class DeliverService extends ServiceBase { ...@@ -476,5 +476,16 @@ class DeliverService extends ServiceBase {
return result; return result;
} }
async changeSalesman(pobj) {
const { orderNumber, userId, userName, salesman_opcode } = pobj
await this.dao.updateByWhere({
salesman_opcode: salesman_opcode,
salesman_name: userName
}, {
scheme_number: orderNumber
});
return "SUCCESS"
}
} }
module.exports = DeliverService; module.exports = DeliverService;
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