开放平台
This commit is contained in:
@@ -13,11 +13,13 @@ import cloneDeep from 'lodash/cloneDeep'
|
||||
import './utils/directives.js'
|
||||
import dict from './utils/dict'
|
||||
import { Scrollbar } from 'element-ui' // 滚动条
|
||||
import storage from './utils/storage' // 滚动条
|
||||
|
||||
Vue.use(Scrollbar)
|
||||
Vue.use(VueCookie)
|
||||
Vue.config.productionTip = false
|
||||
Vue.prototype.dict = dict
|
||||
Vue.prototype.storage = storage
|
||||
|
||||
// 非生产环境, 适配mockjs模拟数据 // api: https://github.com/nuysoft/Mock
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
|
||||
@@ -13,8 +13,8 @@ export default new Vuex.Store({
|
||||
},
|
||||
mutations: {
|
||||
// 重置vuex本地储存状态
|
||||
resetStore (state) {
|
||||
Object.keys(state).forEach((key) => {
|
||||
resetStore(state) {
|
||||
Object.keys(state).forEach(key => {
|
||||
state[key] = cloneDeep(window.SITE_CONFIG['storeState'][key])
|
||||
})
|
||||
}
|
||||
|
||||
@@ -32,21 +32,17 @@
|
||||
</el-menu>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<div v-if="activeIndex=='1'">
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<OpnInterfaceInf ref="opnInterfaceInf"></OpnInterfaceInf>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div>
|
||||
<OpnInterfaceInf v-if="activeIndex=='1'" ref="opnInterfaceInf"></OpnInterfaceInf>
|
||||
</div>
|
||||
<div v-if="activeIndex=='2'">
|
||||
<OpnBackendServerInf ref="opnBackendServerInf"></OpnBackendServerInf>
|
||||
<div>
|
||||
<OpnBackendServerInf v-if="activeIndex=='2'" ref="opnBackendServerInf"></OpnBackendServerInf>
|
||||
</div>
|
||||
<div v-if="activeIndex=='3'">
|
||||
<OpnStrategyMng ref="opnStrategyMng"></OpnStrategyMng>
|
||||
<div>
|
||||
<OpnStrategyMng v-if="activeIndex=='3'" ref="opnStrategyMng"></OpnStrategyMng>
|
||||
</div>
|
||||
<div v-if="activeIndex=='4'">
|
||||
<OpnStrategyIpInf ref="opnStrategyIpInf"></OpnStrategyIpInf>
|
||||
<div>
|
||||
<OpnStrategyIpInf v-if="activeIndex=='4'" ref="opnStrategyIpInf"></OpnStrategyIpInf>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -81,10 +77,20 @@
|
||||
activated() {
|
||||
this.getGatewayList()
|
||||
},
|
||||
computed: {
|
||||
gatewayId: {
|
||||
get() { return this.storage.get('openapi/gatewayId') },
|
||||
set(val) {
|
||||
console.log('gatewayId:' + val)
|
||||
this.storage.set('openapi/gatewayId', val)
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleSelect(key, keyPath) {
|
||||
let value = key[0]
|
||||
this.activeIndex = value
|
||||
this.gatewaySelectChange()
|
||||
},
|
||||
getGatewayList() {
|
||||
// 获取网关列表
|
||||
@@ -97,13 +103,24 @@
|
||||
if (isGDASucc(data)) {
|
||||
this.gatewayList = data.data
|
||||
this.dataForm.gateway_id = this.gatewayList[0]['id']
|
||||
this.$refs.opnInterfaceInf.refreshGatewayId(this.dataForm.gateway_id)
|
||||
this.gatewayId = this.dataForm.gateway_id
|
||||
this.gatewaySelectChange()
|
||||
}
|
||||
})
|
||||
},
|
||||
gatewaySelectChange(value) {
|
||||
this.$refs.opnInterfaceInf.refreshGatewayId(value)
|
||||
this.$refs.opnBackendServerInf.refreshGatewayId(value)
|
||||
gatewaySelectChange() {
|
||||
this.gatewayId = this.dataForm.gateway_id
|
||||
this.$nextTick(() => {
|
||||
if (this.activeIndex === '1') {
|
||||
this.$refs.opnInterfaceInf.refresh(this.dataForm.gateway_id)
|
||||
} else if (this.activeIndex === '2') {
|
||||
this.$refs.opnBackendServerInf.refresh(this.dataForm.gateway_id)
|
||||
} else if (this.activeIndex === '3') {
|
||||
this.$refs.opnStrategyMng.refresh(this.dataForm.gateway_id)
|
||||
} else if (this.activeIndex === '4') {
|
||||
this.$refs.opnStrategyIpInf.refresh(this.dataForm.gateway_id)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button v-if="true||isAuth('opn:opninterfaceinf:add')" type="primary" @click="interfaceGroupInfHandle()">管理</el-button>
|
||||
<el-button type="primary" size="mini" @click="getGroupList()">刷新</el-button>
|
||||
<el-button v-if="true||isAuth('opn:opninterfaceinf:add')" size="mini" type="primary" @click="interfaceGroupInfHandle()">管理</el-button>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row>
|
||||
@@ -78,7 +79,6 @@
|
||||
import InterfaceGroupInf from './opninterfacegroupinf'
|
||||
|
||||
import { isGDASucc } from '@/utils'
|
||||
import { debug } from 'util'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -107,13 +107,21 @@
|
||||
// this.getGroupList()
|
||||
},
|
||||
methods: {
|
||||
refresh(gatewayId) {
|
||||
this.dataForm.gateway_id = gatewayId
|
||||
this.getGroupList()
|
||||
},
|
||||
// 获取数据列表
|
||||
getDataList01() {
|
||||
this.pageIndex = 1
|
||||
this.$refs.pagination.lastEmittedPage = 1
|
||||
this.getDataList()
|
||||
},
|
||||
getGatewayId() {
|
||||
return this.storage.get('openapi/gatewayId')
|
||||
},
|
||||
getDataList() {
|
||||
this.dataForm.gateway_id = this.getGatewayId()
|
||||
this.dataListLoading = true
|
||||
this.$http({
|
||||
url: this.$http.adornUrl('/buiopnbpc1/opninterfaceinf/listByGatewayAndGroup.do'),
|
||||
@@ -146,6 +154,7 @@
|
||||
this.getDataList01()
|
||||
},
|
||||
getGroupList() {
|
||||
this.dataForm.gateway_id = this.getGatewayId()
|
||||
// 获取接口组
|
||||
this.$http({
|
||||
url: this.$http.adornUrl(`/buiopnbpc1/opninterfacegroupinf/listByGateway.do?gateway_id=${this.dataForm.gateway_id}`),
|
||||
@@ -164,10 +173,6 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
refreshGatewayId(gatewayId) {
|
||||
this.dataForm.gateway_id = gatewayId
|
||||
this.getGroupList()
|
||||
},
|
||||
// 每页数
|
||||
sizeChangeHandle(val) {
|
||||
this.pageSize = val
|
||||
|
||||
@@ -1,24 +1,6 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
:title="!dataForm.id ? '新增' : '修改'"
|
||||
:close-on-click-modal="false"
|
||||
:visible.sync="visible">
|
||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()"
|
||||
label-width="80px">
|
||||
<el-row type="flex" class="row-bg">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="网关标识" prop="gateway_id">
|
||||
<el-input :readonly="readonly" oninput="value=value.replace(/[^\d.]/g,'')" v-model="dataForm.gateway_id"
|
||||
placeholder="网关标识" style="width:170px"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="策略标识" prop="strategy_id">
|
||||
<el-input :readonly="readonly" oninput="value=value.replace(/[^\d.]/g,'')" v-model="dataForm.strategy_id"
|
||||
placeholder="策略标识" style="width:170px"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible">
|
||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
||||
<el-row type="flex" class="row-bg">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="名称" prop="name">
|
||||
@@ -31,13 +13,7 @@
|
||||
<el-input :readonly="readonly" v-model="dataForm.auth_type" placeholder="类型" style="width:170px"></el-input>
|
||||
-->
|
||||
<el-select placeholder="请选择" v-model="dataForm.auth_type" style="width:170px;">
|
||||
<el-option
|
||||
v-for="item in dict.get('flow_typ')"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
<el-option v-for="item in dict.get('openapi_auth_type')" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -45,8 +21,7 @@
|
||||
<el-row type="flex" class="row-bg">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="apikey" prop="api_key">
|
||||
<el-input :readonly="readonly" v-model="dataForm.api_key" placeholder="apikey"
|
||||
style="width:170px"></el-input>
|
||||
<el-input :readonly="readonly" v-model="dataForm.api_key" placeholder="apikey" style="width:170px"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@@ -64,13 +39,7 @@
|
||||
<el-col :span="12">
|
||||
<el-form-item label="状态" prop="status">
|
||||
<el-select placeholder="请选择" v-model="dataForm.status" style="width:170px;">
|
||||
<el-option
|
||||
v-for="item in dict.get('ip_status')"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
<el-option v-for="item in dict.get('ip_status')" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -91,7 +60,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {isGDASucc} from '@/utils'
|
||||
import { isGDASucc } from '@/utils'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -112,31 +81,31 @@
|
||||
},
|
||||
dataRule: {
|
||||
gateway_id: [
|
||||
{required: true, message: '网关标识不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '网关标识不能为空', trigger: 'blur' }
|
||||
],
|
||||
strategy_id: [
|
||||
{required: true, message: '策略标识不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '策略标识不能为空', trigger: 'blur' }
|
||||
],
|
||||
name: [
|
||||
{required: true, message: '名称不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '名称不能为空', trigger: 'blur' }
|
||||
],
|
||||
auth_type: [
|
||||
{required: true, message: '类型不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '类型不能为空', trigger: 'blur' }
|
||||
],
|
||||
api_key: [
|
||||
{required: true, message: 'apikey不能为空', trigger: 'blur'}
|
||||
{ required: true, message: 'apikey不能为空', trigger: 'blur' }
|
||||
],
|
||||
username: [
|
||||
{required: true, message: '用户名不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '用户名不能为空', trigger: 'blur' }
|
||||
],
|
||||
password: [
|
||||
{required: true, message: '密码不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '密码不能为空', trigger: 'blur' }
|
||||
],
|
||||
status: [
|
||||
{required: true, message: '状态(1-有效,0-无效)不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '状态(1-有效,0-无效)不能为空', trigger: 'blur' }
|
||||
],
|
||||
remark: [
|
||||
{required: true, message: '备注不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '备注不能为空', trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -152,7 +121,7 @@
|
||||
url: this.$http.adornUrl(`/buiopnbpc1/opnstrategyauthinf/query.do?id=${this.dataForm.id}`),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams()
|
||||
}).then(({data}) => {
|
||||
}).then(({ data }) => {
|
||||
if (isGDASucc(data)) {
|
||||
this.dataForm = data.data
|
||||
}
|
||||
@@ -179,7 +148,7 @@
|
||||
'status': this.dataForm.status,
|
||||
'remark': this.dataForm.remark
|
||||
})
|
||||
}).then(({data}) => {
|
||||
}).then(({ data }) => {
|
||||
if (isGDASucc(data)) {
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
|
||||
@@ -6,12 +6,14 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button @click="getDataList01()">查询</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyauthinf:query')" type="primary" @click="queryHandle()">查看</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyauthinf:add')" type="primary" @click="addOrUpdateHandle()">新增
|
||||
</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyauthinf:delete')" type="danger" @click="deleteHandle()"
|
||||
:disabled="dataListSelections.length <= 0">批量删除
|
||||
</el-button>
|
||||
<el-button v-if="true||isAuth('opn:opnstrategyauthinf:query')" type="primary" @click="queryHandle()">查看</el-button>
|
||||
<el-button v-if="true||isAuth('opn:opnstrategyauthinf:add')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
||||
<el-button
|
||||
v-if="isAuth('opn:opnstrategyauthinf:delete')"
|
||||
type="danger"
|
||||
@click="deleteHandle()"
|
||||
:disabled="dataListSelections.length <= 0"
|
||||
>批量删除</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
@@ -20,92 +22,23 @@
|
||||
v-loading="dataListLoading"
|
||||
@selection-change="selectionChangeHandle"
|
||||
style="width: 100%;"
|
||||
height="400">
|
||||
<el-table-column
|
||||
fixed
|
||||
type="selection"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="50">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="id"
|
||||
header-align="center"
|
||||
align="center"
|
||||
v-if="show"
|
||||
label="标识">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="gateway_id"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="网关标识">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="strategy_id"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="策略标识">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="名称">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="auth_type"
|
||||
header-align="center"
|
||||
align="center"
|
||||
column-key="flow_typ"
|
||||
:formatter="dict.formatter"
|
||||
label="类型">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="api_key"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="apikey">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="username"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="用户名">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="password"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="密码">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="status"
|
||||
header-align="center"
|
||||
align="center"
|
||||
column-key="ip_status"
|
||||
:formatter="dict.formatter"
|
||||
label="状态">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="remark"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="备注">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="150"
|
||||
label="操作">
|
||||
height="400"
|
||||
>
|
||||
<el-table-column fixed type="selection" header-align="center" align="center" width="50"></el-table-column>
|
||||
<el-table-column prop="id" header-align="center" align="center" label="标识"></el-table-column>
|
||||
<el-table-column prop="gateway_id" header-align="center" align="center" label="网关标识"></el-table-column>
|
||||
<el-table-column prop="strategy_id" header-align="center" align="center" label="策略标识"></el-table-column>
|
||||
<el-table-column prop="name" header-align="center" align="center" label="名称"></el-table-column>
|
||||
<el-table-column prop="auth_type" header-align="center" align="center" column-key="flow_typ" :formatter="dict.formatter" label="类型"></el-table-column>
|
||||
<el-table-column prop="api_key" header-align="center" align="center" label="apikey"></el-table-column>
|
||||
<el-table-column prop="username" header-align="center" align="center" label="用户名"></el-table-column>
|
||||
<el-table-column prop="password" header-align="center" align="center" label="密码"></el-table-column>
|
||||
<el-table-column prop="status" header-align="center" align="center" column-key="ip_status" :formatter="dict.formatter" label="状态"></el-table-column>
|
||||
<el-table-column prop="remark" header-align="center" align="center" label="备注"></el-table-column>
|
||||
<el-table-column fixed="right" header-align="center" align="center" width="150" label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="isAuth('opn:opnstrategyauthinf:update')" type="text" size="small"
|
||||
@click="addOrUpdateHandle(scope.row.id)">修改
|
||||
</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyauthinf:delete')" type="text" size="small"
|
||||
@click="deleteHandle(scope.row)">删除
|
||||
</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyauthinf:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyauthinf:delete')" type="text" size="small" @click="deleteHandle(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -117,8 +50,8 @@
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-size="pageSize"
|
||||
:total="totalPage"
|
||||
layout="total, sizes, prev, pager, next, jumper">
|
||||
</el-pagination>
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
></el-pagination>
|
||||
<!-- 弹窗, 新增 / 修改 -->
|
||||
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
||||
</div>
|
||||
@@ -126,7 +59,7 @@
|
||||
|
||||
<script>
|
||||
import AddOrUpdate from './opnstrategyauthinf-add-or-update'
|
||||
import {isGDASucc, getDictValue} from '@/utils'
|
||||
import { isGDASucc } from '@/utils'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -140,7 +73,7 @@
|
||||
totalPage: 0,
|
||||
dataListLoading: false,
|
||||
dataListSelections: [],
|
||||
addOrUpdateVisible: false,
|
||||
addOrUpdateVisible: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -150,6 +83,10 @@
|
||||
this.getDataList()
|
||||
},
|
||||
methods: {
|
||||
refresh(gatewayId, strategyId) {
|
||||
this.dataForm.gateway_id = gatewayId
|
||||
this.dataForm.strategy_id = strategyId
|
||||
},
|
||||
// 获取数据列表
|
||||
getDataList01() {
|
||||
this.pageIndex = 1
|
||||
@@ -159,15 +96,16 @@
|
||||
getDataList() {
|
||||
this.dataListLoading = true
|
||||
this.$http({
|
||||
url: this.$http.adornUrl('/buiopnbpc1/opnstrategyauthinf/list.do'),
|
||||
url: this.$http.adornUrl('/buiopnbpc1/opnstrategyauthinf/listByGatewayAndStrategy.do'),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams({
|
||||
'page_no': this.pageIndex,
|
||||
'page_size': this.pageSize,
|
||||
'tot_rec_num': this.totalPage,
|
||||
'search': this.dataForm.search
|
||||
'gateway_id': this.dataForm.gateway_id,
|
||||
'strategy_id': this.dataForm.strategy_id
|
||||
})
|
||||
}).then(({data}) => {
|
||||
}).then(({ data }) => {
|
||||
if (isGDASucc(data)) {
|
||||
if (data.data) {
|
||||
this.dataList = data.data
|
||||
@@ -235,7 +173,7 @@
|
||||
data: this.$http.adornData({
|
||||
'ids': ids.join(',')
|
||||
}, false)
|
||||
}).then(({data}) => {
|
||||
}).then(({ data }) => {
|
||||
if (isGDASucc(data)) {
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
|
||||
@@ -7,11 +7,13 @@
|
||||
<el-form-item>
|
||||
<el-button @click="getDataList01()">查询</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyflowinf:query')" type="primary" @click="queryHandle()">查看</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyflowinf:add')" type="primary" @click="addOrUpdateHandle()">新增
|
||||
</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyflowinf:delete')" type="danger" @click="deleteHandle()"
|
||||
:disabled="dataListSelections.length <= 0">批量删除
|
||||
</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyflowinf:add')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
||||
<el-button
|
||||
v-if="isAuth('opn:opnstrategyflowinf:delete')"
|
||||
type="danger"
|
||||
@click="deleteHandle()"
|
||||
:disabled="dataListSelections.length <= 0"
|
||||
>批量删除</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
@@ -20,136 +22,50 @@
|
||||
v-loading="dataListLoading"
|
||||
@selection-change="selectionChangeHandle"
|
||||
style="width: 100%;"
|
||||
height="400">
|
||||
<el-table-column
|
||||
fixed
|
||||
type="selection"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="50">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="id"
|
||||
header-align="center"
|
||||
align="center"
|
||||
v-if="show"
|
||||
label="标识">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="gateway_id"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="网关标识">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="strategy_id"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="策略标识">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="名称">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="type"
|
||||
header-align="center"
|
||||
align="center"
|
||||
column-key="flow_typ"
|
||||
:formatter="dict.formatter"
|
||||
label="访问类型">
|
||||
</el-table-column>
|
||||
height="400"
|
||||
>
|
||||
<el-table-column fixed type="selection" header-align="center" align="center" width="50"></el-table-column>
|
||||
<el-table-column prop="id" header-align="center" align="center" label="标识"></el-table-column>
|
||||
<el-table-column prop="gateway_id" header-align="center" align="center" label="网关标识"></el-table-column>
|
||||
<el-table-column prop="strategy_id" header-align="center" align="center" label="策略标识"></el-table-column>
|
||||
<el-table-column prop="name" header-align="center" align="center" label="名称"></el-table-column>
|
||||
<el-table-column prop="type" header-align="center" align="center" column-key="flow_typ" :formatter="dict.formatter" label="访问类型"></el-table-column>
|
||||
<el-table-column
|
||||
prop="unit_time_type"
|
||||
header-align="center"
|
||||
align="center"
|
||||
column-key="unit_time_type"
|
||||
:formatter="dict.formatter"
|
||||
label="单位时间类型">
|
||||
</el-table-column>
|
||||
label="单位时间类型"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
prop="unit_time"
|
||||
header-align="center"
|
||||
align="center"
|
||||
column-key="unit_time"
|
||||
:formatter="dict.formatter"
|
||||
label="单位时间">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="request_times"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="请求次数">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="priority"
|
||||
header-align="center"
|
||||
column-key="priority"
|
||||
:formatter="dict.formatter"
|
||||
align="center"
|
||||
label="优先级">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="begin_time"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="开始时间">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="end_time"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="结束时间">
|
||||
</el-table-column>
|
||||
label="单位时间"
|
||||
></el-table-column>
|
||||
<el-table-column prop="request_times" header-align="center" align="center" label="请求次数"></el-table-column>
|
||||
<el-table-column prop="priority" header-align="center" column-key="priority" :formatter="dict.formatter" align="center" label="优先级"></el-table-column>
|
||||
<el-table-column prop="begin_time" header-align="center" align="center" label="开始时间"></el-table-column>
|
||||
<el-table-column prop="end_time" header-align="center" align="center" label="结束时间"></el-table-column>
|
||||
<el-table-column
|
||||
prop="period_type"
|
||||
header-align="center"
|
||||
align="center"
|
||||
column-key="period_type"
|
||||
:formatter="dict.formatter"
|
||||
label="周期类型">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="begin_period"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="开始周期">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="end_period"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="结束周期">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="status"
|
||||
header-align="center"
|
||||
align="center"
|
||||
column-key="ip_status"
|
||||
:formatter="dict.formatter"
|
||||
label="状态">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="remark"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="备注">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="150"
|
||||
label="操作">
|
||||
label="周期类型"
|
||||
></el-table-column>
|
||||
<el-table-column prop="begin_period" header-align="center" align="center" label="开始周期"></el-table-column>
|
||||
<el-table-column prop="end_period" header-align="center" align="center" label="结束周期"></el-table-column>
|
||||
<el-table-column prop="status" header-align="center" align="center" column-key="ip_status" :formatter="dict.formatter" label="状态"></el-table-column>
|
||||
<el-table-column prop="remark" header-align="center" align="center" label="备注"></el-table-column>
|
||||
<el-table-column fixed="right" header-align="center" align="center" width="150" label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="isAuth('opn:opnstrategyflowinf:update')" type="text" size="small"
|
||||
@click="addOrUpdateHandle(scope.row.id)">修改
|
||||
</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyflowinf:delete')" type="text" size="small"
|
||||
@click="deleteHandle(scope.row)">删除
|
||||
</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyflowinf:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyflowinf:delete')" type="text" size="small" @click="deleteHandle(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -161,8 +77,8 @@
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-size="pageSize"
|
||||
:total="totalPage"
|
||||
layout="total, sizes, prev, pager, next, jumper">
|
||||
</el-pagination>
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
></el-pagination>
|
||||
<!-- 弹窗, 新增 / 修改 -->
|
||||
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
||||
</div>
|
||||
@@ -170,7 +86,7 @@
|
||||
|
||||
<script>
|
||||
import AddOrUpdate from './opnstrategyflowinf-add-or-update'
|
||||
import {isGDASucc, getDictValue} from '@/utils'
|
||||
import { isGDASucc, getDictValue } from '@/utils'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -184,7 +100,7 @@
|
||||
totalPage: 0,
|
||||
dataListLoading: false,
|
||||
dataListSelections: [],
|
||||
addOrUpdateVisible: false,
|
||||
addOrUpdateVisible: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -211,7 +127,7 @@
|
||||
'tot_rec_num': this.totalPage,
|
||||
'search': this.dataForm.search
|
||||
})
|
||||
}).then(({data}) => {
|
||||
}).then(({ data }) => {
|
||||
if (isGDASucc(data)) {
|
||||
if (data.data) {
|
||||
this.dataList = data.data
|
||||
@@ -279,7 +195,7 @@
|
||||
data: this.$http.adornData({
|
||||
'ids': ids.join(',')
|
||||
}, false)
|
||||
}).then(({data}) => {
|
||||
}).then(({ data }) => {
|
||||
if (isGDASucc(data)) {
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
|
||||
@@ -1,21 +1,8 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
:title="!dataForm.id ? '新增' : '修改'"
|
||||
:close-on-click-modal="false"
|
||||
:visible.sync="visible">
|
||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()"
|
||||
label-width="80px">
|
||||
<el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible" append-to-body width="500px">
|
||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
||||
<el-row type="flex" class="row-bg">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="网关标识" prop="gateway_id">
|
||||
<!--<el-input v-model.trim="dataForm.gateway_id" placeholder="网关标识" style="width:170px"></el-input>-->
|
||||
<el-input style="width:170px" oninput="value=value.replace(/[^\d.]/g,'')" v-model="dataForm.gateway_id"
|
||||
placeholder="网关标识"/>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-col>
|
||||
<el-form-item label="名称" prop="name">
|
||||
<el-input v-model="dataForm.name" placeholder="名称" style="width:170px"></el-input>
|
||||
</el-form-item>
|
||||
@@ -26,19 +13,15 @@
|
||||
<el-form-item label="状态" prop="status">
|
||||
<!--<el-input v-model="dataForm.status" placeholder="状态(1-有效,0-无效)" style="width:170px"></el-input>-->
|
||||
<el-select placeholder="请选择" v-model="dataForm.status" style="width:170px;">
|
||||
<el-option
|
||||
v-for="item in dict.get('status')"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
<el-option v-for="item in dict.get('status')" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
</el-row>
|
||||
<el-row type="flex" class="row-bg">
|
||||
<el-col>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="dataForm.remark" placeholder="备注" style="width:170px"></el-input>
|
||||
<el-input v-model="dataForm.remark" placeholder="备注" style="width:300px"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -51,7 +34,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {isGDASucc} from '@/utils'
|
||||
import { isGDASucc } from '@/utils'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -59,23 +42,23 @@
|
||||
visible: false,
|
||||
dataForm: {
|
||||
id: 0,
|
||||
gateway_id: ' ',
|
||||
name: ' ',
|
||||
status: ' ',
|
||||
remark: ' '
|
||||
gateway_id: '',
|
||||
name: '',
|
||||
status: '1',
|
||||
remark: ''
|
||||
},
|
||||
dataRule: {
|
||||
gateway_id: [
|
||||
{required: true, message: '网关标识不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '网关标识不能为空', trigger: 'blur' }
|
||||
],
|
||||
name: [
|
||||
{required: true, message: '名称不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '名称不能为空', trigger: 'blur' }
|
||||
],
|
||||
status: [
|
||||
{required: true, message: '状态(1-有效,0-无效)不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '状态(1-有效,0-无效)不能为空', trigger: 'blur' }
|
||||
],
|
||||
remark: [
|
||||
{required: true, message: '备注不能为空', trigger: 'blur'}
|
||||
{ required: true, message: '备注不能为空', trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -92,7 +75,7 @@
|
||||
url: this.$http.adornUrl(`/buiopnbpc1/opnstrategyinf/query.do?id=${this.dataForm.id}`),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams()
|
||||
}).then(({data}) => {
|
||||
}).then(({ data }) => {
|
||||
if (isGDASucc(data)) {
|
||||
this.dataForm = data.data
|
||||
}
|
||||
@@ -114,7 +97,7 @@
|
||||
'status': this.dataForm.status,
|
||||
'remark': this.dataForm.remark
|
||||
})
|
||||
}).then(({data}) => {
|
||||
}).then(({ data }) => {
|
||||
if (isGDASucc(data)) {
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
<script>
|
||||
import AddOrUpdate from './opnstrategyinf-add-or-update'
|
||||
import { isGDASucc, getDictValue } from '@/utils'
|
||||
import { isGDASucc } from '@/utils'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
||||
@@ -8,9 +8,12 @@
|
||||
<el-button @click="getDataList01()">查询</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyipinf:query')" type="primary" @click="queryHandle()">查看</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyipinf:add')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyipinf:delete')" type="danger" @click="deleteHandle()"
|
||||
:disabled="dataListSelections.length <= 0">批量删除
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="isAuth('opn:opnstrategyipinf:delete')"
|
||||
type="danger"
|
||||
@click="deleteHandle()"
|
||||
:disabled="dataListSelections.length <= 0"
|
||||
>批量删除</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
@@ -19,86 +22,22 @@
|
||||
v-loading="dataListLoading"
|
||||
@selection-change="selectionChangeHandle"
|
||||
style="width: 100%;"
|
||||
height="400">
|
||||
<el-table-column
|
||||
fixed
|
||||
type="selection"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="50">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="id"
|
||||
header-align="center"
|
||||
align="center"
|
||||
v-if="show"
|
||||
label="标识">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="gateway_id"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="网关标识">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="strategy_id"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="策略标识">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="名称">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="type"
|
||||
header-align="center"
|
||||
align="center"
|
||||
column-key="type"
|
||||
:formatter="dict.formatter"
|
||||
label="类型">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="black_ip"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="黑名单">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="white_ip"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="白名单">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="status"
|
||||
header-align="center"
|
||||
align="center"
|
||||
column-key="ip_status"
|
||||
:formatter="dict.formatter"
|
||||
label="状态">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="remark"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="备注">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="150"
|
||||
label="操作">
|
||||
height="400"
|
||||
>
|
||||
<el-table-column fixed type="selection" header-align="center" align="center" width="50"></el-table-column>
|
||||
<el-table-column prop="id" header-align="center" align="center" label="标识"></el-table-column>
|
||||
<el-table-column prop="gateway_id" header-align="center" align="center" label="网关标识"></el-table-column>
|
||||
<el-table-column prop="strategy_id" header-align="center" align="center" label="策略标识"></el-table-column>
|
||||
<el-table-column prop="name" header-align="center" align="center" label="名称"></el-table-column>
|
||||
<el-table-column prop="type" header-align="center" align="center" column-key="type" :formatter="dict.formatter" label="类型"></el-table-column>
|
||||
<el-table-column prop="black_ip" header-align="center" align="center" label="黑名单"></el-table-column>
|
||||
<el-table-column prop="white_ip" header-align="center" align="center" label="白名单"></el-table-column>
|
||||
<el-table-column prop="status" header-align="center" align="center" column-key="ip_status" :formatter="dict.formatter" label="状态"></el-table-column>
|
||||
<el-table-column prop="remark" header-align="center" align="center" label="备注"></el-table-column>
|
||||
<el-table-column fixed="right" header-align="center" align="center" width="150" label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="isAuth('opn:opnstrategyipinf:update')" type="text" size="small"
|
||||
@click="addOrUpdateHandle(scope.row.id)">修改
|
||||
</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyipinf:delete')" type="text" size="small"
|
||||
@click="deleteHandle(scope.row)">删除
|
||||
</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyipinf:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
|
||||
<el-button v-if="isAuth('opn:opnstrategyipinf:delete')" type="text" size="small" @click="deleteHandle(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -110,8 +49,8 @@
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:page-size="pageSize"
|
||||
:total="totalPage"
|
||||
layout="total, sizes, prev, pager, next, jumper">
|
||||
</el-pagination>
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
></el-pagination>
|
||||
<!-- 弹窗, 新增 / 修改 -->
|
||||
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
||||
</div>
|
||||
@@ -119,7 +58,7 @@
|
||||
|
||||
<script>
|
||||
import AddOrUpdate from './opnstrategyipinf-add-or-update'
|
||||
import {isGDASucc, getDictValue} from '@/utils'
|
||||
import { isGDASucc, getDictValue } from '@/utils'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -160,7 +99,7 @@
|
||||
'tot_rec_num': this.totalPage,
|
||||
'search': this.dataForm.search
|
||||
})
|
||||
}).then(({data}) => {
|
||||
}).then(({ data }) => {
|
||||
if (isGDASucc(data)) {
|
||||
if (data.data) {
|
||||
this.dataList = data.data
|
||||
@@ -228,7 +167,7 @@
|
||||
data: this.$http.adornData({
|
||||
'ids': ids.join(',')
|
||||
}, false)
|
||||
}).then(({data}) => {
|
||||
}).then(({ data }) => {
|
||||
if (isGDASucc(data)) {
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
|
||||
+63
@@ -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.BaseAction;
|
||||
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.opn.dal.dao.OpnStrategyInfMapper;
|
||||
import com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnStrategyInfDO;
|
||||
import com.murong.ecp.netpay.mbu.web.opn.model.OpnStrategyInfListByGatewayReqBO;
|
||||
import com.murong.ecp.netpay.mbu.web.opn.model.OpnStrategyInfQueryReqBO;
|
||||
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 lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 策略信息表管理服务
|
||||
* Created by xu_lw on 2019-08-29 15:24:35.
|
||||
*/
|
||||
@Service("opnstrategyinfListByGateway")
|
||||
@Slf4j
|
||||
public class OpnStrategyInfListByGatewayAction extends BaseAction {
|
||||
@Autowired
|
||||
private OpnStrategyInfMapper opnStrategyInfMapper;
|
||||
|
||||
/**
|
||||
* 查询单笔
|
||||
*
|
||||
* @param bizCtx 上下文
|
||||
* @param reqBO 请求对象
|
||||
* @return
|
||||
* @throws YGException
|
||||
*/
|
||||
public ResultT<List<OpnStrategyInfDO>> execute(YGBizMessageContext bizCtx, OpnStrategyInfListByGatewayReqBO reqBO) throws YGException {
|
||||
YGBizMessage bizMsg = bizCtx.getCurrentMsg();
|
||||
Logger msgLog = YGLogger.getLogger(bizMsg);
|
||||
msgLog.info("query, reqBO=" + JSONObject.toJSON(reqBO));
|
||||
|
||||
ValidatorUtil.validateObject(reqBO);
|
||||
OpnStrategyInfDO entity = new OpnStrategyInfDO();
|
||||
|
||||
List<OpnStrategyInfDO> list = opnStrategyInfMapper.selectByGateway(reqBO.getGatewayId());
|
||||
|
||||
ResultT resultT = new ResultT();
|
||||
if (entity != null) {
|
||||
resultT.setMsgCod(CommonMessageCode.SUCC);
|
||||
resultT.setData(list);
|
||||
} else {
|
||||
resultT.setMsgCod(CommonMessageCode.REC_NFND);
|
||||
}
|
||||
|
||||
return resultT;
|
||||
}
|
||||
|
||||
}
|
||||
+4
@@ -34,4 +34,8 @@ public interface OpnStrategyInfMapper {
|
||||
YGSqlCursor selectCursor(OpnStrategyInfDO entity);
|
||||
|
||||
void selectResultHandler(OpnStrategyInfDO entity, YGResultHandler resultHandler);
|
||||
|
||||
List<OpnStrategyInfDO> selectByGateway(Long gatewayUd);
|
||||
|
||||
|
||||
}
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.murong.ecp.netpay.mbu.web.opn.model;
|
||||
|
||||
import com.murong.ecp.bp.common.dict.ECPDict;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Created by syxlw on 2018/4/28.
|
||||
*/
|
||||
@Data
|
||||
public class OpnStrategyInfListByGatewayReqBO {
|
||||
/**
|
||||
* 标识
|
||||
*/
|
||||
@ECPDict(required = true, message = "gatewayId值不合法")
|
||||
private Long gatewayId;
|
||||
|
||||
|
||||
}
|
||||
@@ -98,4 +98,10 @@
|
||||
<if test="isNotNull(remark)">remark=#{remark},</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<select id="selectByGateway" resultType="com.murong.ecp.netpay.mbu.web.opn.dal.entity.OpnStrategyInfDO">
|
||||
select
|
||||
<include refid="base_column_list"/>
|
||||
from T_OPN_STRATEGY_INF where gateway_id=#{gatewayId} order by id
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
@@ -173,6 +173,8 @@
|
||||
txn_cod="opnstrategyinfQuery"/>
|
||||
<action path="/buiopnbpc1/opnstrategyinf/list" svr_nam="buiopnbpc1" check_session="true"
|
||||
txn_cod="opnstrategyinfList"/>
|
||||
<action path="/buiopnbpc1/opnstrategyinf/listByGateway" svr_nam="buiopnbpc1" check_session="true"
|
||||
txn_cod="opnstrategyinfListByGateway"/>
|
||||
|
||||
<action path="/buiopnbpc1/opnstrategyipinf/add" svr_nam="buiopnbpc1" check_session="true"
|
||||
txn_cod="opnstrategyipinfAdd"/>
|
||||
@@ -207,6 +209,8 @@
|
||||
txn_cod="opnstrategyauthinfQuery"/>
|
||||
<action path="/buiopnbpc1/opnstrategyauthinf/list" svr_nam="buiopnbpc1" check_session="true"
|
||||
txn_cod="opnstrategyauthinfList"/>
|
||||
<action path="/buiopnbpc1/opnstrategyauthinf/listByGatewayAndStrategy" svr_nam="buiopnbpc1" check_session="true"
|
||||
txn_cod="opnstrategyauthinflistByGatewayAndStrategy"/>
|
||||
|
||||
<action path="/buiopnbpc1/opninterfacegroupinf/add" svr_nam="buiopnbpc1" check_session="true"
|
||||
txn_cod="opninterfacegroupinfAdd"/>
|
||||
|
||||
Reference in New Issue
Block a user