Commit 1e8d740c by zhiwj

deleteFlag

parent 776c0582
...@@ -61,7 +61,8 @@ public class CustomUdeskFiledServiceImpl implements CustomUdeskFieldService { ...@@ -61,7 +61,8 @@ public class CustomUdeskFiledServiceImpl implements CustomUdeskFieldService {
public int deleteFiled(Integer fieldId) { public int deleteFiled(Integer fieldId) {
TabCustomUdeskField field = new TabCustomUdeskField(); TabCustomUdeskField field = new TabCustomUdeskField();
field.setId(fieldId); field.setId(fieldId);
field.setStatus(0); // field.setStatus(0);
field.setDeleteFlag(1);
return this.tabCustomUdeskFieldMapper.updateByPrimaryKeySelective(field); return this.tabCustomUdeskFieldMapper.updateByPrimaryKeySelective(field);
} }
......
package com.gic.enterprise.service.outer.impl; package com.gic.enterprise.service.outer.impl;
import java.util.*;
import com.gic.commons.util.EntityUtil;
import com.gic.enterprise.service.CustomStoreApiService;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.gic.api.base.commons.Page; import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse; import com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.util.EntityUtil;
import com.gic.commons.util.PageHelperUtils; import com.gic.commons.util.PageHelperUtils;
import com.gic.enterprise.constant.applet.AppletPageComponentEnum; import com.gic.enterprise.constant.applet.AppletPageComponentEnum;
import com.gic.enterprise.constant.applet.AppletPageTypeEnum; import com.gic.enterprise.constant.applet.AppletPageTypeEnum;
...@@ -28,7 +17,17 @@ import com.gic.enterprise.qo.AppletPageQO; ...@@ -28,7 +17,17 @@ import com.gic.enterprise.qo.AppletPageQO;
import com.gic.enterprise.service.AppletCustomPageApiService; import com.gic.enterprise.service.AppletCustomPageApiService;
import com.gic.enterprise.service.AppletCustomPageService; import com.gic.enterprise.service.AppletCustomPageService;
import com.gic.enterprise.service.AppletPageComponentService; import com.gic.enterprise.service.AppletPageComponentService;
import com.gic.enterprise.service.CustomStoreApiService;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport; import org.springframework.transaction.interceptor.TransactionAspectSupport;
import java.util.*;
/** /**
* *
* @ClassName: AppletCustomPageApiServiceImpl * @ClassName: AppletCustomPageApiServiceImpl
...@@ -111,6 +110,7 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic ...@@ -111,6 +110,7 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
} }
//新增或者编辑 //新增或者编辑
if (pageId == null) { if (pageId == null) {
record.setDeleteFlag(0);
pageId = appletCustomPageService.save(record); pageId = appletCustomPageService.save(record);
} else { } else {
TabAppletCustomPage getById = appletCustomPageService.getByPageId(pageId); TabAppletCustomPage getById = appletCustomPageService.getByPageId(pageId);
......
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