Commit 9f77482d by 庄冰

aaaa

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