Commit af0fa5d0 by 蒋勇

remark

parent 2b7f26d4
...@@ -8,7 +8,14 @@ class DeliverCtl extends CtlBase { ...@@ -8,7 +8,14 @@ class DeliverCtl extends CtlBase {
constructor() { constructor() {
super("delivery", CtlBase.getServiceName(DeliverCtl)); super("delivery", CtlBase.getServiceName(DeliverCtl));
} }
//修改备注
async updateRemarkByDeliverCode(mobj, qobj, req) {
var pobj = mobj.d;
console.log("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
await this.service.updateRemarkByDeliverCode(pobj)
return system.getResult("操作成功!");
}
async findAndCountAll(pobj, qobj, req) { async findAndCountAll(pobj, qobj, req) {
//设置查询条件 //设置查询条件
const rs = await this.service.findAndCountAll(pobj); const rs = await this.service.findAndCountAll(pobj);
......
...@@ -14,6 +14,10 @@ module.exports = (db, DataTypes) => { ...@@ -14,6 +14,10 @@ module.exports = (db, DataTypes) => {
allowNull: true, allowNull: true,
type: DataTypes.STRING type: DataTypes.STRING
}, },
remark: { // 备注
allowNull: true,
type: DataTypes.STRING
},
source_name: { // 渠道名称 source_name: { // 渠道名称
allowNull: true, allowNull: true,
type: DataTypes.STRING type: DataTypes.STRING
......
...@@ -33,6 +33,15 @@ class DeliverService extends ServiceBase { ...@@ -33,6 +33,15 @@ class DeliverService extends ServiceBase {
}); });
} }
async updateRemarkByDeliverCode(qobj) {
var self = this;
var setobj={remark:qobj.remark}
var whereobj = { "delivery_code": qobj.deliverNumber };
return self.db.transaction(async function (t) {
return await self.dao.updateByWhere(setobj,whereobj,t);
});
}
async submitMaterials(pobj) { async submitMaterials(pobj) {
/** /**
* 1.此状态下是否可以提交材料 * 1.此状态下是否可以提交材料
......
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