Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
Details
Activity
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
常超
map-parent
Commits
081c2c21
Commit
081c2c21
authored
Dec 12, 2022
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务管理调整(重庆)
parent
366f4e6e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
common/common_utils/src/main/java/com/founder/commonutils/model/vo/response/SkServiceApplyVO.java
+9
-1
common/service_base/src/main/java/com/founder/servicebase/logs/mapper/mysqlMapper/SkServiceApplyMapper.xml
+1
-1
common/service_base/src/main/java/com/founder/servicebase/service/serviceimpl/SkServiceApplyServiceImpl.java
+18
-0
No files found.
common/common_utils/src/main/java/com/founder/commonutils/model/vo/response/SkServiceApplyVO.java
View file @
081c2c21
...
...
@@ -59,9 +59,17 @@ public class SkServiceApplyVO {
*/
private
String
ssqsj
;
/**
* 授权状态 1已授权 2撤销 0是未授权
* 授权状态 1已授权 2撤销
3失效
0是未授权
*/
private
String
status
;
/**
* 展示状态(服务申请),0代表不展示,1代表展示
*/
private
String
flag
;
/**
* 是否删除,0表示否,1表示是 服务删除标志
*/
private
String
serviceDeleted
;
public
SkServiceApplyVO
(){}
public
SkServiceApplyVO
(
SkServiceApply
skServiceApply
,
String
name
,
String
ms
){
...
...
common/service_base/src/main/java/com/founder/servicebase/logs/mapper/mysqlMapper/SkServiceApplyMapper.xml
View file @
081c2c21
...
...
@@ -27,7 +27,7 @@
<select
id=
"findAll"
resultType=
"com.founder.commonutils.model.vo.response.SkServiceApplyVO"
>
select a.xxzjbh, serviceMs,serviceName,serviceId, applyGs, applyRy, applyUrl, time, token, a.content,
a.isDeleted, sqsj,ssqsj, a.status
a.isDeleted, sqsj,ssqsj, a.status
,b.flag,b.isDeleted as serviceDeleted
from sk_service_apply a left join sk_service b on a.serviceId=b.xxzjbh
where a.isDeleted='0'
<if
test=
"servicename!= null and servicename!=''"
>
...
...
common/service_base/src/main/java/com/founder/servicebase/service/serviceimpl/SkServiceApplyServiceImpl.java
View file @
081c2c21
package
com
.
founder
.
servicebase
.
service
.
serviceimpl
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.founder.commonutils.model.newPublicEntity.SkServiceApply
;
import
com.founder.commonutils.model.vo.param.SkServiceApplyParam
;
import
com.founder.commonutils.model.vo.response.SkServiceApplyVO
;
import
com.founder.servicebase.logs.mapper.mysqlMapper.SkServiceApplyMapper
;
import
com.founder.servicebase.service.SkServiceApplyService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
* 服务授权表(SkServiceApply)表服务实现类
...
...
@@ -28,6 +31,21 @@ public class SkServiceApplyServiceImpl extends ServiceImpl<SkServiceApplyMapper,
int
count
=
baseMapper
.
count
(
skRegionalsDetailParam
);
skRegionalsDetailParam
.
setPage
((
skRegionalsDetailParam
.
getPage
()-
1
)*
skRegionalsDetailParam
.
getPageSize
());
List
<
SkServiceApplyVO
>
list
=
baseMapper
.
findAll
(
skRegionalsDetailParam
);
// 拿出展示状态(服务申请),flag0代表不展示;服务删除标志serviceDeleted,将申请表Status置为3失效状态
List
<
SkServiceApplyVO
>
listFilter
=
list
.
stream
().
filter
(
p
->
p
.
getFlag
().
equals
(
"0"
)||
p
.
getServiceDeleted
().
equals
(
"1"
)).
collect
(
Collectors
.
toList
());
listFilter
.
stream
().
forEach
(
p
->{
SkServiceApply
skServiceApply
=
new
SkServiceApply
();
p
.
setStatus
(
"3"
);
p
.
setToken
(
null
);
p
.
setSsqsj
(
null
);
BeanUtils
.
copyProperties
(
p
,
skServiceApply
);
UpdateWrapper
updateWrapper
=
new
UpdateWrapper
();
updateWrapper
.
eq
(
"xxzjbh"
,
skServiceApply
.
getXxzjbh
());
updateWrapper
.
set
(
"token"
,
null
);
updateWrapper
.
set
(
"ssqsj"
,
null
);
updateWrapper
.
set
(
"status"
,
"3"
);
baseMapper
.
update
(
skServiceApply
,
updateWrapper
);
});
map
.
put
(
"count"
,
count
);
map
.
put
(
"list"
,
list
);
return
map
;
...
...
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