From 39308d6fa02f7751f6af69dd70c35dee1f141a0c Mon Sep 17 00:00:00 2001 From: xu_lw Date: Fri, 30 Aug 2019 15:13:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BC=80=E6=94=BE=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/modules/opn/opn-backend.vue | 55 +++++ .../src/views/modules/opn/opn-gateway.vue | 80 +++++++ .../modules/opn/opninterfacegroupinf.vue | 214 ++++++++++++++++++ .../OpnInterfaceGroupInfAddAction.java | 65 ++++++ .../OpnInterfaceGroupInfDeleteAction.java | 59 +++++ .../OpnInterfaceGroupInfListAction.java | 70 ++++++ .../OpnInterfaceGroupInfQueryAction.java | 62 +++++ .../OpnInterfaceGroupInfUpdateAction.java | 63 ++++++ .../buiopnbpc1/OpnInterfaceInfAddAction.java | 65 ++++++ .../OpnInterfaceInfDeleteAction.java | 59 +++++ .../buiopnbpc1/OpnInterfaceInfListAction.java | 78 +++++++ .../OpnInterfaceInfQueryAction.java | 62 +++++ .../OpnInterfaceInfUpdateAction.java | 63 ++++++ .../dal/dao/OpnInterfaceGroupInfMapper.java | 27 +++ .../opn/dal/dao/OpnInterfaceInfMapper.java | 27 +++ .../dal/entity/OpnInterfaceGroupInfDO.java | 89 ++++++++ .../web/opn/dal/entity/OpnInterfaceInfDO.java | 206 +++++++++++++++++ .../model/OpnInterfaceGroupInfAddReqBO.java | 44 ++++ .../OpnInterfaceGroupInfDeleteReqBO.java | 23 ++ .../model/OpnInterfaceGroupInfListReqBO.java | 21 ++ .../model/OpnInterfaceGroupInfQueryReqBO.java | 23 ++ .../OpnInterfaceGroupInfUpdateReqBO.java | 47 ++++ .../opn/model/OpnInterfaceInfAddReqBO.java | 98 ++++++++ .../opn/model/OpnInterfaceInfDeleteReqBO.java | 23 ++ .../opn/model/OpnInterfaceInfListReqBO.java | 21 ++ .../opn/model/OpnInterfaceInfQueryReqBO.java | 23 ++ .../opn/model/OpnInterfaceInfUpdateReqBO.java | 101 +++++++++ .../action/buipubbpc1/BuiDctDeleteAction.java | 12 + .../mbu/web/pub/dal/dao/BuiDctMapper.java | 2 + .../opn/mapper/OpnInterfaceGroupInfMapper.xml | 95 ++++++++ .../etc/opn/mapper/OpnInterfaceInfMapper.xml | 140 ++++++++++++ 31 files changed, 2017 insertions(+) create mode 100644 console-web/src/views/modules/opn/opn-backend.vue create mode 100644 console-web/src/views/modules/opn/opn-gateway.vue create mode 100644 console-web/src/views/modules/opn/opninterfacegroupinf.vue create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfAddAction.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfDeleteAction.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfListAction.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfQueryAction.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfUpdateAction.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfAddAction.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfDeleteAction.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfListAction.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfQueryAction.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfUpdateAction.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/dao/OpnInterfaceGroupInfMapper.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/dao/OpnInterfaceInfMapper.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/entity/OpnInterfaceGroupInfDO.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/entity/OpnInterfaceInfDO.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfAddReqBO.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfDeleteReqBO.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfListReqBO.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfQueryReqBO.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfUpdateReqBO.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfAddReqBO.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfDeleteReqBO.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfListReqBO.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfQueryReqBO.java create mode 100644 ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfUpdateReqBO.java create mode 100644 ecp-mbu-web/src/main/resources/app/mbu/etc/opn/mapper/OpnInterfaceGroupInfMapper.xml create mode 100644 ecp-mbu-web/src/main/resources/app/mbu/etc/opn/mapper/OpnInterfaceInfMapper.xml diff --git a/console-web/src/views/modules/opn/opn-backend.vue b/console-web/src/views/modules/opn/opn-backend.vue new file mode 100644 index 00000000..9e729f73 --- /dev/null +++ b/console-web/src/views/modules/opn/opn-backend.vue @@ -0,0 +1,55 @@ + + + diff --git a/console-web/src/views/modules/opn/opn-gateway.vue b/console-web/src/views/modules/opn/opn-gateway.vue new file mode 100644 index 00000000..92770ecd --- /dev/null +++ b/console-web/src/views/modules/opn/opn-gateway.vue @@ -0,0 +1,80 @@ + + + diff --git a/console-web/src/views/modules/opn/opninterfacegroupinf.vue b/console-web/src/views/modules/opn/opninterfacegroupinf.vue new file mode 100644 index 00000000..c6429db1 --- /dev/null +++ b/console-web/src/views/modules/opn/opninterfacegroupinf.vue @@ -0,0 +1,214 @@ + + + diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfAddAction.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfAddAction.java new file mode 100644 index 00000000..6311b67e --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfAddAction.java @@ -0,0 +1,65 @@ +package com.murong.ecp.netpay.mbu.web.opn.action.buiopnbpc1; + +import com.alibaba.fastjson.JSONObject; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnInterfaceGroupInfDO; +import com.murong.ecp.netpay.mbu.web.opn.dal.dao.OpnInterfaceGroupInfMapper; +import com.yuangou.ecp.biz.transengine.sqlsession.YGPageEntity; +import com.yuangou.ecp.bp.core.common.exception.YGException; +import com.yuangou.ecp.bp.core.common.message.YGBizMessage; +import com.yuangou.ecp.bp.core.common.message.YGBizMessageContext; +import com.yuangou.ecp.bp.core.common.yglog4j.Logger; +import com.yuangou.ecp.bp.core.common.yglog4j.YGLogger; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.apache.commons.lang.math.NumberUtils; +import org.apache.commons.lang.StringUtils; +import com.yuangou.ecp.bp.core.common.message.YGEDB; +import org.springframework.stereotype.Service; +import com.murong.ecp.netpay.mbu.web.opn.model.*; +import lombok.extern.slf4j.Slf4j; + +import java.util.List; +/** + * 接口信息表管理服务 + * Created by xu_lw on 2019-08-29 22:54:03. + */ +@Service("opninterfacegroupinfAdd") +@Slf4j +public class OpnInterfaceGroupInfAddAction extends BaseAction { + @Autowired + private OpnInterfaceGroupInfMapper opnInterfaceGroupInfMapper; + + + /** + * 增加记录 + * @param bizCtx 上下文 + * @param reqBO 请求对象 + * @return + * @throws YGException + */ + public ResultT execute(YGBizMessageContext bizCtx, OpnInterfaceGroupInfAddReqBO reqBO) throws YGException { + YGBizMessage bizMsg = bizCtx.getCurrentMsg(); + Logger msgLog = YGLogger.getLogger(bizMsg); + msgLog.info("add, reqBO=" + JSONObject.toJSON(reqBO)); + + ValidatorUtil.validateObject(reqBO); + OpnInterfaceGroupInfDO entity = new OpnInterfaceGroupInfDO(); + BeanUtils.copyProperties(reqBO, entity); + BuiOperDTO operDTO = OperSession.getOperInf(bizMsg); + + AuditUtil.addAudit(entity, operDTO); + int retCode = opnInterfaceGroupInfMapper.insertSelective(entity); + + ResultT resultT = new ResultT(); + if( retCode > 0 ) { + resultT.setMsgCod(CommonMessageCode.SUCC); + } else { + resultT.setMsgCod(CommonMessageCode.REC_NFND); + } + + return resultT; + } + + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfDeleteAction.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfDeleteAction.java new file mode 100644 index 00000000..f2374ea8 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfDeleteAction.java @@ -0,0 +1,59 @@ +package com.murong.ecp.netpay.mbu.web.opn.action.buiopnbpc1; + +import com.alibaba.fastjson.JSONObject; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnInterfaceGroupInfDO; +import com.murong.ecp.netpay.mbu.web.opn.dal.dao.OpnInterfaceGroupInfMapper; +import com.yuangou.ecp.biz.transengine.sqlsession.YGPageEntity; +import com.yuangou.ecp.bp.core.common.exception.YGException; +import com.yuangou.ecp.bp.core.common.message.YGBizMessage; +import com.yuangou.ecp.bp.core.common.message.YGBizMessageContext; +import com.yuangou.ecp.bp.core.common.yglog4j.Logger; +import com.yuangou.ecp.bp.core.common.yglog4j.YGLogger; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.apache.commons.lang.math.NumberUtils; +import org.apache.commons.lang.StringUtils; +import com.yuangou.ecp.bp.core.common.message.YGEDB; +import org.springframework.stereotype.Service; +import com.murong.ecp.netpay.mbu.web.opn.model.*; +import lombok.extern.slf4j.Slf4j; + +import java.util.List; +/** + * 接口信息表管理服务 + * Created by xu_lw on 2019-08-29 22:54:03. + */ +@Service("opninterfacegroupinfDelete") +@Slf4j +public class OpnInterfaceGroupInfDeleteAction extends BaseAction { + @Autowired + private OpnInterfaceGroupInfMapper opnInterfaceGroupInfMapper; + + /** + * 删除记录 + * @param bizCtx + * @param reqBO + * @return + * @throws YGException + */ + public ResultT execute(YGBizMessageContext bizCtx, OpnInterfaceGroupInfDeleteReqBO reqBO) throws YGException { + YGBizMessage bizMsg = bizCtx.getCurrentMsg(); + Logger msgLog = YGLogger.getLogger(bizMsg); + msgLog.info("delete, reqBO=" + JSONObject.toJSON(reqBO)); + + ValidatorUtil.validateObject(reqBO); + + int retCod = opnInterfaceGroupInfMapper.deleteByIds(reqBO.getIds()); + + ResultT resultT = new ResultT(); + if( retCod > 0 ) { + resultT.setMsgCod(CommonMessageCode.SUCC); + } else { + resultT.setMsgCod(CommonMessageCode.REC_NFND); + } + + return resultT; + } + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfListAction.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfListAction.java new file mode 100644 index 00000000..9ffe802a --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfListAction.java @@ -0,0 +1,70 @@ +package com.murong.ecp.netpay.mbu.web.opn.action.buiopnbpc1; + +import com.alibaba.fastjson.JSONObject; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnInterfaceGroupInfDO; +import com.murong.ecp.netpay.mbu.web.opn.dal.dao.OpnInterfaceGroupInfMapper; +import com.yuangou.ecp.biz.transengine.sqlsession.YGPageEntity; +import com.yuangou.ecp.bp.core.common.exception.YGException; +import com.yuangou.ecp.bp.core.common.message.YGBizMessage; +import com.yuangou.ecp.bp.core.common.message.YGBizMessageContext; +import com.yuangou.ecp.bp.core.common.yglog4j.Logger; +import com.yuangou.ecp.bp.core.common.yglog4j.YGLogger; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.apache.commons.lang.math.NumberUtils; +import org.apache.commons.lang.StringUtils; +import com.yuangou.ecp.bp.core.common.message.YGEDB; +import org.springframework.stereotype.Service; +import com.murong.ecp.netpay.mbu.web.opn.model.*; +import lombok.extern.slf4j.Slf4j; + +import java.util.List; +/** + * 接口信息表管理服务 + * Created by xu_lw on 2019-08-29 22:54:03. + */ +@Service("opninterfacegroupinfList") +@Slf4j +public class OpnInterfaceGroupInfListAction extends BaseAction { + @Autowired + private OpnInterfaceGroupInfMapper opnInterfaceGroupInfMapper; + + /** + * 分页查询 + * @param bizCtx 上下文 + * @param reqBO 请求对象 + * @return + * @throws YGException + */ + public PageResultT execute(YGBizMessageContext bizCtx, OpnInterfaceGroupInfListReqBO reqBO) throws YGException { + YGBizMessage bizMsg = bizCtx.getCurrentMsg(); + Logger msgLog = YGLogger.getLogger(bizMsg); + YGEDB root = bizMsg.getEDBBody(); + msgLog.info("list, reqBO=" + JSONObject.toJSON(reqBO)); + + ValidatorUtil.validateObject(reqBO); + + OpnInterfaceGroupInfDO entity = new OpnInterfaceGroupInfDO(); + BeanUtils.copyProperties(reqBO, entity); + entity.setName(reqBO.getSearch()); + entity.setStatus(reqBO.getSearch()); + entity.setRemark(reqBO.getSearch()); + + YGPageEntity pageEntity = YGPageEntity.createPageEntity(root); + pageEntity.setTot_rec_num(NumberUtils.toInt(root.getData("totalrows"))); + + List list = opnInterfaceGroupInfMapper.selectPage(pageEntity, entity); + + PageResultT resultT = new PageResultT(); + resultT.setPageEntity(pageEntity); + if( list == null || list.isEmpty() ) { + resultT.setMsgCod(CommonMessageCode.REC_NFND); + } else { + resultT.setMsgCod(CommonMessageCode.SUCC); + resultT.setData(list); + } + + return resultT; + } +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfQueryAction.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfQueryAction.java new file mode 100644 index 00000000..ec7ad761 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfQueryAction.java @@ -0,0 +1,62 @@ +package com.murong.ecp.netpay.mbu.web.opn.action.buiopnbpc1; + +import com.alibaba.fastjson.JSONObject; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnInterfaceGroupInfDO; +import com.murong.ecp.netpay.mbu.web.opn.dal.dao.OpnInterfaceGroupInfMapper; +import com.yuangou.ecp.biz.transengine.sqlsession.YGPageEntity; +import com.yuangou.ecp.bp.core.common.exception.YGException; +import com.yuangou.ecp.bp.core.common.message.YGBizMessage; +import com.yuangou.ecp.bp.core.common.message.YGBizMessageContext; +import com.yuangou.ecp.bp.core.common.yglog4j.Logger; +import com.yuangou.ecp.bp.core.common.yglog4j.YGLogger; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.apache.commons.lang.math.NumberUtils; +import org.apache.commons.lang.StringUtils; +import com.yuangou.ecp.bp.core.common.message.YGEDB; +import org.springframework.stereotype.Service; +import com.murong.ecp.netpay.mbu.web.opn.model.*; +import lombok.extern.slf4j.Slf4j; + +import java.util.List; +/** + * 接口信息表管理服务 + * Created by xu_lw on 2019-08-29 22:54:03. + */ +@Service("opninterfacegroupinfQuery") +@Slf4j +public class OpnInterfaceGroupInfQueryAction extends BaseAction { + @Autowired + private OpnInterfaceGroupInfMapper opnInterfaceGroupInfMapper; + + /** + * 查询单笔 + * @param bizCtx 上下文 + * @param reqBO 请求对象 + * @return + * @throws YGException + */ + public ResultT execute(YGBizMessageContext bizCtx, OpnInterfaceGroupInfQueryReqBO reqBO) throws YGException { + YGBizMessage bizMsg = bizCtx.getCurrentMsg(); + Logger msgLog = YGLogger.getLogger(bizMsg); + msgLog.info("query, reqBO=" + JSONObject.toJSON(reqBO)); + + ValidatorUtil.validateObject(reqBO); + OpnInterfaceGroupInfDO entity = new OpnInterfaceGroupInfDO(); + BeanUtils.copyProperties(reqBO, entity); + + entity = opnInterfaceGroupInfMapper.selectByPrimaryKey(entity); + + ResultT resultT = new ResultT(); + if( entity != null ) { + resultT.setMsgCod(CommonMessageCode.SUCC); + resultT.setData(entity); + } else { + resultT.setMsgCod(CommonMessageCode.REC_NFND); + } + + return resultT; + } + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfUpdateAction.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfUpdateAction.java new file mode 100644 index 00000000..647bfa09 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceGroupInfUpdateAction.java @@ -0,0 +1,63 @@ +package com.murong.ecp.netpay.mbu.web.opn.action.buiopnbpc1; + +import com.alibaba.fastjson.JSONObject; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnInterfaceGroupInfDO; +import com.murong.ecp.netpay.mbu.web.opn.dal.dao.OpnInterfaceGroupInfMapper; +import com.yuangou.ecp.biz.transengine.sqlsession.YGPageEntity; +import com.yuangou.ecp.bp.core.common.exception.YGException; +import com.yuangou.ecp.bp.core.common.message.YGBizMessage; +import com.yuangou.ecp.bp.core.common.message.YGBizMessageContext; +import com.yuangou.ecp.bp.core.common.yglog4j.Logger; +import com.yuangou.ecp.bp.core.common.yglog4j.YGLogger; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.apache.commons.lang.math.NumberUtils; +import org.apache.commons.lang.StringUtils; +import com.yuangou.ecp.bp.core.common.message.YGEDB; +import org.springframework.stereotype.Service; +import com.murong.ecp.netpay.mbu.web.opn.model.*; +import lombok.extern.slf4j.Slf4j; + +import java.util.List; +/** + * 接口信息表管理服务 + * Created by xu_lw on 2019-08-29 22:54:03. + */ +@Service("opninterfacegroupinfUpdate") +@Slf4j +public class OpnInterfaceGroupInfUpdateAction extends BaseAction { + @Autowired + private OpnInterfaceGroupInfMapper opnInterfaceGroupInfMapper; + + /** + * 更新单笔 + * @param bizCtx 上下文 + * @param reqBO 请求对象 + * @return + * @throws YGException + */ + public ResultT execute(YGBizMessageContext bizCtx, OpnInterfaceGroupInfUpdateReqBO reqBO) throws YGException { + YGBizMessage bizMsg = bizCtx.getCurrentMsg(); + Logger msgLog = YGLogger.getLogger(bizMsg); + msgLog.info("update, reqBO=" + JSONObject.toJSON(reqBO)); + + ValidatorUtil.validateObject(reqBO); + OpnInterfaceGroupInfDO entity = new OpnInterfaceGroupInfDO(); + BeanUtils.copyProperties(reqBO, entity); + BuiOperDTO operDTO = OperSession.getOperInf(bizMsg); + + AuditUtil.updateAudit(entity, operDTO); + int retCode = opnInterfaceGroupInfMapper.updateByPrimaryKeySelective(entity); + + ResultT resultT = new ResultT(); + if( retCode > 0 ) { + resultT.setMsgCod(CommonMessageCode.SUCC); + } else { + resultT.setMsgCod(CommonMessageCode.REC_NFND); + } + + return resultT; + } + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfAddAction.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfAddAction.java new file mode 100644 index 00000000..1763c3ba --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfAddAction.java @@ -0,0 +1,65 @@ +package com.murong.ecp.netpay.mbu.web.opn.action.buiopnbpc1; + +import com.alibaba.fastjson.JSONObject; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnInterfaceInfDO; +import com.murong.ecp.netpay.mbu.web.opn.dal.dao.OpnInterfaceInfMapper; +import com.yuangou.ecp.biz.transengine.sqlsession.YGPageEntity; +import com.yuangou.ecp.bp.core.common.exception.YGException; +import com.yuangou.ecp.bp.core.common.message.YGBizMessage; +import com.yuangou.ecp.bp.core.common.message.YGBizMessageContext; +import com.yuangou.ecp.bp.core.common.yglog4j.Logger; +import com.yuangou.ecp.bp.core.common.yglog4j.YGLogger; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.apache.commons.lang.math.NumberUtils; +import org.apache.commons.lang.StringUtils; +import com.yuangou.ecp.bp.core.common.message.YGEDB; +import org.springframework.stereotype.Service; +import com.murong.ecp.netpay.mbu.web.opn.model.*; +import lombok.extern.slf4j.Slf4j; + +import java.util.List; +/** + * 接口信息表管理服务 + * Created by xu_lw on 2019-08-29 22:54:06. + */ +@Service("opninterfaceinfAdd") +@Slf4j +public class OpnInterfaceInfAddAction extends BaseAction { + @Autowired + private OpnInterfaceInfMapper opnInterfaceInfMapper; + + + /** + * 增加记录 + * @param bizCtx 上下文 + * @param reqBO 请求对象 + * @return + * @throws YGException + */ + public ResultT execute(YGBizMessageContext bizCtx, OpnInterfaceInfAddReqBO reqBO) throws YGException { + YGBizMessage bizMsg = bizCtx.getCurrentMsg(); + Logger msgLog = YGLogger.getLogger(bizMsg); + msgLog.info("add, reqBO=" + JSONObject.toJSON(reqBO)); + + ValidatorUtil.validateObject(reqBO); + OpnInterfaceInfDO entity = new OpnInterfaceInfDO(); + BeanUtils.copyProperties(reqBO, entity); + BuiOperDTO operDTO = OperSession.getOperInf(bizMsg); + + AuditUtil.addAudit(entity, operDTO); + int retCode = opnInterfaceInfMapper.insertSelective(entity); + + ResultT resultT = new ResultT(); + if( retCode > 0 ) { + resultT.setMsgCod(CommonMessageCode.SUCC); + } else { + resultT.setMsgCod(CommonMessageCode.REC_NFND); + } + + return resultT; + } + + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfDeleteAction.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfDeleteAction.java new file mode 100644 index 00000000..b809d4b5 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfDeleteAction.java @@ -0,0 +1,59 @@ +package com.murong.ecp.netpay.mbu.web.opn.action.buiopnbpc1; + +import com.alibaba.fastjson.JSONObject; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnInterfaceInfDO; +import com.murong.ecp.netpay.mbu.web.opn.dal.dao.OpnInterfaceInfMapper; +import com.yuangou.ecp.biz.transengine.sqlsession.YGPageEntity; +import com.yuangou.ecp.bp.core.common.exception.YGException; +import com.yuangou.ecp.bp.core.common.message.YGBizMessage; +import com.yuangou.ecp.bp.core.common.message.YGBizMessageContext; +import com.yuangou.ecp.bp.core.common.yglog4j.Logger; +import com.yuangou.ecp.bp.core.common.yglog4j.YGLogger; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.apache.commons.lang.math.NumberUtils; +import org.apache.commons.lang.StringUtils; +import com.yuangou.ecp.bp.core.common.message.YGEDB; +import org.springframework.stereotype.Service; +import com.murong.ecp.netpay.mbu.web.opn.model.*; +import lombok.extern.slf4j.Slf4j; + +import java.util.List; +/** + * 接口信息表管理服务 + * Created by xu_lw on 2019-08-29 22:54:06. + */ +@Service("opninterfaceinfDelete") +@Slf4j +public class OpnInterfaceInfDeleteAction extends BaseAction { + @Autowired + private OpnInterfaceInfMapper opnInterfaceInfMapper; + + /** + * 删除记录 + * @param bizCtx + * @param reqBO + * @return + * @throws YGException + */ + public ResultT execute(YGBizMessageContext bizCtx, OpnInterfaceInfDeleteReqBO reqBO) throws YGException { + YGBizMessage bizMsg = bizCtx.getCurrentMsg(); + Logger msgLog = YGLogger.getLogger(bizMsg); + msgLog.info("delete, reqBO=" + JSONObject.toJSON(reqBO)); + + ValidatorUtil.validateObject(reqBO); + + int retCod = opnInterfaceInfMapper.deleteByIds(reqBO.getIds()); + + ResultT resultT = new ResultT(); + if( retCod > 0 ) { + resultT.setMsgCod(CommonMessageCode.SUCC); + } else { + resultT.setMsgCod(CommonMessageCode.REC_NFND); + } + + return resultT; + } + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfListAction.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfListAction.java new file mode 100644 index 00000000..99516eb5 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfListAction.java @@ -0,0 +1,78 @@ +package com.murong.ecp.netpay.mbu.web.opn.action.buiopnbpc1; + +import com.alibaba.fastjson.JSONObject; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnInterfaceInfDO; +import com.murong.ecp.netpay.mbu.web.opn.dal.dao.OpnInterfaceInfMapper; +import com.yuangou.ecp.biz.transengine.sqlsession.YGPageEntity; +import com.yuangou.ecp.bp.core.common.exception.YGException; +import com.yuangou.ecp.bp.core.common.message.YGBizMessage; +import com.yuangou.ecp.bp.core.common.message.YGBizMessageContext; +import com.yuangou.ecp.bp.core.common.yglog4j.Logger; +import com.yuangou.ecp.bp.core.common.yglog4j.YGLogger; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.apache.commons.lang.math.NumberUtils; +import org.apache.commons.lang.StringUtils; +import com.yuangou.ecp.bp.core.common.message.YGEDB; +import org.springframework.stereotype.Service; +import com.murong.ecp.netpay.mbu.web.opn.model.*; +import lombok.extern.slf4j.Slf4j; + +import java.util.List; +/** + * 接口信息表管理服务 + * Created by xu_lw on 2019-08-29 22:54:06. + */ +@Service("opninterfaceinfList") +@Slf4j +public class OpnInterfaceInfListAction extends BaseAction { + @Autowired + private OpnInterfaceInfMapper opnInterfaceInfMapper; + + /** + * 分页查询 + * @param bizCtx 上下文 + * @param reqBO 请求对象 + * @return + * @throws YGException + */ + public PageResultT execute(YGBizMessageContext bizCtx, OpnInterfaceInfListReqBO reqBO) throws YGException { + YGBizMessage bizMsg = bizCtx.getCurrentMsg(); + Logger msgLog = YGLogger.getLogger(bizMsg); + YGEDB root = bizMsg.getEDBBody(); + msgLog.info("list, reqBO=" + JSONObject.toJSON(reqBO)); + + ValidatorUtil.validateObject(reqBO); + + OpnInterfaceInfDO entity = new OpnInterfaceInfDO(); + BeanUtils.copyProperties(reqBO, entity); + entity.setName(reqBO.getSearch()); + entity.setReqMethod(reqBO.getSearch()); + entity.setGwReqPath(reqBO.getSearch()); + entity.setBackendReqType(reqBO.getSearch()); + entity.setBackendService(reqBO.getSearch()); + entity.setBackendReqPath(reqBO.getSearch()); + entity.setReqParams(reqBO.getSearch()); + entity.setRspParams(reqBO.getSearch()); + entity.setConstParams(reqBO.getSearch()); + entity.setStatus(reqBO.getSearch()); + entity.setRemark(reqBO.getSearch()); + + YGPageEntity pageEntity = YGPageEntity.createPageEntity(root); + pageEntity.setTot_rec_num(NumberUtils.toInt(root.getData("totalrows"))); + + List list = opnInterfaceInfMapper.selectPage(pageEntity, entity); + + PageResultT resultT = new PageResultT(); + resultT.setPageEntity(pageEntity); + if( list == null || list.isEmpty() ) { + resultT.setMsgCod(CommonMessageCode.REC_NFND); + } else { + resultT.setMsgCod(CommonMessageCode.SUCC); + resultT.setData(list); + } + + return resultT; + } +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfQueryAction.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfQueryAction.java new file mode 100644 index 00000000..a00d84aa --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfQueryAction.java @@ -0,0 +1,62 @@ +package com.murong.ecp.netpay.mbu.web.opn.action.buiopnbpc1; + +import com.alibaba.fastjson.JSONObject; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnInterfaceInfDO; +import com.murong.ecp.netpay.mbu.web.opn.dal.dao.OpnInterfaceInfMapper; +import com.yuangou.ecp.biz.transengine.sqlsession.YGPageEntity; +import com.yuangou.ecp.bp.core.common.exception.YGException; +import com.yuangou.ecp.bp.core.common.message.YGBizMessage; +import com.yuangou.ecp.bp.core.common.message.YGBizMessageContext; +import com.yuangou.ecp.bp.core.common.yglog4j.Logger; +import com.yuangou.ecp.bp.core.common.yglog4j.YGLogger; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.apache.commons.lang.math.NumberUtils; +import org.apache.commons.lang.StringUtils; +import com.yuangou.ecp.bp.core.common.message.YGEDB; +import org.springframework.stereotype.Service; +import com.murong.ecp.netpay.mbu.web.opn.model.*; +import lombok.extern.slf4j.Slf4j; + +import java.util.List; +/** + * 接口信息表管理服务 + * Created by xu_lw on 2019-08-29 22:54:06. + */ +@Service("opninterfaceinfQuery") +@Slf4j +public class OpnInterfaceInfQueryAction extends BaseAction { + @Autowired + private OpnInterfaceInfMapper opnInterfaceInfMapper; + + /** + * 查询单笔 + * @param bizCtx 上下文 + * @param reqBO 请求对象 + * @return + * @throws YGException + */ + public ResultT execute(YGBizMessageContext bizCtx, OpnInterfaceInfQueryReqBO reqBO) throws YGException { + YGBizMessage bizMsg = bizCtx.getCurrentMsg(); + Logger msgLog = YGLogger.getLogger(bizMsg); + msgLog.info("query, reqBO=" + JSONObject.toJSON(reqBO)); + + ValidatorUtil.validateObject(reqBO); + OpnInterfaceInfDO entity = new OpnInterfaceInfDO(); + BeanUtils.copyProperties(reqBO, entity); + + entity = opnInterfaceInfMapper.selectByPrimaryKey(entity); + + ResultT resultT = new ResultT(); + if( entity != null ) { + resultT.setMsgCod(CommonMessageCode.SUCC); + resultT.setData(entity); + } else { + resultT.setMsgCod(CommonMessageCode.REC_NFND); + } + + return resultT; + } + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfUpdateAction.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfUpdateAction.java new file mode 100644 index 00000000..572cdbb7 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/action/buiopnbpc1/OpnInterfaceInfUpdateAction.java @@ -0,0 +1,63 @@ +package com.murong.ecp.netpay.mbu.web.opn.action.buiopnbpc1; + +import com.alibaba.fastjson.JSONObject; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnInterfaceInfDO; +import com.murong.ecp.netpay.mbu.web.opn.dal.dao.OpnInterfaceInfMapper; +import com.yuangou.ecp.biz.transengine.sqlsession.YGPageEntity; +import com.yuangou.ecp.bp.core.common.exception.YGException; +import com.yuangou.ecp.bp.core.common.message.YGBizMessage; +import com.yuangou.ecp.bp.core.common.message.YGBizMessageContext; +import com.yuangou.ecp.bp.core.common.yglog4j.Logger; +import com.yuangou.ecp.bp.core.common.yglog4j.YGLogger; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.apache.commons.lang.math.NumberUtils; +import org.apache.commons.lang.StringUtils; +import com.yuangou.ecp.bp.core.common.message.YGEDB; +import org.springframework.stereotype.Service; +import com.murong.ecp.netpay.mbu.web.opn.model.*; +import lombok.extern.slf4j.Slf4j; + +import java.util.List; +/** + * 接口信息表管理服务 + * Created by xu_lw on 2019-08-29 22:54:06. + */ +@Service("opninterfaceinfUpdate") +@Slf4j +public class OpnInterfaceInfUpdateAction extends BaseAction { + @Autowired + private OpnInterfaceInfMapper opnInterfaceInfMapper; + + /** + * 更新单笔 + * @param bizCtx 上下文 + * @param reqBO 请求对象 + * @return + * @throws YGException + */ + public ResultT execute(YGBizMessageContext bizCtx, OpnInterfaceInfUpdateReqBO reqBO) throws YGException { + YGBizMessage bizMsg = bizCtx.getCurrentMsg(); + Logger msgLog = YGLogger.getLogger(bizMsg); + msgLog.info("update, reqBO=" + JSONObject.toJSON(reqBO)); + + ValidatorUtil.validateObject(reqBO); + OpnInterfaceInfDO entity = new OpnInterfaceInfDO(); + BeanUtils.copyProperties(reqBO, entity); + BuiOperDTO operDTO = OperSession.getOperInf(bizMsg); + + AuditUtil.updateAudit(entity, operDTO); + int retCode = opnInterfaceInfMapper.updateByPrimaryKeySelective(entity); + + ResultT resultT = new ResultT(); + if( retCode > 0 ) { + resultT.setMsgCod(CommonMessageCode.SUCC); + } else { + resultT.setMsgCod(CommonMessageCode.REC_NFND); + } + + return resultT; + } + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/dao/OpnInterfaceGroupInfMapper.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/dao/OpnInterfaceGroupInfMapper.java new file mode 100644 index 00000000..5e5e5187 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/dao/OpnInterfaceGroupInfMapper.java @@ -0,0 +1,27 @@ +/** + * OpnInterfaceGroupInfMapper.java + * Copyright(C) 北京沐融信息科技有限公司 + * All rights reserved + * ------------------------------------------------ + * Created by xu_lw on 2019-08-29 22:54:03. + */ +package com.murong.ecp.netpay.mbu.web.opn.dal.dao; + +import com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnInterfaceGroupInfDO; +import com.yuangou.ecp.biz.transengine.sqlsession.YGPageEntity; +import com.yuangou.ecp.biz.transengine.sqlsession.YGResultHandler; +import com.yuangou.ecp.biz.transengine.sqlsession.YGSqlCursor; + +import java.util.List; +public interface OpnInterfaceGroupInfMapper { + OpnInterfaceGroupInfDO selectByPrimaryKey(OpnInterfaceGroupInfDO entity); + int updateByPrimaryKey(OpnInterfaceGroupInfDO entity); + int updateByPrimaryKeySelective(OpnInterfaceGroupInfDO entity); + int deleteByIds(String ids); + int deleteByPrimaryKey(OpnInterfaceGroupInfDO entity); + int insertSelective(OpnInterfaceGroupInfDO entity); + int insert(OpnInterfaceGroupInfDO entity); + List selectPage(YGPageEntity pageEntity, OpnInterfaceGroupInfDO entity); + YGSqlCursor selectCursor(OpnInterfaceGroupInfDO entity); + void selectResultHandler(OpnInterfaceGroupInfDO entity, YGResultHandler resultHandler); +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/dao/OpnInterfaceInfMapper.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/dao/OpnInterfaceInfMapper.java new file mode 100644 index 00000000..a4785596 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/dao/OpnInterfaceInfMapper.java @@ -0,0 +1,27 @@ +/** + * OpnInterfaceInfMapper.java + * Copyright(C) 北京沐融信息科技有限公司 + * All rights reserved + * ------------------------------------------------ + * Created by xu_lw on 2019-08-29 22:54:06. + */ +package com.murong.ecp.netpay.mbu.web.opn.dal.dao; + +import com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnInterfaceInfDO; +import com.yuangou.ecp.biz.transengine.sqlsession.YGPageEntity; +import com.yuangou.ecp.biz.transengine.sqlsession.YGResultHandler; +import com.yuangou.ecp.biz.transengine.sqlsession.YGSqlCursor; + +import java.util.List; +public interface OpnInterfaceInfMapper { + OpnInterfaceInfDO selectByPrimaryKey(OpnInterfaceInfDO entity); + int updateByPrimaryKey(OpnInterfaceInfDO entity); + int updateByPrimaryKeySelective(OpnInterfaceInfDO entity); + int deleteByIds(String ids); + int deleteByPrimaryKey(OpnInterfaceInfDO entity); + int insertSelective(OpnInterfaceInfDO entity); + int insert(OpnInterfaceInfDO entity); + List selectPage(YGPageEntity pageEntity, OpnInterfaceInfDO entity); + YGSqlCursor selectCursor(OpnInterfaceInfDO entity); + void selectResultHandler(OpnInterfaceInfDO entity, YGResultHandler resultHandler); +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/entity/OpnInterfaceGroupInfDO.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/entity/OpnInterfaceGroupInfDO.java new file mode 100644 index 00000000..a56e8d33 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/entity/OpnInterfaceGroupInfDO.java @@ -0,0 +1,89 @@ +/** + * OpnInterfaceGroupInfDO.java + * Copyright(C) 北京沐融信息科技有限公司 + * ------------------------------------------------ + * Created by xu_lw on 2019-08-29 22:54:03. + */ +package com.murong.ecp.netpay.mbu.web.opn.dal.entity; + +import com.murong.ecp.bp.common.util.BaseDO; +import net.sf.json.JSONObject; +import com.yuangou.ecp.bp.comp.pubatc.common.YGAmt; + +import java.math.BigDecimal; +/** + * 接口信息表 + */ +public class OpnInterfaceGroupInfDO extends BaseDO { + + /** + * 标识 + */ + private Long id; + + /** + * 网关标识 + */ + private Long gatewayId; + + /** + * 组名称 + */ + private String name; + + /** + * 状态(0-无效,1-有效) + */ + private String status; + + /** + * 备注 + */ + private String remark; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id == null ? Long.valueOf(0) : id; + } + public Long getGatewayId() { + return gatewayId; + } + + public void setGatewayId(Long gatewayId) { + this.gatewayId = gatewayId == null ? Long.valueOf(0) : gatewayId; + } + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? "" : name.trim(); + } + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status == null ? "" : status.trim(); + } + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark == null ? "" : remark.trim(); + } + + @Override + public void clean() { + super.clean(); + setId(null); + setGatewayId(null); + setName(null); + setStatus(null); + setRemark(null); + } +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/entity/OpnInterfaceInfDO.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/entity/OpnInterfaceInfDO.java new file mode 100644 index 00000000..b3343bae --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/dal/entity/OpnInterfaceInfDO.java @@ -0,0 +1,206 @@ +/** + * OpnInterfaceInfDO.java + * Copyright(C) 北京沐融信息科技有限公司 + * ------------------------------------------------ + * Created by xu_lw on 2019-08-29 22:54:06. + */ +package com.murong.ecp.netpay.mbu.web.opn.dal.entity; + +import com.murong.ecp.bp.common.util.BaseDO; +import net.sf.json.JSONObject; +import com.yuangou.ecp.bp.comp.pubatc.common.YGAmt; + +import java.math.BigDecimal; +/** + * 接口信息表 + */ +public class OpnInterfaceInfDO extends BaseDO { + + /** + * 标识 + */ + private Long id; + + /** + * 网关标识 + */ + private Long gatewayId; + + /** + * 组标识 + */ + private Long groupId; + + /** + * 名称 + */ + private String name; + + /** + * 网关请求方式(P-POST,G-GET,U-PUT,D-DELETE,H-HEAD,O-OPTIONS,C-PATCH) + */ + private String reqMethod; + + /** + * 网关请求路径 + */ + private String gwReqPath; + + /** + * 后端请求类型(F-跟随,P-POST,G-GET,U-PUT,D-DELETE,H-HEAD,O-OPTIONS,C-PATCH) + */ + private String backendReqType; + + /** + * 后端请求服务 + */ + private String backendService; + + /** + * 后端请求路径 + */ + private String backendReqPath; + + /** + * 请求参数 + */ + private String reqParams; + + /** + * 响应参数 + */ + private String rspParams; + + /** + * 常量参数 + */ + private String constParams; + + /** + * 状态(1-有效,0-无效) + */ + private String status; + + /** + * 备注 + */ + private String remark; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id == null ? Long.valueOf(0) : id; + } + public Long getGatewayId() { + return gatewayId; + } + + public void setGatewayId(Long gatewayId) { + this.gatewayId = gatewayId == null ? Long.valueOf(0) : gatewayId; + } + public Long getGroupId() { + return groupId; + } + + public void setGroupId(Long groupId) { + this.groupId = groupId == null ? Long.valueOf(0) : groupId; + } + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? "" : name.trim(); + } + public String getReqMethod() { + return reqMethod; + } + + public void setReqMethod(String reqMethod) { + this.reqMethod = reqMethod == null ? "" : reqMethod.trim(); + } + public String getGwReqPath() { + return gwReqPath; + } + + public void setGwReqPath(String gwReqPath) { + this.gwReqPath = gwReqPath == null ? "" : gwReqPath.trim(); + } + public String getBackendReqType() { + return backendReqType; + } + + public void setBackendReqType(String backendReqType) { + this.backendReqType = backendReqType == null ? "" : backendReqType.trim(); + } + public String getBackendService() { + return backendService; + } + + public void setBackendService(String backendService) { + this.backendService = backendService == null ? "" : backendService.trim(); + } + public String getBackendReqPath() { + return backendReqPath; + } + + public void setBackendReqPath(String backendReqPath) { + this.backendReqPath = backendReqPath == null ? "" : backendReqPath.trim(); + } + public String getReqParams() { + return reqParams; + } + + public void setReqParams(String reqParams) { + this.reqParams = reqParams == null ? "" : reqParams.trim(); + } + public String getRspParams() { + return rspParams; + } + + public void setRspParams(String rspParams) { + this.rspParams = rspParams == null ? "" : rspParams.trim(); + } + public String getConstParams() { + return constParams; + } + + public void setConstParams(String constParams) { + this.constParams = constParams == null ? "" : constParams.trim(); + } + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status == null ? "" : status.trim(); + } + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark == null ? "" : remark.trim(); + } + + @Override + public void clean() { + super.clean(); + setId(null); + setGatewayId(null); + setGroupId(null); + setName(null); + setReqMethod(null); + setGwReqPath(null); + setBackendReqType(null); + setBackendService(null); + setBackendReqPath(null); + setReqParams(null); + setRspParams(null); + setConstParams(null); + setStatus(null); + setRemark(null); + } +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfAddReqBO.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfAddReqBO.java new file mode 100644 index 00000000..72954cda --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfAddReqBO.java @@ -0,0 +1,44 @@ +package com.murong.ecp.netpay.mbu.web.opn.model; +import java.math.BigDecimal; +import net.sf.oval.constraint.NotEmpty; +import net.sf.oval.constraint.Size; +import net.sf.oval.constraint.NotNull; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.bp.common.dict.ECPDict; +import com.murong.ecp.bp.common.dict.ECPDict; +import com.yuangou.ecp.bp.comp.pubatc.common.YGAmt; +import lombok.Data; + + +/** +* Created by syxlw on 2018/4/28. +*/ +@Data +public class OpnInterfaceGroupInfAddReqBO { + /** + * 网关标识 + */ + @ECPDict(required = true, message = "gatewayId值不合法") + private Long gatewayId; + + /** + * 组名称 + */ + @ECPDict(required = true,length = 60, message = "name值不合法") + private String name; + + /** + * 状态(0-无效,1-有效) + */ + @ECPDict(required = true,length = 1, message = "status值不合法") + private String status; + + /** + * 备注 + */ + @ECPDict(required = true,length = 80, message = "remark值不合法") + private String remark; + + + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfDeleteReqBO.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfDeleteReqBO.java new file mode 100644 index 00000000..2c290391 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfDeleteReqBO.java @@ -0,0 +1,23 @@ +package com.murong.ecp.netpay.mbu.web.opn.model; +import java.math.BigDecimal; +import net.sf.oval.constraint.NotEmpty; +import net.sf.oval.constraint.Size; +import net.sf.oval.constraint.NotNull; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.bp.common.dict.ECPDict; +import com.yuangou.ecp.bp.comp.pubatc.common.YGAmt; +import lombok.Data; + + +/** +* Created by syxlw on 2018/4/28. +*/ +@Data +public class OpnInterfaceGroupInfDeleteReqBO { + /** + * id + */ + @ECPDict(required = true, message = "ids值不合法") + private String ids; + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfListReqBO.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfListReqBO.java new file mode 100644 index 00000000..bc344d32 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfListReqBO.java @@ -0,0 +1,21 @@ +package com.murong.ecp.netpay.mbu.web.opn.model; +import java.math.BigDecimal; +import com.murong.ecp.netpay.mbu.web.common.utils.PageRequest; +import net.sf.oval.constraint.NotNull; +import net.sf.oval.constraint.Size; +import net.sf.oval.constraint.NotEmpty; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.bp.common.dict.ECPDict; +import com.yuangou.ecp.bp.comp.pubatc.common.YGAmt; +import lombok.Data; + +/** +* Created by syxlw on 2018/4/28. +*/ +@Data +public class OpnInterfaceGroupInfListReqBO extends PageRequest { + /** + * search + */ + private String search; +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfQueryReqBO.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfQueryReqBO.java new file mode 100644 index 00000000..f5425272 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfQueryReqBO.java @@ -0,0 +1,23 @@ +package com.murong.ecp.netpay.mbu.web.opn.model; +import net.sf.oval.constraint.NotNull; +import net.sf.oval.constraint.Size; +import net.sf.oval.constraint.NotEmpty; +import java.math.BigDecimal; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.bp.common.dict.ECPDict; +import com.yuangou.ecp.bp.comp.pubatc.common.YGAmt; +import lombok.Data; + +/** +* Created by syxlw on 2018/4/28. +*/ +@Data +public class OpnInterfaceGroupInfQueryReqBO { + /** + * 标识 + */ + @ECPDict(required = true, message = "id值不合法") + private Long id; + + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfUpdateReqBO.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfUpdateReqBO.java new file mode 100644 index 00000000..d2c0ec74 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceGroupInfUpdateReqBO.java @@ -0,0 +1,47 @@ +package com.murong.ecp.netpay.mbu.web.opn.model; +import java.math.BigDecimal; +import net.sf.oval.constraint.NotNull; +import net.sf.oval.constraint.Size; +import net.sf.oval.constraint.NotEmpty; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.bp.common.dict.ECPDict; +import com.yuangou.ecp.bp.comp.pubatc.common.YGAmt; +import lombok.Data; + + +/** +* Created by syxlw on 2018/4/28. +*/ +@Data +public class OpnInterfaceGroupInfUpdateReqBO { + /** + * 标识 + */ + @ECPDict(required = true, message = "id值不合法") + private Long id; + + /** + * 网关标识 + */ + @ECPDict(required = true, message = "gatewayId值不合法") + private Long gatewayId; + + /** + * 组名称 + */ + @ECPDict(required = true,length = 60, message = "name值不合法") + private String name; + + /** + * 状态(0-无效,1-有效) + */ + @ECPDict(required = true,length = 1, message = "status值不合法") + private String status; + + /** + * 备注 + */ + @ECPDict(required = true,length = 80, message = "remark值不合法") + private String remark; + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfAddReqBO.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfAddReqBO.java new file mode 100644 index 00000000..df4a8a98 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfAddReqBO.java @@ -0,0 +1,98 @@ +package com.murong.ecp.netpay.mbu.web.opn.model; +import java.math.BigDecimal; +import net.sf.oval.constraint.NotEmpty; +import net.sf.oval.constraint.Size; +import net.sf.oval.constraint.NotNull; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.bp.common.dict.ECPDict; +import com.murong.ecp.bp.common.dict.ECPDict; +import com.yuangou.ecp.bp.comp.pubatc.common.YGAmt; +import lombok.Data; + + +/** +* Created by syxlw on 2018/4/28. +*/ +@Data +public class OpnInterfaceInfAddReqBO { + /** + * 网关标识 + */ + @ECPDict(required = true, message = "gatewayId值不合法") + private Long gatewayId; + + /** + * 组标识 + */ + @ECPDict(required = true, message = "groupId值不合法") + private Long groupId; + + /** + * 名称 + */ + @ECPDict(required = true,length = 60, message = "name值不合法") + private String name; + + /** + * 网关请求方式(P-POST,G-GET,U-PUT,D-DELETE,H-HEAD,O-OPTIONS,C-PATCH) + */ + @ECPDict(required = true,length = 10, message = "reqMethod值不合法") + private String reqMethod; + + /** + * 网关请求路径 + */ + @ECPDict(required = true,length = 80, message = "gwReqPath值不合法") + private String gwReqPath; + + /** + * 后端请求类型(F-跟随,P-POST,G-GET,U-PUT,D-DELETE,H-HEAD,O-OPTIONS,C-PATCH) + */ + @ECPDict(required = true,length = 1, message = "backendReqType值不合法") + private String backendReqType; + + /** + * 后端请求服务 + */ + @ECPDict(required = true,length = 80, message = "backendService值不合法") + private String backendService; + + /** + * 后端请求路径 + */ + @ECPDict(required = true,length = 80, message = "backendReqPath值不合法") + private String backendReqPath; + + /** + * 请求参数 + */ + @ECPDict(required = true,length = 2048, message = "reqParams值不合法") + private String reqParams; + + /** + * 响应参数 + */ + @ECPDict(required = true,length = 2048, message = "rspParams值不合法") + private String rspParams; + + /** + * 常量参数 + */ + @ECPDict(required = true,length = 256, message = "constParams值不合法") + private String constParams; + + /** + * 状态(1-有效,0-无效) + */ + @ECPDict(required = true,length = 1, message = "status值不合法") + private String status; + + /** + * 备注 + */ + @ECPDict(required = true,length = 80, message = "remark值不合法") + private String remark; + + + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfDeleteReqBO.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfDeleteReqBO.java new file mode 100644 index 00000000..3ff142db --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfDeleteReqBO.java @@ -0,0 +1,23 @@ +package com.murong.ecp.netpay.mbu.web.opn.model; +import java.math.BigDecimal; +import net.sf.oval.constraint.NotEmpty; +import net.sf.oval.constraint.Size; +import net.sf.oval.constraint.NotNull; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.bp.common.dict.ECPDict; +import com.yuangou.ecp.bp.comp.pubatc.common.YGAmt; +import lombok.Data; + + +/** +* Created by syxlw on 2018/4/28. +*/ +@Data +public class OpnInterfaceInfDeleteReqBO { + /** + * id + */ + @ECPDict(required = true, message = "ids值不合法") + private String ids; + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfListReqBO.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfListReqBO.java new file mode 100644 index 00000000..28b3fa5e --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfListReqBO.java @@ -0,0 +1,21 @@ +package com.murong.ecp.netpay.mbu.web.opn.model; +import java.math.BigDecimal; +import com.murong.ecp.netpay.mbu.web.common.utils.PageRequest; +import net.sf.oval.constraint.NotNull; +import net.sf.oval.constraint.Size; +import net.sf.oval.constraint.NotEmpty; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.bp.common.dict.ECPDict; +import com.yuangou.ecp.bp.comp.pubatc.common.YGAmt; +import lombok.Data; + +/** +* Created by syxlw on 2018/4/28. +*/ +@Data +public class OpnInterfaceInfListReqBO extends PageRequest { + /** + * search + */ + private String search; +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfQueryReqBO.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfQueryReqBO.java new file mode 100644 index 00000000..73a474c1 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfQueryReqBO.java @@ -0,0 +1,23 @@ +package com.murong.ecp.netpay.mbu.web.opn.model; +import net.sf.oval.constraint.NotNull; +import net.sf.oval.constraint.Size; +import net.sf.oval.constraint.NotEmpty; +import java.math.BigDecimal; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.bp.common.dict.ECPDict; +import com.yuangou.ecp.bp.comp.pubatc.common.YGAmt; +import lombok.Data; + +/** +* Created by syxlw on 2018/4/28. +*/ +@Data +public class OpnInterfaceInfQueryReqBO { + /** + * 标识 + */ + @ECPDict(required = true, message = "id值不合法") + private Long id; + + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfUpdateReqBO.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfUpdateReqBO.java new file mode 100644 index 00000000..93897335 --- /dev/null +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/opn/model/OpnInterfaceInfUpdateReqBO.java @@ -0,0 +1,101 @@ +package com.murong.ecp.netpay.mbu.web.opn.model; +import java.math.BigDecimal; +import net.sf.oval.constraint.NotNull; +import net.sf.oval.constraint.Size; +import net.sf.oval.constraint.NotEmpty; +import com.murong.ecp.netpay.mbu.web.common.utils.*; +import com.murong.ecp.bp.common.dict.ECPDict; +import com.yuangou.ecp.bp.comp.pubatc.common.YGAmt; +import lombok.Data; + + +/** +* Created by syxlw on 2018/4/28. +*/ +@Data +public class OpnInterfaceInfUpdateReqBO { + /** + * 标识 + */ + @ECPDict(required = true, message = "id值不合法") + private Long id; + + /** + * 网关标识 + */ + @ECPDict(required = true, message = "gatewayId值不合法") + private Long gatewayId; + + /** + * 组标识 + */ + @ECPDict(required = true, message = "groupId值不合法") + private Long groupId; + + /** + * 名称 + */ + @ECPDict(required = true,length = 60, message = "name值不合法") + private String name; + + /** + * 网关请求方式(P-POST,G-GET,U-PUT,D-DELETE,H-HEAD,O-OPTIONS,C-PATCH) + */ + @ECPDict(required = true,length = 10, message = "reqMethod值不合法") + private String reqMethod; + + /** + * 网关请求路径 + */ + @ECPDict(required = true,length = 80, message = "gwReqPath值不合法") + private String gwReqPath; + + /** + * 后端请求类型(F-跟随,P-POST,G-GET,U-PUT,D-DELETE,H-HEAD,O-OPTIONS,C-PATCH) + */ + @ECPDict(required = true,length = 1, message = "backendReqType值不合法") + private String backendReqType; + + /** + * 后端请求服务 + */ + @ECPDict(required = true,length = 80, message = "backendService值不合法") + private String backendService; + + /** + * 后端请求路径 + */ + @ECPDict(required = true,length = 80, message = "backendReqPath值不合法") + private String backendReqPath; + + /** + * 请求参数 + */ + @ECPDict(required = true,length = 2048, message = "reqParams值不合法") + private String reqParams; + + /** + * 响应参数 + */ + @ECPDict(required = true,length = 2048, message = "rspParams值不合法") + private String rspParams; + + /** + * 常量参数 + */ + @ECPDict(required = true,length = 256, message = "constParams值不合法") + private String constParams; + + /** + * 状态(1-有效,0-无效) + */ + @ECPDict(required = true,length = 1, message = "status值不合法") + private String status; + + /** + * 备注 + */ + @ECPDict(required = true,length = 80, message = "remark值不合法") + private String remark; + +} diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/pub/action/buipubbpc1/BuiDctDeleteAction.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/pub/action/buipubbpc1/BuiDctDeleteAction.java index f079a80b..d695660d 100644 --- a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/pub/action/buipubbpc1/BuiDctDeleteAction.java +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/pub/action/buipubbpc1/BuiDctDeleteAction.java @@ -6,6 +6,7 @@ import com.murong.ecp.netpay.mbu.web.common.utils.CommonMessageCode; import com.murong.ecp.netpay.mbu.web.common.utils.ResultT; import com.murong.ecp.netpay.mbu.web.common.utils.ValidatorUtil; import com.murong.ecp.netpay.mbu.web.pub.dal.dao.BuiDctMapper; +import com.murong.ecp.netpay.mbu.web.pub.dal.dao.BuiHlpMapper; import com.murong.ecp.netpay.mbu.web.pub.dal.entity.BuiDctDO; import com.murong.ecp.netpay.mbu.web.pub.model.BuiDctDeleteReqBO; import com.yuangou.ecp.bp.core.common.exception.YGException; @@ -14,6 +15,7 @@ import com.yuangou.ecp.bp.core.common.message.YGBizMessageContext; import com.yuangou.ecp.bp.core.common.yglog4j.Logger; import com.yuangou.ecp.bp.core.common.yglog4j.YGLogger; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang.StringUtils; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -28,6 +30,9 @@ public class BuiDctDeleteAction extends BaseAction { @Autowired private BuiDctMapper buiDctMapper; + @Autowired + private BuiHlpMapper buiHlpMapper; + /** * 删除记录 * @@ -43,6 +48,13 @@ public class BuiDctDeleteAction extends BaseAction { ValidatorUtil.validateObject(reqBO); + String ids = reqBO.getIds(); + String[] idList = StringUtils.split(ids, ","); + for( String id : idList) { + BuiDctDO buiDctDO = buiDctMapper.selectByPrimaryKey(Long.valueOf(id)); + buiHlpMapper.deleteByName(buiDctDO.getDctNm()); + } + int retCod = buiDctMapper.deleteByIds(reqBO.getIds()); ResultT resultT = new ResultT(); diff --git a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/pub/dal/dao/BuiDctMapper.java b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/pub/dal/dao/BuiDctMapper.java index deee6cb6..2749c33b 100644 --- a/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/pub/dal/dao/BuiDctMapper.java +++ b/ecp-mbu-web/src/main/java/com/murong/ecp/netpay/mbu/web/pub/dal/dao/BuiDctMapper.java @@ -35,4 +35,6 @@ public interface BuiDctMapper { int deleteByIds(String ids); + BuiDctDO selectByPrimaryKey(Long id); + } diff --git a/ecp-mbu-web/src/main/resources/app/mbu/etc/opn/mapper/OpnInterfaceGroupInfMapper.xml b/ecp-mbu-web/src/main/resources/app/mbu/etc/opn/mapper/OpnInterfaceGroupInfMapper.xml new file mode 100644 index 00000000..7d6af19c --- /dev/null +++ b/ecp-mbu-web/src/main/resources/app/mbu/etc/opn/mapper/OpnInterfaceGroupInfMapper.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + delete from T_OPN_INTERFACE_GROUP_INF where id = #{id} + + + + delete from T_OPN_INTERFACE_GROUP_INF where id in (${ids}) + + + + update T_OPN_INTERFACE_GROUP_INF + + id=#{id}, + gateway_id=#{gatewayId}, + name=#{name}, + status=#{status}, + remark=#{remark}, + + where id = #{id} + + + + update T_OPN_INTERFACE_GROUP_INF + + id=#{id}, + gateway_id=#{gatewayId}, + name=#{name}, + status=#{status}, + remark=#{remark}, + + where id = #{id} + + + + insert into T_OPN_INTERFACE_GROUP_INF(id, gateway_id, name, status, remark) + values( S_PUB_ID.nextval#{gatewayId}, #{name}, #{status}, #{remark}) + + + + insert into T_OPN_INTERFACE_GROUP_INF + + id , + gateway_id, + name, + status, + remark, + + + S_PUB_ID.nextval , + #{gatewayId}, + #{name}, + #{status}, + #{remark}, + + + + + id, gateway_id, name, status, remark + + + + + id=#{id}, + gateway_id=#{gatewayId}, + name=#{name}, + status=#{status}, + remark=#{remark}, + + + diff --git a/ecp-mbu-web/src/main/resources/app/mbu/etc/opn/mapper/OpnInterfaceInfMapper.xml b/ecp-mbu-web/src/main/resources/app/mbu/etc/opn/mapper/OpnInterfaceInfMapper.xml new file mode 100644 index 00000000..ed2821e1 --- /dev/null +++ b/ecp-mbu-web/src/main/resources/app/mbu/etc/opn/mapper/OpnInterfaceInfMapper.xml @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + delete from T_OPN_INTERFACE_INF where id = #{id} + + + + delete from T_OPN_INTERFACE_INF where id in (${ids}) + + + + update T_OPN_INTERFACE_INF + + id=#{id}, + gateway_id=#{gatewayId}, + group_id=#{groupId}, + name=#{name}, + req_method=#{reqMethod}, + gw_req_path=#{gwReqPath}, + backend_req_type=#{backendReqType}, + backend_service=#{backendService}, + backend_req_path=#{backendReqPath}, + req_params=#{reqParams}, + rsp_params=#{rspParams}, + const_params=#{constParams}, + status=#{status}, + remark=#{remark}, + + where id = #{id} + + + + update T_OPN_INTERFACE_INF + + id=#{id}, + gateway_id=#{gatewayId}, + group_id=#{groupId}, + name=#{name}, + req_method=#{reqMethod}, + gw_req_path=#{gwReqPath}, + backend_req_type=#{backendReqType}, + backend_service=#{backendService}, + backend_req_path=#{backendReqPath}, + req_params=#{reqParams}, + rsp_params=#{rspParams}, + const_params=#{constParams}, + status=#{status}, + remark=#{remark}, + + where id = #{id} + + + + insert into T_OPN_INTERFACE_INF(id, gateway_id, group_id, name, req_method, gw_req_path, backend_req_type, backend_service, backend_req_path, req_params, rsp_params, const_params, status, remark) + values( S_PUB_ID.nextval#{gatewayId}, #{groupId}, #{name}, #{reqMethod}, #{gwReqPath}, #{backendReqType}, #{backendService}, #{backendReqPath}, #{reqParams}, #{rspParams}, #{constParams}, #{status}, #{remark}) + + + + insert into T_OPN_INTERFACE_INF + + id , + gateway_id, + group_id, + name, + req_method, + gw_req_path, + backend_req_type, + backend_service, + backend_req_path, + req_params, + rsp_params, + const_params, + status, + remark, + + + S_PUB_ID.nextval , + #{gatewayId}, + #{groupId}, + #{name}, + #{reqMethod}, + #{gwReqPath}, + #{backendReqType}, + #{backendService}, + #{backendReqPath}, + #{reqParams}, + #{rspParams}, + #{constParams}, + #{status}, + #{remark}, + + + + + id, gateway_id, group_id, name, req_method, gw_req_path, backend_req_type, backend_service, backend_req_path, req_params, rsp_params, const_params, status, remark + + + + + id=#{id}, + gateway_id=#{gatewayId}, + group_id=#{groupId}, + name=#{name}, + req_method=#{reqMethod}, + gw_req_path=#{gwReqPath}, + backend_req_type=#{backendReqType}, + backend_service=#{backendService}, + backend_req_path=#{backendReqPath}, + req_params=#{reqParams}, + rsp_params=#{rspParams}, + const_params=#{constParams}, + status=#{status}, + remark=#{remark}, + + +