Commit 50205bc6 by 庄冰

img

parent b6959dd1
......@@ -26,7 +26,7 @@ class CtlBase {
}
async bulkDelete(ids) {
var en = await this.service.bulkDelete(ids);
return en;
return system.getResult(en);
}
async findAndCountAll(pobj, qobj, req) {
//设置查询条件
......
......@@ -6,5 +6,10 @@ class ImgInfoCtl extends CtlBase {
constructor() {
super("configmag", CtlBase.getServiceName(ImgInfoCtl));
}
async create(pobj, qobj, req) {
pobj.company_id = req && req.xctx && req.xctx.companyid ?req.xctx.companyid : "";
const up = await this.service.create(pobj);
return system.getResult(up);
}
}
module.exports = ImgInfoCtl;
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