Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
Project
Project
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
liqin
chnmuseum-party
Commits
772814ed
Commit
772814ed
authored
Apr 01, 2021
by
jiawei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.203.232.171:8888/lee/chnmuseum-party
parents
d3f347bf
863e08c5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
12 deletions
+19
-12
AuditService.java
...va/cn/wisenergy/chnmuseum/party/service/AuditService.java
+2
-0
AuditServiceImpl.java
...energy/chnmuseum/party/service/impl/AuditServiceImpl.java
+15
-0
AuditController.java
...nergy/chnmuseum/party/web/controller/AuditController.java
+1
-12
TUserController.java
...nergy/chnmuseum/party/web/controller/TUserController.java
+1
-0
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/service/AuditService.java
View file @
772814ed
...
@@ -38,4 +38,6 @@ public interface AuditService extends IService<Audit> {
...
@@ -38,4 +38,6 @@ public interface AuditService extends IService<Audit> {
* @return
* @return
*/
*/
boolean
updateAuditAllById
(
Audit
audit
);
boolean
updateAuditAllById
(
Audit
audit
);
Audit
selectOne
(
String
id
,
String
type
);
}
}
src/main/java/cn/wisenergy/chnmuseum/party/service/impl/AuditServiceImpl.java
View file @
772814ed
...
@@ -11,6 +11,7 @@ import cn.wisenergy.chnmuseum.party.service.AuditService;
...
@@ -11,6 +11,7 @@ import cn.wisenergy.chnmuseum.party.service.AuditService;
import
cn.wisenergy.chnmuseum.party.service.ExhibitionBoardService
;
import
cn.wisenergy.chnmuseum.party.service.ExhibitionBoardService
;
import
cn.wisenergy.chnmuseum.party.service.LearningContentService
;
import
cn.wisenergy.chnmuseum.party.service.LearningContentService
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -137,6 +138,20 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
...
@@ -137,6 +138,20 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
}
}
}
}
@Override
public
Audit
selectOne
(
String
id
,
String
type
)
{
UpdateWrapper
<
Audit
>
wrapper
=
new
UpdateWrapper
<>();
if
(
StringUtils
.
isNotBlank
(
id
))
{
wrapper
.
eq
(
"ref_item_id"
,
id
);
}
if
(
StringUtils
.
isNotBlank
(
type
))
{
wrapper
.
eq
(
"type"
,
type
);
}
wrapper
.
orderByDesc
(
"create_time"
).
last
(
"limit 1"
);
Audit
one
=
getOne
(
wrapper
);
return
one
;
}
/**
/**
* 初审级别的修改情况
* 初审级别的修改情况
*
*
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/AuditController.java
View file @
772814ed
...
@@ -199,19 +199,8 @@ public class AuditController extends BaseController {
...
@@ -199,19 +199,8 @@ public class AuditController extends BaseController {
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
try
{
try
{
Audit
audit
=
null
;
Audit
audit
=
null
;
UpdateWrapper
<
Audit
>
wrapper
=
new
UpdateWrapper
<>();
if
(
StringUtils
.
isNotBlank
(
id
))
{
wrapper
.
eq
(
"ref_item_id"
,
id
);
}
if
(
StringUtils
.
isNotBlank
(
type
))
{
wrapper
.
eq
(
"type"
,
type
);
}
wrapper
.
orderByDesc
(
"create_time"
);
//只获取最新的一条审核数据
//只获取最新的一条审核数据
List
<
Audit
>
list
=
auditService
.
list
(
wrapper
);
audit
=
auditService
.
selectOne
(
id
,
type
);
if
(
list
.
size
()
>
0
)
{
audit
=
list
.
get
(
0
);
}
resultMap
.
put
(
"resultCode"
,
"200"
);
resultMap
.
put
(
"resultCode"
,
"200"
);
resultMap
.
put
(
"message"
,
"操作成功"
);
resultMap
.
put
(
"message"
,
"操作成功"
);
resultMap
.
put
(
"data"
,
audit
);
resultMap
.
put
(
"data"
,
audit
);
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/TUserController.java
View file @
772814ed
...
@@ -509,6 +509,7 @@ public class TUserController extends BaseController {
...
@@ -509,6 +509,7 @@ public class TUserController extends BaseController {
TUser
entity
=
new
TUser
();
TUser
entity
=
new
TUser
();
entity
.
setId
(
userId
);
entity
.
setId
(
userId
);
entity
.
setStatus
(
AuditOperationEnum
.
ENABLE
.
name
());
entity
.
setStatus
(
AuditOperationEnum
.
ENABLE
.
name
());
entity
.
setAuditStatus
(
AuditStatusEnum
.
APPROVED_FINAL
.
name
());
entity
.
setUpdateTime
(
DateUtil80
.
getDateTimeOfTimestamp
(
System
.
currentTimeMillis
()));
entity
.
setUpdateTime
(
DateUtil80
.
getDateTimeOfTimestamp
(
System
.
currentTimeMillis
()));
boolean
ret
=
this
.
userService
.
updateById
(
entity
);
boolean
ret
=
this
.
userService
.
updateById
(
entity
);
if
(!
ret
)
{
if
(!
ret
)
{
...
...
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