Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EL-ADMIN
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JiangSN
EL-ADMIN
Commits
7704443a
Commit
7704443a
authored
Oct 12, 2021
by
井熙铎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初步加文件,加页面
parent
27e189a3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
3543 additions
and
0 deletions
+3543
-0
CRUD.operation.vue
eladmin-web/src/views/polling/jczlcx/Crud/CRUD.operation.vue
+204
-0
Pagination.vue
eladmin-web/src/views/polling/jczlcx/Crud/Pagination.vue
+18
-0
RR.operation.vue
eladmin-web/src/views/polling/jczlcx/Crud/RR.operation.vue
+20
-0
UD.operation.vue
eladmin-web/src/views/polling/jczlcx/Crud/UD.operation.vue
+74
-0
crud.js
eladmin-web/src/views/polling/jczlcx/Crud/crud.js
+863
-0
index.vue
eladmin-web/src/views/polling/jczlcx/index.vue
+228
-0
CRUD.operation.vue
eladmin-web/src/views/polling/lxjcjy/Crud/CRUD.operation.vue
+204
-0
Pagination.vue
eladmin-web/src/views/polling/lxjcjy/Crud/Pagination.vue
+18
-0
RR.operation.vue
eladmin-web/src/views/polling/lxjcjy/Crud/RR.operation.vue
+20
-0
UD.operation.vue
eladmin-web/src/views/polling/lxjcjy/Crud/UD.operation.vue
+74
-0
crud.js
eladmin-web/src/views/polling/lxjcjy/Crud/crud.js
+863
-0
index.vue
eladmin-web/src/views/polling/lxjcjy/index.vue
+228
-0
JczlcxController.java
...rc/main/java/me/zhengjie/controller/JczlcxController.java
+86
-0
LxjcjyController.java
...rc/main/java/me/zhengjie/controller/LxjcjyController.java
+86
-0
JczlcxDeploy.java
...erface/src/main/java/me/zhengjie/domain/JczlcxDeploy.java
+119
-0
LxjcjyDeploy.java
...erface/src/main/java/me/zhengjie/domain/LxjcjyDeploy.java
+51
-0
JczlcxMapper.java
...erface/src/main/java/me/zhengjie/mapper/JczlcxMapper.java
+14
-0
LxjcjyMapper.java
...erface/src/main/java/me/zhengjie/mapper/LxjcjyMapper.java
+14
-0
JczlcxDeployRepository.java
...n/java/me/zhengjie/repository/JczlcxDeployRepository.java
+29
-0
LxjcjyDeployRepository.java
...n/java/me/zhengjie/repository/LxjcjyDeployRepository.java
+29
-0
JczlcxService.java
...face/src/main/java/me/zhengjie/service/JczlcxService.java
+16
-0
LxjcjyService.java
...face/src/main/java/me/zhengjie/service/LxjcjyService.java
+16
-0
JczlcxDeployDto.java
...rc/main/java/me/zhengjie/service/dto/JczlcxDeployDto.java
+106
-0
JczlcxDeployQueryCriteria.java
...va/me/zhengjie/service/dto/JczlcxDeployQueryCriteria.java
+28
-0
LxjcjyDeployDto.java
...rc/main/java/me/zhengjie/service/dto/LxjcjyDeployDto.java
+35
-0
LxjcjyDeployQueryCriteria.java
...va/me/zhengjie/service/dto/LxjcjyDeployQueryCriteria.java
+27
-0
JczlcxServiceImpl.java
.../main/java/me/zhengjie/serviceimpl/JczlcxServiceImpl.java
+39
-0
LxjcjyServiceImpl.java
.../main/java/me/zhengjie/serviceimpl/LxjcjyServiceImpl.java
+34
-0
No files found.
eladmin-web/src/views/polling/jczlcx/Crud/CRUD.operation.vue
0 → 100644
View file @
7704443a
<
template
>
<div
class=
"crud-opts"
>
<el-button-group
class=
"crud-opts-right"
>
<el-button
size=
"mini"
plain
type=
"info"
icon=
"el-icon-search"
@
click=
"toggleSearch()"
/>
<el-button
size=
"mini"
icon=
"el-icon-refresh"
@
click=
"crud.refresh()"
/>
<el-popover
placement=
"bottom-end"
width=
"150"
trigger=
"click"
>
<el-button
slot=
"reference"
size=
"mini"
icon=
"el-icon-s-grid"
>
<i
class=
"fa fa-caret-down"
aria-hidden=
"true"
/>
</el-button>
<el-checkbox
v-model=
"allColumnsSelected"
:indeterminate=
"allColumnsSelectedIndeterminate"
@
change=
"handleCheckAllChange"
>
全选
</el-checkbox>
<el-checkbox
v-for=
"item in tableColumns"
:key=
"item.property"
v-model=
"item.visible"
@
change=
"handleCheckedTableColumnsChange(item)"
>
{{
item
.
label
}}
</el-checkbox>
</el-popover>
</el-button-group>
</div>
</
template
>
<
script
>
import
CRUD
,
{
crud
}
from
'@crud/crud'
function
sortWithRef
(
src
,
ref
)
{
const
result
=
Object
.
assign
([],
ref
)
let
cursor
=
-
1
src
.
forEach
(
e
=>
{
const
idx
=
result
.
indexOf
(
e
)
if
(
idx
===
-
1
)
{
cursor
+=
1
result
.
splice
(
cursor
,
0
,
e
)
}
else
{
cursor
=
idx
}
})
return
result
}
export
default
{
mixins
:
[
crud
()],
props
:
{
permission
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
},
hiddenColumns
:
{
type
:
Array
,
default
:
()
=>
{
return
[]
}
},
ignoreColumns
:
{
type
:
Array
,
default
:
()
=>
{
return
[]
}
}
},
data
()
{
return
{
tableColumns
:
[],
allColumnsSelected
:
true
,
allColumnsSelectedIndeterminate
:
false
,
tableUnwatcher
:
null
,
// 忽略下次表格列变动
ignoreNextTableColumnsChange
:
false
}
},
watch
:
{
'crud.props.table'
()
{
this
.
updateTableColumns
()
this
.
tableColumns
.
forEach
(
column
=>
{
if
(
this
.
hiddenColumns
.
indexOf
(
column
.
property
)
!==
-
1
)
{
column
.
visible
=
false
this
.
updateColumnVisible
(
column
)
}
})
},
'crud.props.table.store.states.columns'
()
{
this
.
updateTableColumns
()
}
},
created
()
{
this
.
crud
.
updateProp
(
'searchToggle'
,
true
)
},
methods
:
{
updateTableColumns
()
{
const
table
=
this
.
crud
.
getTable
()
if
(
!
table
)
{
this
.
tableColumns
=
[]
return
}
let
cols
=
null
const
columnFilter
=
e
=>
e
&&
e
.
type
===
'default'
&&
e
.
property
&&
this
.
ignoreColumns
.
indexOf
(
e
.
property
)
===
-
1
const
refCols
=
table
.
columns
.
filter
(
columnFilter
)
if
(
this
.
ignoreNextTableColumnsChange
)
{
this
.
ignoreNextTableColumnsChange
=
false
return
}
this
.
ignoreNextTableColumnsChange
=
false
const
columns
=
[]
const
fullTableColumns
=
table
.
$children
.
map
(
e
=>
e
.
columnConfig
).
filter
(
columnFilter
)
cols
=
sortWithRef
(
fullTableColumns
,
refCols
)
cols
.
forEach
(
config
=>
{
const
column
=
{
property
:
config
.
property
,
label
:
config
.
label
,
visible
:
refCols
.
indexOf
(
config
)
!==
-
1
}
columns
.
push
(
column
)
})
this
.
tableColumns
=
columns
},
handleCheckAllChange
(
val
)
{
if
(
val
===
false
)
{
this
.
allColumnsSelected
=
true
return
}
this
.
tableColumns
.
forEach
(
column
=>
{
if
(
!
column
.
visible
)
{
column
.
visible
=
true
this
.
updateColumnVisible
(
column
)
}
})
this
.
allColumnsSelected
=
val
this
.
allColumnsSelectedIndeterminate
=
false
},
handleCheckedTableColumnsChange
(
item
)
{
let
totalCount
=
0
let
selectedCount
=
0
this
.
tableColumns
.
forEach
(
column
=>
{
++
totalCount
selectedCount
+=
column
.
visible
?
1
:
0
})
if
(
selectedCount
===
0
)
{
this
.
crud
.
notify
(
'请至少选择一列'
,
CRUD
.
NOTIFICATION_TYPE
.
WARNING
)
this
.
$nextTick
(
function
()
{
item
.
visible
=
true
})
return
}
this
.
allColumnsSelected
=
selectedCount
===
totalCount
this
.
allColumnsSelectedIndeterminate
=
selectedCount
!==
totalCount
&&
selectedCount
!==
0
this
.
updateColumnVisible
(
item
)
},
updateColumnVisible
(
item
)
{
const
table
=
this
.
crud
.
props
.
table
const
vm
=
table
.
$children
.
find
(
e
=>
e
.
prop
===
item
.
property
)
const
columnConfig
=
vm
.
columnConfig
if
(
item
.
visible
)
{
// 找出合适的插入点
const
columnIndex
=
this
.
tableColumns
.
indexOf
(
item
)
vm
.
owner
.
store
.
commit
(
'insertColumn'
,
columnConfig
,
columnIndex
+
1
,
null
)
}
else
{
vm
.
owner
.
store
.
commit
(
'removeColumn'
,
columnConfig
,
null
)
}
this
.
ignoreNextTableColumnsChange
=
true
},
toggleSearch
()
{
this
.
crud
.
props
.
searchToggle
=
!
this
.
crud
.
props
.
searchToggle
}
}
}
</
script
>
<
style
>
.crud-opts
{
padding
:
4px
0
;
display
:
-webkit-flex
;
display
:
flex
;
align-items
:
center
;
}
.crud-opts
.crud-opts-right
{
margin-left
:
auto
;
}
.crud-opts
.crud-opts-right
span
{
float
:
left
;
}
</
style
>
eladmin-web/src/views/polling/jczlcx/Crud/Pagination.vue
0 → 100644
View file @
7704443a
<!--分页-->
<
template
>
<el-pagination
:page-size
.
sync=
"page.size"
:total=
"page.total"
:current-page
.
sync=
"page.page"
style=
"margin-top: 8px;"
layout=
"total, prev, pager, next, sizes"
@
size-change=
"crud.sizeChangeHandler($event)"
@
current-change=
"crud.pageChangeHandler"
/>
</
template
>
<
script
>
import
{
pagination
}
from
'@crud/crud'
export
default
{
mixins
:
[
pagination
()]
}
</
script
>
eladmin-web/src/views/polling/jczlcx/Crud/RR.operation.vue
0 → 100644
View file @
7704443a
<!--搜索与重置-->
<
template
>
<span>
<el-button
class=
"filter-item"
size=
"mini"
type=
"success"
icon=
"el-icon-search"
@
click=
"crud.toQuery"
>
搜索
</el-button>
<el-button
v-if=
"crud.optShow.reset"
class=
"filter-item"
size=
"mini"
type=
"warning"
icon=
"el-icon-refresh-left"
@
click=
"crud.resetQuery()"
>
重置
</el-button>
</span>
</
template
>
<
script
>
import
{
crud
}
from
'@crud/crud'
export
default
{
mixins
:
[
crud
()],
props
:
{
itemClass
:
{
type
:
String
,
required
:
false
,
default
:
''
}
}
}
</
script
>
eladmin-web/src/views/polling/jczlcx/Crud/UD.operation.vue
0 → 100644
View file @
7704443a
<
template
>
<div>
<el-button
v-permission=
"permission.edit"
:loading=
"crud.status.cu === 2"
:disabled=
"disabledEdit"
size=
"mini"
type=
"primary"
icon=
"el-icon-chat-line-square"
@
click=
"crud.toEdit(data)"
>
查看详情
</el-button>
<el-popover
v-model=
"pop"
v-permission=
"permission.del"
placement=
"top"
width=
"180"
trigger=
"manual"
@
show=
"onPopoverShow"
@
hide=
"onPopoverHide"
>
<p>
{{
msg
}}
</p>
<div
style=
"text-align: right; margin: 0"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"doCancel"
>
取消
</el-button>
<el-button
:loading=
"crud.dataStatus[crud.getDataId(data)].delete === 2"
type=
"primary"
size=
"mini"
@
click=
"crud.doDelete(data)"
>
确定
</el-button>
</div>
<!-- 删除按钮,此页面只需要查询,所以注释-->
<!--
<el-button
slot=
"reference"
:disabled=
"disabledDle"
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"toDelete"
/>
-->
</el-popover>
</div>
</
template
>
<
script
>
import
CRUD
,
{
crud
}
from
'@crud/crud'
export
default
{
mixins
:
[
crud
()],
props
:
{
data
:
{
type
:
Object
,
required
:
true
},
permission
:
{
type
:
Object
,
required
:
true
},
disabledEdit
:
{
type
:
Boolean
,
default
:
false
},
disabledDle
:
{
type
:
Boolean
,
default
:
false
},
msg
:
{
type
:
String
,
default
:
'确定删除本条数据吗?'
}
},
data
()
{
return
{
pop
:
false
}
},
methods
:
{
doCancel
()
{
this
.
pop
=
false
this
.
crud
.
cancelDelete
(
this
.
data
)
},
toDelete
()
{
this
.
pop
=
true
},
[
CRUD
.
HOOK
.
afterDelete
](
crud
,
data
)
{
if
(
data
===
this
.
data
)
{
this
.
pop
=
false
}
},
onPopoverShow
()
{
setTimeout
(()
=>
{
document
.
addEventListener
(
'click'
,
this
.
handleDocumentClick
)
},
0
)
},
onPopoverHide
()
{
document
.
removeEventListener
(
'click'
,
this
.
handleDocumentClick
)
},
handleDocumentClick
(
event
)
{
this
.
pop
=
false
}
}
}
</
script
>
eladmin-web/src/views/polling/jczlcx/Crud/crud.js
0 → 100644
View file @
7704443a
This diff is collapsed.
Click to expand it.
eladmin-web/src/views/polling/jczlcx/index.vue
0 → 100644
View file @
7704443a
<
template
>
<div
class=
"app-container"
>
<!--工具栏-->
<div
class=
"head-container"
>
<div
v-if=
"crud.props.searchToggle"
>
<!-- 搜索 -->
<el-input
v-model=
"query.qqjk"
clearable
placeholder=
"请求接口名称"
style=
"width: 200px"
class=
"filter-item"
@
keyup
.
enter
.
native=
"crud.toQuery"
/>
<date-range-picker
v-model=
"query.createTime"
class=
"date-item"
/>
<rrOperation
/>
</div>
<crudOperation
:permission=
"permission"
/>
</div>
<!--表单组件-->
<el-dialog
append-to-body
:close-on-click-modal=
"false"
:before-close=
"crud.cancelCU"
:visible
.
sync=
"crud.status.cu > 0"
:title=
"crud.status.title"
width=
"100%"
hight=
"100%"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"130px"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"请求接口"
prop=
"qqjk"
>
<el-input
v-model=
"form.qqjk"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple-light"
>
<el-form-item
label=
"请求时间"
prop=
"qqsj"
>
<el-input
v-model=
"form.qqsj"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"请求内容"
prop=
"qqnr"
>
<el-input
v-model=
"form.qqnr"
type=
"textarea"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"响应时间"
prop=
"xysj"
>
<el-input
v-model
.
number=
"form.xysj"
style=
"width: 370px;"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"响应状态"
prop=
"xyzt"
>
<el-input
v-model
.
number=
"form.xyzt"
style=
"width: 370px;"
:disabled=
"true"
/>
</el-form-item>
<div
class=
"grid-content bg-purple-light"
/>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
/>
<el-form-item
label=
"响应内容"
prop=
"xynr"
>
<el-input
v-model=
"form.xynr"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</el-col>
</el-row>
<el-divider
content-position=
"left"
>
返回参数
</el-divider>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"单位名称"
prop=
"entName"
>
<el-input
v-model=
"form.entName"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple-light"
>
<el-form-item
label=
"单位地址"
prop=
"xynr"
>
<el-input
v-model=
"form.dom"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"法人代表姓名"
prop=
"name"
>
<el-input
v-model=
"form.name"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"统一社会信用代码"
prop=
"uniscid"
>
<el-input
v-model=
"form.uniscid"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple-light"
>
<el-form-item
label=
"成立日期"
prop=
"estDate"
>
<el-input
v-model=
"form.estDate"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"注册资本"
prop=
"name"
>
<el-input
v-model=
"form.regCap"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"经营(驻在)期限自"
prop=
"opFrom"
>
<el-input
v-model=
"form.opFrom"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple-light"
>
<el-form-item
label=
"经营(驻在)期限至"
prop=
"opto"
>
<el-input
v-model=
"form.opto"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"登记机关"
prop=
"regOrgCn"
>
<el-input
v-model=
"form.regOrgCn"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"登记登记状态"
prop=
"regStateCn"
>
<el-input
v-model=
"form.regStateCn"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"企业经营范围"
prop=
"opScope"
>
<el-input
v-model=
"form.opScope"
type=
"textarea"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center"
>
<el-button
type=
"primary"
size=
"medium"
@
click=
"crud.cancelCU"
>
确认
</el-button>
</div>
</el-dialog>
<!--表格渲染-->
<el-table
ref=
"table"
v-loading=
"crud.loading"
:data=
"crud.data"
style=
"width: 100%"
@
selection-change=
"crud.selectionChangeHandler"
>
<el-table-column
v-if=
"checkPer(['admin','serverDeploy:edit'])"
label=
"操作"
width=
"150px"
align=
"center"
>
<template
slot-scope=
"scope"
>
<udOperation
:data=
"scope.row"
:permission=
"permission"
/>
</
template
>
</el-table-column>
<!-- <el-table-column type="selection" width="55" />-->
<el-table-column
prop=
"qqjk"
label=
"请求接口"
/>
<el-table-column
prop=
"qqsj"
label=
"请求时间"
/>
<el-table-column
prop=
"xysj"
label=
"响应时间"
/>
<el-table-column
prop=
"xyzt"
label=
"响应状态"
/>
<el-table-column
prop=
"xynr"
label=
"响应内容"
/>
</el-table>
<!--分页组件-->
<pagination
/>
</div>
</template>
<
script
>
import
{
testServerConnect
}
from
'@/api/mnt/connect'
import
CRUD
,
{
presenter
,
header
,
form
,
crud
}
from
'./Crud/crud'
import
rrOperation
from
'./Crud/RR.operation'
import
udOperation
from
'./Crud/UD.operation'
import
pagination
from
'./Crud/Pagination'
import
DateRangePicker
from
'@/components/DateRangePicker'
import
crudOperation
from
'./Crud/CRUD.operation'
const
defaultForm
=
{
id
:
null
,
name
:
null
,
ip
:
null
,
port
:
22
,
account
:
'root'
,
password
:
null
}
export
default
{
name
:
'Jczlcx'
,
components
:
{
pagination
,
rrOperation
,
udOperation
,
DateRangePicker
,
crudOperation
},
cruds
()
{
return
CRUD
({
title
:
'缴存总览详情'
,
url
:
'api/JczlcxController'
,
crudMethod
:
{}})
},
mixins
:
[
presenter
(),
header
(),
form
(
defaultForm
),
crud
()],
data
()
{
return
{
// currView: 'index',
accountList
:
[],
accountMap
:
{},
loading
:
false
,
permission
:
{},
// 规则验证
rules
:
{
Demo
:
[
{
required
:
true
,
message
:
'请输入Demo'
,
trigger
:
'blur'
}
]
}
}
},
methods
:
{
testConnectServer
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
loading
=
true
testServerConnect
(
this
.
form
).
then
((
res
)
=>
{
this
.
loading
=
false
this
.
$notify
({
title
:
res
?
'连接成功'
:
'连接失败'
,
type
:
res
?
'success'
:
'error'
,
duration
:
2500
})
}).
catch
(()
=>
{
this
.
loading
=
false
})
}
})
}
}
}
</
script
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
::v-deep
.el-input-number
.el-input__inner
{
text-align
:
left
;
}
</
style
>
eladmin-web/src/views/polling/lxjcjy/Crud/CRUD.operation.vue
0 → 100644
View file @
7704443a
<
template
>
<div
class=
"crud-opts"
>
<el-button-group
class=
"crud-opts-right"
>
<el-button
size=
"mini"
plain
type=
"info"
icon=
"el-icon-search"
@
click=
"toggleSearch()"
/>
<el-button
size=
"mini"
icon=
"el-icon-refresh"
@
click=
"crud.refresh()"
/>
<el-popover
placement=
"bottom-end"
width=
"150"
trigger=
"click"
>
<el-button
slot=
"reference"
size=
"mini"
icon=
"el-icon-s-grid"
>
<i
class=
"fa fa-caret-down"
aria-hidden=
"true"
/>
</el-button>
<el-checkbox
v-model=
"allColumnsSelected"
:indeterminate=
"allColumnsSelectedIndeterminate"
@
change=
"handleCheckAllChange"
>
全选
</el-checkbox>
<el-checkbox
v-for=
"item in tableColumns"
:key=
"item.property"
v-model=
"item.visible"
@
change=
"handleCheckedTableColumnsChange(item)"
>
{{
item
.
label
}}
</el-checkbox>
</el-popover>
</el-button-group>
</div>
</
template
>
<
script
>
import
CRUD
,
{
crud
}
from
'@crud/crud'
function
sortWithRef
(
src
,
ref
)
{
const
result
=
Object
.
assign
([],
ref
)
let
cursor
=
-
1
src
.
forEach
(
e
=>
{
const
idx
=
result
.
indexOf
(
e
)
if
(
idx
===
-
1
)
{
cursor
+=
1
result
.
splice
(
cursor
,
0
,
e
)
}
else
{
cursor
=
idx
}
})
return
result
}
export
default
{
mixins
:
[
crud
()],
props
:
{
permission
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
},
hiddenColumns
:
{
type
:
Array
,
default
:
()
=>
{
return
[]
}
},
ignoreColumns
:
{
type
:
Array
,
default
:
()
=>
{
return
[]
}
}
},
data
()
{
return
{
tableColumns
:
[],
allColumnsSelected
:
true
,
allColumnsSelectedIndeterminate
:
false
,
tableUnwatcher
:
null
,
// 忽略下次表格列变动
ignoreNextTableColumnsChange
:
false
}
},
watch
:
{
'crud.props.table'
()
{
this
.
updateTableColumns
()
this
.
tableColumns
.
forEach
(
column
=>
{
if
(
this
.
hiddenColumns
.
indexOf
(
column
.
property
)
!==
-
1
)
{
column
.
visible
=
false
this
.
updateColumnVisible
(
column
)
}
})
},
'crud.props.table.store.states.columns'
()
{
this
.
updateTableColumns
()
}
},
created
()
{
this
.
crud
.
updateProp
(
'searchToggle'
,
true
)
},
methods
:
{
updateTableColumns
()
{
const
table
=
this
.
crud
.
getTable
()
if
(
!
table
)
{
this
.
tableColumns
=
[]
return
}
let
cols
=
null
const
columnFilter
=
e
=>
e
&&
e
.
type
===
'default'
&&
e
.
property
&&
this
.
ignoreColumns
.
indexOf
(
e
.
property
)
===
-
1
const
refCols
=
table
.
columns
.
filter
(
columnFilter
)
if
(
this
.
ignoreNextTableColumnsChange
)
{
this
.
ignoreNextTableColumnsChange
=
false
return
}
this
.
ignoreNextTableColumnsChange
=
false
const
columns
=
[]
const
fullTableColumns
=
table
.
$children
.
map
(
e
=>
e
.
columnConfig
).
filter
(
columnFilter
)
cols
=
sortWithRef
(
fullTableColumns
,
refCols
)
cols
.
forEach
(
config
=>
{
const
column
=
{
property
:
config
.
property
,
label
:
config
.
label
,
visible
:
refCols
.
indexOf
(
config
)
!==
-
1
}
columns
.
push
(
column
)
})
this
.
tableColumns
=
columns
},
handleCheckAllChange
(
val
)
{
if
(
val
===
false
)
{
this
.
allColumnsSelected
=
true
return
}
this
.
tableColumns
.
forEach
(
column
=>
{
if
(
!
column
.
visible
)
{
column
.
visible
=
true
this
.
updateColumnVisible
(
column
)
}
})
this
.
allColumnsSelected
=
val
this
.
allColumnsSelectedIndeterminate
=
false
},
handleCheckedTableColumnsChange
(
item
)
{
let
totalCount
=
0
let
selectedCount
=
0
this
.
tableColumns
.
forEach
(
column
=>
{
++
totalCount
selectedCount
+=
column
.
visible
?
1
:
0
})
if
(
selectedCount
===
0
)
{
this
.
crud
.
notify
(
'请至少选择一列'
,
CRUD
.
NOTIFICATION_TYPE
.
WARNING
)
this
.
$nextTick
(
function
()
{
item
.
visible
=
true
})
return
}
this
.
allColumnsSelected
=
selectedCount
===
totalCount
this
.
allColumnsSelectedIndeterminate
=
selectedCount
!==
totalCount
&&
selectedCount
!==
0
this
.
updateColumnVisible
(
item
)
},
updateColumnVisible
(
item
)
{
const
table
=
this
.
crud
.
props
.
table
const
vm
=
table
.
$children
.
find
(
e
=>
e
.
prop
===
item
.
property
)
const
columnConfig
=
vm
.
columnConfig
if
(
item
.
visible
)
{
// 找出合适的插入点
const
columnIndex
=
this
.
tableColumns
.
indexOf
(
item
)
vm
.
owner
.
store
.
commit
(
'insertColumn'
,
columnConfig
,
columnIndex
+
1
,
null
)
}
else
{
vm
.
owner
.
store
.
commit
(
'removeColumn'
,
columnConfig
,
null
)
}
this
.
ignoreNextTableColumnsChange
=
true
},
toggleSearch
()
{
this
.
crud
.
props
.
searchToggle
=
!
this
.
crud
.
props
.
searchToggle
}
}
}
</
script
>
<
style
>
.crud-opts
{
padding
:
4px
0
;
display
:
-webkit-flex
;
display
:
flex
;
align-items
:
center
;
}
.crud-opts
.crud-opts-right
{
margin-left
:
auto
;
}
.crud-opts
.crud-opts-right
span
{
float
:
left
;
}
</
style
>
eladmin-web/src/views/polling/lxjcjy/Crud/Pagination.vue
0 → 100644
View file @
7704443a
<!--分页-->
<
template
>
<el-pagination
:page-size
.
sync=
"page.size"
:total=
"page.total"
:current-page
.
sync=
"page.page"
style=
"margin-top: 8px;"
layout=
"total, prev, pager, next, sizes"
@
size-change=
"crud.sizeChangeHandler($event)"
@
current-change=
"crud.pageChangeHandler"
/>
</
template
>
<
script
>
import
{
pagination
}
from
'@crud/crud'
export
default
{
mixins
:
[
pagination
()]
}
</
script
>
eladmin-web/src/views/polling/lxjcjy/Crud/RR.operation.vue
0 → 100644
View file @
7704443a
<!--搜索与重置-->
<
template
>
<span>
<el-button
class=
"filter-item"
size=
"mini"
type=
"success"
icon=
"el-icon-search"
@
click=
"crud.toQuery"
>
搜索
</el-button>
<el-button
v-if=
"crud.optShow.reset"
class=
"filter-item"
size=
"mini"
type=
"warning"
icon=
"el-icon-refresh-left"
@
click=
"crud.resetQuery()"
>
重置
</el-button>
</span>
</
template
>
<
script
>
import
{
crud
}
from
'@crud/crud'
export
default
{
mixins
:
[
crud
()],
props
:
{
itemClass
:
{
type
:
String
,
required
:
false
,
default
:
''
}
}
}
</
script
>
eladmin-web/src/views/polling/lxjcjy/Crud/UD.operation.vue
0 → 100644
View file @
7704443a
<
template
>
<div>
<el-button
v-permission=
"permission.edit"
:loading=
"crud.status.cu === 2"
:disabled=
"disabledEdit"
size=
"mini"
type=
"primary"
icon=
"el-icon-chat-line-square"
@
click=
"crud.toEdit(data)"
>
查看详情
</el-button>
<el-popover
v-model=
"pop"
v-permission=
"permission.del"
placement=
"top"
width=
"180"
trigger=
"manual"
@
show=
"onPopoverShow"
@
hide=
"onPopoverHide"
>
<p>
{{
msg
}}
</p>
<div
style=
"text-align: right; margin: 0"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"doCancel"
>
取消
</el-button>
<el-button
:loading=
"crud.dataStatus[crud.getDataId(data)].delete === 2"
type=
"primary"
size=
"mini"
@
click=
"crud.doDelete(data)"
>
确定
</el-button>
</div>
<!-- 删除按钮,此页面只需要查询,所以注释-->
<!--
<el-button
slot=
"reference"
:disabled=
"disabledDle"
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"toDelete"
/>
-->
</el-popover>
</div>
</
template
>
<
script
>
import
CRUD
,
{
crud
}
from
'@crud/crud'
export
default
{
mixins
:
[
crud
()],
props
:
{
data
:
{
type
:
Object
,
required
:
true
},
permission
:
{
type
:
Object
,
required
:
true
},
disabledEdit
:
{
type
:
Boolean
,
default
:
false
},
disabledDle
:
{
type
:
Boolean
,
default
:
false
},
msg
:
{
type
:
String
,
default
:
'确定删除本条数据吗?'
}
},
data
()
{
return
{
pop
:
false
}
},
methods
:
{
doCancel
()
{
this
.
pop
=
false
this
.
crud
.
cancelDelete
(
this
.
data
)
},
toDelete
()
{
this
.
pop
=
true
},
[
CRUD
.
HOOK
.
afterDelete
](
crud
,
data
)
{
if
(
data
===
this
.
data
)
{
this
.
pop
=
false
}
},
onPopoverShow
()
{
setTimeout
(()
=>
{
document
.
addEventListener
(
'click'
,
this
.
handleDocumentClick
)
},
0
)
},
onPopoverHide
()
{
document
.
removeEventListener
(
'click'
,
this
.
handleDocumentClick
)
},
handleDocumentClick
(
event
)
{
this
.
pop
=
false
}
}
}
</
script
>
eladmin-web/src/views/polling/lxjcjy/Crud/crud.js
0 → 100644
View file @
7704443a
This diff is collapsed.
Click to expand it.
eladmin-web/src/views/polling/lxjcjy/index.vue
0 → 100644
View file @
7704443a
<
template
>
<div
class=
"app-container"
>
<!--工具栏-->
<div
class=
"head-container"
>
<div
v-if=
"crud.props.searchToggle"
>
<!-- 搜索 -->
<el-input
v-model=
"query.qqjk"
clearable
placeholder=
"请求接口名称"
style=
"width: 200px"
class=
"filter-item"
@
keyup
.
enter
.
native=
"crud.toQuery"
/>
<date-range-picker
v-model=
"query.createTime"
class=
"date-item"
/>
<rrOperation
/>
</div>
<crudOperation
:permission=
"permission"
/>
</div>
<!--表单组件-->
<el-dialog
append-to-body
:close-on-click-modal=
"false"
:before-close=
"crud.cancelCU"
:visible
.
sync=
"crud.status.cu > 0"
:title=
"crud.status.title"
width=
"100%"
hight=
"100%"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"130px"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"请求接口"
prop=
"qqjk"
>
<el-input
v-model=
"form.qqjk"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple-light"
>
<el-form-item
label=
"请求时间"
prop=
"qqsj"
>
<el-input
v-model=
"form.qqsj"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"请求内容"
prop=
"qqnr"
>
<el-input
v-model=
"form.qqnr"
type=
"textarea"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"响应时间"
prop=
"xysj"
>
<el-input
v-model
.
number=
"form.xysj"
style=
"width: 370px;"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"响应状态"
prop=
"xyzt"
>
<el-input
v-model
.
number=
"form.xyzt"
style=
"width: 370px;"
:disabled=
"true"
/>
</el-form-item>
<div
class=
"grid-content bg-purple-light"
/>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
/>
<el-form-item
label=
"响应内容"
prop=
"xynr"
>
<el-input
v-model=
"form.xynr"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</el-col>
</el-row>
<el-divider
content-position=
"left"
>
返回参数
</el-divider>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"单位名称"
prop=
"entName"
>
<el-input
v-model=
"form.entName"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple-light"
>
<el-form-item
label=
"单位地址"
prop=
"xynr"
>
<el-input
v-model=
"form.dom"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"法人代表姓名"
prop=
"name"
>
<el-input
v-model=
"form.name"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"统一社会信用代码"
prop=
"uniscid"
>
<el-input
v-model=
"form.uniscid"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple-light"
>
<el-form-item
label=
"成立日期"
prop=
"estDate"
>
<el-input
v-model=
"form.estDate"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"注册资本"
prop=
"name"
>
<el-input
v-model=
"form.regCap"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"经营(驻在)期限自"
prop=
"opFrom"
>
<el-input
v-model=
"form.opFrom"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple-light"
>
<el-form-item
label=
"经营(驻在)期限至"
prop=
"opto"
>
<el-input
v-model=
"form.opto"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"登记机关"
prop=
"regOrgCn"
>
<el-input
v-model=
"form.regOrgCn"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</div>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"登记登记状态"
prop=
"regStateCn"
>
<el-input
v-model=
"form.regStateCn"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"企业经营范围"
prop=
"opScope"
>
<el-input
v-model=
"form.opScope"
type=
"textarea"
style=
"width: 370px"
:disabled=
"true"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center"
>
<el-button
type=
"primary"
size=
"medium"
@
click=
"crud.cancelCU"
>
确认
</el-button>
</div>
</el-dialog>
<!--表格渲染-->
<el-table
ref=
"table"
v-loading=
"crud.loading"
:data=
"crud.data"
style=
"width: 100%"
@
selection-change=
"crud.selectionChangeHandler"
>
<el-table-column
v-if=
"checkPer(['admin','serverDeploy:edit'])"
label=
"操作"
width=
"150px"
align=
"center"
>
<template
slot-scope=
"scope"
>
<udOperation
:data=
"scope.row"
:permission=
"permission"
/>
</
template
>
</el-table-column>
<!-- <el-table-column type="selection" width="55" />-->
<el-table-column
prop=
"qqjk"
label=
"请求接口"
/>
<el-table-column
prop=
"qqsj"
label=
"请求时间"
/>
<el-table-column
prop=
"xysj"
label=
"响应时间"
/>
<el-table-column
prop=
"xyzt"
label=
"响应状态"
/>
<el-table-column
prop=
"xynr"
label=
"响应内容"
/>
</el-table>
<!--分页组件-->
<pagination
/>
</div>
</template>
<
script
>
import
{
testServerConnect
}
from
'@/api/mnt/connect'
import
CRUD
,
{
presenter
,
header
,
form
,
crud
}
from
'./Crud/crud'
import
rrOperation
from
'./Crud/RR.operation'
import
udOperation
from
'./Crud/UD.operation'
import
pagination
from
'./Crud/Pagination'
import
DateRangePicker
from
'@/components/DateRangePicker'
import
crudOperation
from
'./Crud/CRUD.operation'
const
defaultForm
=
{
id
:
null
,
name
:
null
,
ip
:
null
,
port
:
22
,
account
:
'root'
,
password
:
null
}
export
default
{
name
:
'Lxjcjy'
,
components
:
{
pagination
,
rrOperation
,
udOperation
,
DateRangePicker
,
crudOperation
},
cruds
()
{
return
CRUD
({
title
:
'连续缴存校验'
,
url
:
'api/LxjcjyController'
,
crudMethod
:
{}})
},
mixins
:
[
presenter
(),
header
(),
form
(
defaultForm
),
crud
()],
data
()
{
return
{
// currView: 'index',
accountList
:
[],
accountMap
:
{},
loading
:
false
,
permission
:
{},
// 规则验证
rules
:
{
Demo
:
[
{
required
:
true
,
message
:
'请输入Demo'
,
trigger
:
'blur'
}
]
}
}
},
methods
:
{
testConnectServer
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
loading
=
true
testServerConnect
(
this
.
form
).
then
((
res
)
=>
{
this
.
loading
=
false
this
.
$notify
({
title
:
res
?
'连接成功'
:
'连接失败'
,
type
:
res
?
'success'
:
'error'
,
duration
:
2500
})
}).
catch
(()
=>
{
this
.
loading
=
false
})
}
})
}
}
}
</
script
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
::v-deep
.el-input-number
.el-input__inner
{
text-align
:
left
;
}
</
style
>
eladmin/eladmin-interface/src/main/java/me/zhengjie/controller/JczlcxController.java
0 → 100644
View file @
7704443a
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me
.
zhengjie
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
me.zhengjie.annotation.AnonymousAccess
;
import
me.zhengjie.service.JczlcxService
;
import
me.zhengjie.service.QyxxcxService
;
import
me.zhengjie.service.dto.JczlcxDeployQueryCriteria
;
import
me.zhengjie.service.dto.QyxxcxDeployQueryCriteria
;
import
me.zhengjie.util.shengneiUtil
;
import
org.apache.http.impl.client.CloseableHttpClient
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
//import static me.zhengjie.util.shengneiUtil.createSSLClientDefault;
//import static me.zhengjie.util.shengneiUtil.doPost;
/**
* @author Zheng Jie
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"api/JczlcxController"
)
@Api
(
tags
=
"查询:缴存总览查询接口流水"
)
public
class
JczlcxController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
JczlcxController
.
class
);
@Autowired
private
JczlcxService
jczlcxService
;
@ApiOperation
(
"查询公司注册信息"
)
@AnonymousAccess
@RequestMapping
(
"/Test"
)
public
Map
Test
(){
CloseableHttpClient
httpClinet
=
shengneiUtil
.
createSSLClientDefault
();
/*String token = getToken(httpClinet);
System.out.println(token);
JSONObject parseObject = JSON.parseObject(token);*/
Date
date
=
new
Date
();
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
String
da
=
sdf
.
format
(
date
);
String
url
=
"https://gateway.zsj.jl.cegn.cn/api/visual/queryEBaseinfos"
;
JSONObject
obj
=
new
JSONObject
();
String
doPost
=
shengneiUtil
.
doPost
(
url
,
obj
.
toString
(),
"514f30bb290b875cf718ef0f10886c15"
,
httpClinet
);
logger
.
info
(
doPost
);
return
new
HashMap
<>();
}
@ApiOperation
(
value
=
"查询企业信息接口流水"
)
@GetMapping
@PreAuthorize
(
"@el.check('serverDeploy:list')"
)
public
ResponseEntity
<
Object
>
query
(
JczlcxDeployQueryCriteria
criteria
,
Pageable
pageable
){
return
new
ResponseEntity
<>(
jczlcxService
.
queryAll
(
criteria
,
pageable
),
HttpStatus
.
OK
);
}
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/controller/LxjcjyController.java
0 → 100644
View file @
7704443a
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me
.
zhengjie
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
me.zhengjie.annotation.AnonymousAccess
;
import
me.zhengjie.service.JczlcxService
;
import
me.zhengjie.service.LxjcjyService
;
import
me.zhengjie.service.dto.JczlcxDeployQueryCriteria
;
import
me.zhengjie.service.dto.LxjcjyDeployQueryCriteria
;
import
me.zhengjie.util.shengneiUtil
;
import
org.apache.http.impl.client.CloseableHttpClient
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
//import static me.zhengjie.util.shengneiUtil.createSSLClientDefault;
//import static me.zhengjie.util.shengneiUtil.doPost;
/**
* @author Zheng Jie
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"api/LxjcjyController"
)
@Api
(
tags
=
"查询:连续缴存校验接口流水"
)
public
class
LxjcjyController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
LxjcjyController
.
class
);
@Autowired
private
LxjcjyService
lxjcjyService
;
@ApiOperation
(
"查询公司注册信息"
)
@AnonymousAccess
@RequestMapping
(
"/Test"
)
public
Map
Test
(){
CloseableHttpClient
httpClinet
=
shengneiUtil
.
createSSLClientDefault
();
/*String token = getToken(httpClinet);
System.out.println(token);
JSONObject parseObject = JSON.parseObject(token);*/
Date
date
=
new
Date
();
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
String
da
=
sdf
.
format
(
date
);
String
url
=
"https://gateway.zsj.jl.cegn.cn/api/visual/queryEBaseinfos"
;
JSONObject
obj
=
new
JSONObject
();
String
doPost
=
shengneiUtil
.
doPost
(
url
,
obj
.
toString
(),
"514f30bb290b875cf718ef0f10886c15"
,
httpClinet
);
logger
.
info
(
doPost
);
return
new
HashMap
<>();
}
@ApiOperation
(
value
=
"查询企业信息接口流水"
)
@GetMapping
@PreAuthorize
(
"@el.check('serverDeploy:list')"
)
public
ResponseEntity
<
Object
>
query
(
LxjcjyDeployQueryCriteria
criteria
,
Pageable
pageable
){
return
new
ResponseEntity
<>(
lxjcjyService
.
queryAll
(
criteria
,
pageable
),
HttpStatus
.
OK
);
}
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/domain/JczlcxDeploy.java
0 → 100644
View file @
7704443a
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me
.
zhengjie
.
domain
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.copier.CopyOptions
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
import
me.zhengjie.base.BaseEntity
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.sql.Date
;
/**
* @author zhanghouying
* @date 2019-08-24
*/
@Entity
@Getter
@Setter
@Table
(
name
=
"SJGX_BDC313_JCZLCX"
)
public
class
JczlcxDeploy
extends
BaseEntity
implements
Serializable
{
@Id
@Column
(
name
=
"ID"
)
@ApiModelProperty
(
value
=
"ID"
,
hidden
=
true
)
@SequenceGenerator
(
name
=
"JczlcxDeployGenerator"
,
sequenceName
=
"SEQ_SJGX_BDC313_JCZLCX"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"JczlcxDeployGenerator"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"证件类型"
)
private
String
zjlx
;
@ApiModelProperty
(
value
=
"证件号码"
)
private
String
zjhm
;
@ApiModelProperty
(
value
=
"备用字段1"
)
private
String
bk1
;
@ApiModelProperty
(
value
=
"备用字段2"
)
private
String
bk2
;
@ApiModelProperty
(
value
=
"备用字段3"
)
private
String
bk3
;
@ApiModelProperty
(
value
=
"备用字段4"
)
private
String
bk4
;
@ApiModelProperty
(
value
=
"备用字段5"
)
private
String
bk5
;
@ApiModelProperty
(
value
=
"处理状态"
)
private
String
fileserverstat
;
@ApiModelProperty
(
value
=
"失败原因"
)
private
String
errorreason
;
@ApiModelProperty
(
value
=
"返回报文:备用字段1"
)
private
String
rbk1
;
@ApiModelProperty
(
value
=
"返回报文:备用字段2"
)
private
String
rbk2
;
@ApiModelProperty
(
value
=
"0 待发送 1 已发送 2 已接受结果 "
)
private
String
status
;
@ApiModelProperty
(
value
=
"插入日期"
)
private
Date
crrq
;
@ApiModelProperty
(
value
=
"返回日期"
)
private
Date
fhrq
;
@ApiModelProperty
(
value
=
"报文头返回状态 0 成功 1失败 "
)
private
String
txstatus
;
@ApiModelProperty
(
value
=
"报文头返回解释"
)
private
String
rtnmessage
;
@ApiModelProperty
(
value
=
"发送方日期"
)
private
String
senddate
;
@ApiModelProperty
(
value
=
"发送方时间"
)
private
String
sendtime
;
@ApiModelProperty
(
value
=
"发送方流水号"
)
private
String
sendseqno
;
@ApiModelProperty
(
value
=
"交易机构号"
)
private
String
txunitno
;
@ApiModelProperty
(
value
=
"发送方节点号"
)
private
String
sendnode
;
@ApiModelProperty
(
value
=
"交易代码"
)
private
String
txcode
;
@ApiModelProperty
(
value
=
"接收方节点号"
)
private
String
receivenode
;
@ApiModelProperty
(
value
=
"客户编号"
)
private
String
custno
;
@ApiModelProperty
(
value
=
"发送方流水号"
)
private
String
operno
;
@ApiModelProperty
(
value
=
""
)
private
String
rtncode
;
@ApiModelProperty
(
value
=
"返回报文头日期"
)
private
String
receivedate
;
@ApiModelProperty
(
value
=
"返回报文头时间"
)
private
String
receivetime
;
@ApiModelProperty
(
value
=
"返回报文流水号"
)
private
String
receiveseqno
;
@ApiModelProperty
(
value
=
"姓名"
)
private
String
xingming
;
@ApiModelProperty
(
value
=
"缴存账户状态"
)
private
String
jczhzt
;
@ApiModelProperty
(
value
=
"返回报文:数据总条数"
)
private
String
recnum
;
@ApiModelProperty
(
value
=
"返回报文:备用字段3"
)
private
String
rbk3
;
@ApiModelProperty
(
value
=
"返回报文:备用字段4"
)
private
String
rbk4
;
@ApiModelProperty
(
value
=
"返回报文:备用字段5"
)
private
String
rbk5
;
public
void
copy
(
JczlcxDeploy
source
){
BeanUtil
.
copyProperties
(
source
,
this
,
CopyOptions
.
create
().
setIgnoreNullValue
(
true
));
}
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/domain/LxjcjyDeploy.java
0 → 100644
View file @
7704443a
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me
.
zhengjie
.
domain
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.copier.CopyOptions
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
import
me.zhengjie.base.BaseEntity
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.sql.Date
;
/**
* @author zhanghouying
* @date 2019-08-24
*/
@Entity
@Getter
@Setter
@Table
(
name
=
"SJGX_BDC315_LXJCJY"
)
public
class
LxjcjyDeploy
extends
BaseEntity
implements
Serializable
{
@Id
@Column
(
name
=
"ID"
)
@ApiModelProperty
(
value
=
"ID"
,
hidden
=
true
)
@SequenceGenerator
(
name
=
"LxjcjyDeployGenerator"
,
sequenceName
=
"SEQ_SJGX_BDC315_LXJCJY"
,
allocationSize
=
1
)
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
,
generator
=
"LxjcjyDeployGenerator"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"证件类型"
)
private
String
zjlx
;
public
void
copy
(
LxjcjyDeploy
source
){
BeanUtil
.
copyProperties
(
source
,
this
,
CopyOptions
.
create
().
setIgnoreNullValue
(
true
));
}
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/mapper/JczlcxMapper.java
0 → 100644
View file @
7704443a
package
me
.
zhengjie
.
mapper
;
import
me.zhengjie.base.BaseMapper
;
import
me.zhengjie.domain.JczlcxDeploy
;
import
me.zhengjie.domain.QyxxcxDeploy
;
import
me.zhengjie.service.dto.JczlcxDeployDto
;
import
me.zhengjie.service.dto.QyxxcxDeployDto
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.ReportingPolicy
;
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
unmappedTargetPolicy
=
ReportingPolicy
.
IGNORE
)
public
interface
JczlcxMapper
extends
BaseMapper
<
JczlcxDeployDto
,
JczlcxDeploy
>
{
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/mapper/LxjcjyMapper.java
0 → 100644
View file @
7704443a
package
me
.
zhengjie
.
mapper
;
import
me.zhengjie.base.BaseMapper
;
import
me.zhengjie.domain.JczlcxDeploy
;
import
me.zhengjie.domain.LxjcjyDeploy
;
import
me.zhengjie.service.dto.JczlcxDeployDto
;
import
me.zhengjie.service.dto.LxjcjyDeployDto
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.ReportingPolicy
;
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
unmappedTargetPolicy
=
ReportingPolicy
.
IGNORE
)
public
interface
LxjcjyMapper
extends
BaseMapper
<
LxjcjyDeployDto
,
LxjcjyDeploy
>
{
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/repository/JczlcxDeployRepository.java
0 → 100644
View file @
7704443a
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me
.
zhengjie
.
repository
;
import
me.zhengjie.domain.JczlcxDeploy
;
import
me.zhengjie.domain.QyxxcxDeploy
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author zhanghouying
* @date 2019-08-24
*/
public
interface
JczlcxDeployRepository
extends
JpaRepository
<
JczlcxDeploy
,
Long
>,
JpaSpecificationExecutor
<
JczlcxDeploy
>
{
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/repository/LxjcjyDeployRepository.java
0 → 100644
View file @
7704443a
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me
.
zhengjie
.
repository
;
import
me.zhengjie.domain.JczlcxDeploy
;
import
me.zhengjie.domain.LxjcjyDeploy
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author zhanghouying
* @date 2019-08-24
*/
public
interface
LxjcjyDeployRepository
extends
JpaRepository
<
LxjcjyDeploy
,
Long
>,
JpaSpecificationExecutor
<
LxjcjyDeploy
>
{
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/service/JczlcxService.java
0 → 100644
View file @
7704443a
package
me
.
zhengjie
.
service
;
import
me.zhengjie.service.dto.JczlcxDeployQueryCriteria
;
import
me.zhengjie.service.dto.QyxxcxDeployQueryCriteria
;
import
org.springframework.data.domain.Pageable
;
public
interface
JczlcxService
{
/**
* 分页查询
* @param criteria 条件
* @param pageable 分页参数
* @return /
*/
Object
queryAll
(
JczlcxDeployQueryCriteria
criteria
,
Pageable
pageable
);
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/service/LxjcjyService.java
0 → 100644
View file @
7704443a
package
me
.
zhengjie
.
service
;
import
me.zhengjie.service.dto.JczlcxDeployQueryCriteria
;
import
me.zhengjie.service.dto.LxjcjyDeployQueryCriteria
;
import
org.springframework.data.domain.Pageable
;
public
interface
LxjcjyService
{
/**
* 分页查询
* @param criteria 条件
* @param pageable 分页参数
* @return /
*/
Object
queryAll
(
LxjcjyDeployQueryCriteria
criteria
,
Pageable
pageable
);
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/service/dto/JczlcxDeployDto.java
0 → 100644
View file @
7704443a
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me
.
zhengjie
.
service
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
me.zhengjie.base.BaseDTO
;
import
java.io.Serializable
;
import
java.sql.Date
;
/**
* @author zhanghouying
* @date 2019-08-24
*/
@Data
public
class
JczlcxDeployDto
extends
BaseDTO
implements
Serializable
{
private
Long
id
;
private
String
zjlx
;
private
String
zjhm
;
private
String
bk1
;
private
String
bk2
;
private
String
bk3
;
private
String
bk4
;
private
String
bk5
;
private
String
fileserverstat
;
private
String
errorreason
;
private
String
rbk1
;
private
String
rbk2
;
private
String
status
;
private
Date
crrq
;
private
Date
fhrq
;
private
String
txstatus
;
private
String
rtnmessage
;
private
String
senddate
;
private
String
sendtime
;
private
String
sendseqno
;
private
String
txunitno
;
private
String
sendnode
;
private
String
txcode
;
private
String
receivenode
;
private
String
custno
;
private
String
operno
;
private
String
rtncode
;
private
String
receivedate
;
private
String
receivetime
;
private
String
receiveseqno
;
private
String
xingming
;
private
String
jczhzt
;
private
String
recnum
;
private
String
rbk3
;
private
String
rbk4
;
private
String
rbk5
;
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/service/dto/JczlcxDeployQueryCriteria.java
0 → 100644
View file @
7704443a
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me
.
zhengjie
.
service
.
dto
;
import
lombok.Data
;
import
me.zhengjie.annotation.Query
;
/**
* @author zhanghouying
* @date 2019-08-24
*/
@Data
public
class
JczlcxDeployQueryCriteria
{
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/service/dto/LxjcjyDeployDto.java
0 → 100644
View file @
7704443a
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me
.
zhengjie
.
service
.
dto
;
import
lombok.Data
;
import
me.zhengjie.base.BaseDTO
;
import
java.io.Serializable
;
import
java.sql.Date
;
/**
* @author zhanghouying
* @date 2019-08-24
*/
@Data
public
class
LxjcjyDeployDto
extends
BaseDTO
implements
Serializable
{
private
Long
id
;
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/service/dto/LxjcjyDeployQueryCriteria.java
0 → 100644
View file @
7704443a
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me
.
zhengjie
.
service
.
dto
;
import
lombok.Data
;
/**
* @author zhanghouying
* @date 2019-08-24
*/
@Data
public
class
LxjcjyDeployQueryCriteria
{
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/serviceimpl/JczlcxServiceImpl.java
0 → 100644
View file @
7704443a
package
me
.
zhengjie
.
serviceimpl
;
import
lombok.RequiredArgsConstructor
;
import
me.zhengjie.domain.JczlcxDeploy
;
import
me.zhengjie.domain.QyxxcxDeploy
;
import
me.zhengjie.mapper.JczlcxMapper
;
import
me.zhengjie.mapper.QyxxcxMapper
;
import
me.zhengjie.repository.JczlcxDeployRepository
;
import
me.zhengjie.repository.QyxxcxDeployRepository
;
import
me.zhengjie.service.JczlcxService
;
import
me.zhengjie.service.QyxxcxService
;
import
me.zhengjie.service.dto.JczlcxDeployQueryCriteria
;
import
me.zhengjie.service.dto.QyxxcxDeployQueryCriteria
;
import
me.zhengjie.utils.PageUtil
;
import
me.zhengjie.utils.QueryHelp
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.stereotype.Service
;
/**
* @author JiangHeJia
* @version V1.0
* @Title: QyxxcxServiceImpl
* @Package eladmin
* @Description: TODO(查询企业信息接口流水实现类)
* @date 2021/9/26 15:33
*/
@Service
@RequiredArgsConstructor
public
class
JczlcxServiceImpl
implements
JczlcxService
{
private
final
JczlcxDeployRepository
jczlcxDeployRepository
;
private
final
JczlcxMapper
jczlcxMapper
;
@Override
public
Object
queryAll
(
JczlcxDeployQueryCriteria
criteria
,
Pageable
pageable
){
Page
<
JczlcxDeploy
>
page
=
jczlcxDeployRepository
.
findAll
((
root
,
criteriaQuery
,
criteriaBuilder
)
->
QueryHelp
.
getPredicate
(
root
,
criteria
,
criteriaBuilder
),
pageable
);
return
PageUtil
.
toPage
(
page
.
map
(
jczlcxMapper:
:
toDto
));
}
}
eladmin/eladmin-interface/src/main/java/me/zhengjie/serviceimpl/LxjcjyServiceImpl.java
0 → 100644
View file @
7704443a
package
me
.
zhengjie
.
serviceimpl
;
import
lombok.RequiredArgsConstructor
;
import
me.zhengjie.domain.LxjcjyDeploy
;
import
me.zhengjie.mapper.LxjcjyMapper
;
import
me.zhengjie.repository.LxjcjyDeployRepository
;
import
me.zhengjie.service.LxjcjyService
;
import
me.zhengjie.service.dto.LxjcjyDeployQueryCriteria
;
import
me.zhengjie.utils.PageUtil
;
import
me.zhengjie.utils.QueryHelp
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.stereotype.Service
;
/**
* @author JiangHeJia
* @version V1.0
* @Title: QyxxcxServiceImpl
* @Package eladmin
* @Description: TODO(查询企业信息接口流水实现类)
* @date 2021/9/26 15:33
*/
@Service
@RequiredArgsConstructor
public
class
LxjcjyServiceImpl
implements
LxjcjyService
{
private
final
LxjcjyDeployRepository
lxjcjyDeployRepository
;
private
final
LxjcjyMapper
lxjcjyMapper
;
@Override
public
Object
queryAll
(
LxjcjyDeployQueryCriteria
criteria
,
Pageable
pageable
){
Page
<
LxjcjyDeploy
>
page
=
lxjcjyDeployRepository
.
findAll
((
root
,
criteriaQuery
,
criteriaBuilder
)
->
QueryHelp
.
getPredicate
(
root
,
criteria
,
criteriaBuilder
),
pageable
);
return
PageUtil
.
toPage
(
page
.
map
(
lxjcjyMapper:
:
toDto
));
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment