Commit 9f77482d by 庄冰

aaaa

parent 549a6a39
......@@ -34,6 +34,14 @@ class TemplateinfoCtl extends CtlBase {
let result = await this.templateinfoSve.editTemplateTdk(pobj);
return result;
}
/**
* 修改启用状态
* @param {*} pobj
*/
async updateSwitchStatus(pobj){
let result = await this.templateinfoSve.updateSwitchStatus(pobj);
return result;
}
}
module.exports = TemplateinfoCtl;
......@@ -7,8 +7,8 @@ class MaininfoService extends ServiceBase {
}
async create(pobj){
var code = await this.getBusUid("main");
pobj.code = code;
// var code = await this.getBusUid("main");
// pobj.code = code;
return this.dao.create(pobj);
}
}
......
......@@ -83,8 +83,7 @@ class TemplateinfoService extends ServiceBase {
* @param {*} pobj
*/
async updateSwitchStatus(pobj){
var ab = pobj.actionBody;
var xctx = pobj.xctx;
var ab = pobj;
if(!ab){
return system.getResultFail(-100,"参数错误");
}
......
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