Commit f8a3134a by 兰国旗

修改主体删除修改判断

parent 4e508193
...@@ -5,6 +5,7 @@ const { getResultSuccess } = require("../../../system"); ...@@ -5,6 +5,7 @@ const { getResultSuccess } = require("../../../system");
class MaininfoService extends ServiceBase { class MaininfoService extends ServiceBase {
constructor() { constructor() {
super("configmag", ServiceBase.getDaoName(MaininfoService)); super("configmag", ServiceBase.getDaoName(MaininfoService));
this.templateLink = system.getObject("db.template.templatelinkDao");
} }
async create(pobj) { async create(pobj) {
...@@ -26,7 +27,7 @@ class MaininfoService extends ServiceBase { ...@@ -26,7 +27,7 @@ class MaininfoService extends ServiceBase {
async update(pobj) { async update(pobj) {
let whereParams = { let whereParams = {
lauch_type_code: pobj.code marketing_subject_code: pobj.code
} }
let searchResult = await this.templateLink.findOne(whereParams, []); let searchResult = await this.templateLink.findOne(whereParams, []);
if (searchResult.is_enabled == 1) { if (searchResult.is_enabled == 1) {
...@@ -41,7 +42,7 @@ class MaininfoService extends ServiceBase { ...@@ -41,7 +42,7 @@ class MaininfoService extends ServiceBase {
} }
let searchResult = await this.findOne(whereParams, []); let searchResult = await this.findOne(whereParams, []);
let linkWhere = { let linkWhere = {
lauch_type_code: searchResult.code marketing_subject_code: searchResult.code
} }
let searchLink = await this.templateLink.findOne(linkWhere, []); let searchLink = await this.templateLink.findOne(linkWhere, []);
if (searchLink.is_enabled == 1) { if (searchLink.is_enabled == 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