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
516e9bd6
Commit
516e9bd6
authored
Jun 03, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改机顶盒运维信息管理查询总数不对
parent
375f6d53
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
AuditServiceImpl.java
...ava/cn/chnmuseum/party/service/impl/AuditServiceImpl.java
+3
-3
LoginController.java
...va/cn/chnmuseum/party/web/controller/LoginController.java
+2
-0
TBoxOperationMapper.xml
src/main/resources/mapper/TBoxOperationMapper.xml
+2
-2
No files found.
src/main/java/cn/chnmuseum/party/service/impl/AuditServiceImpl.java
View file @
516e9bd6
...
@@ -367,7 +367,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
...
@@ -367,7 +367,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
case
REMOVE:
case
REMOVE:
// 6.2改 getExhibitionBoardCatId改为getExhibitionBoardId
// 6.2改 getExhibitionBoardCatId改为getExhibitionBoardId
// final LambdaQueryWrapper<LearningContentBoard> learningContentBoardLambdaQueryWrapper = Wrappers.<LearningContentBoard>lambdaQuery().eq(LearningContentBoard::getExhibitionBoardCatId, exhibitionBoardId);
// final LambdaQueryWrapper<LearningContentBoard> learningContentBoardLambdaQueryWrapper = Wrappers.<LearningContentBoard>lambdaQuery().eq(LearningContentBoard::getExhibitionBoardCatId, exhibitionBoardId);
final
LambdaQueryWrapper
<
LearningContentBoard
>
learningContentBoardLambdaQueryWrapper
=
Wrappers
.<
LearningContentBoard
>
lambdaQuery
().
eq
(
LearningContentBoard:
:
getExhibitionBoardId
,
exhibitionBoardId
);
final
LambdaQueryWrapper
<
LearningContentBoard
>
learningContentBoardLambdaQueryWrapper
=
Wrappers
.<
LearningContentBoard
>
lambdaQuery
().
eq
(
LearningContentBoard:
:
getExhibitionBoard
Cat
Id
,
exhibitionBoardId
);
final
List
<
LearningContentBoard
>
learningContentBoardList
=
this
.
learningContentBoardService
.
list
(
learningContentBoardLambdaQueryWrapper
);
final
List
<
LearningContentBoard
>
learningContentBoardList
=
this
.
learningContentBoardService
.
list
(
learningContentBoardLambdaQueryWrapper
);
if
(
learningContentBoardList
!=
null
&&
!
learningContentBoardList
.
isEmpty
())
{
if
(
learningContentBoardList
!=
null
&&
!
learningContentBoardList
.
isEmpty
())
{
final
Map
<
String
,
List
<
String
>>
collect
=
learningContentBoardList
.
stream
().
collect
(
Collectors
.
groupingBy
(
LearningContentBoard:
:
getLearningContentId
,
Collectors
.
mapping
(
LearningContentBoard:
:
getExhibitionBoardId
,
Collectors
.
toList
())));
final
Map
<
String
,
List
<
String
>>
collect
=
learningContentBoardList
.
stream
().
collect
(
Collectors
.
groupingBy
(
LearningContentBoard:
:
getLearningContentId
,
Collectors
.
mapping
(
LearningContentBoard:
:
getExhibitionBoardId
,
Collectors
.
toList
())));
...
...
src/main/java/cn/chnmuseum/party/web/controller/LoginController.java
View file @
516e9bd6
...
@@ -230,6 +230,8 @@ public class LoginController extends BaseController {
...
@@ -230,6 +230,8 @@ public class LoginController extends BaseController {
Long
i
=
user
.
getExiredDate
().
toEpochDay
()
-
LocalDate
.
now
().
toEpochDay
();
Long
i
=
user
.
getExiredDate
().
toEpochDay
()
-
LocalDate
.
now
().
toEpochDay
();
resultMap
.
put
(
"expireNum"
,
i
);
resultMap
.
put
(
"expireNum"
,
i
);
}
}
user
.
setPassword
(
""
);
user
.
setPhone
(
""
);
resultMap
.
put
(
"user"
,
user
);
resultMap
.
put
(
"user"
,
user
);
resultMap
.
put
(
"token"
,
token
);
resultMap
.
put
(
"token"
,
token
);
resultMap
.
put
(
"menuList"
,
userMenuPerms
);
resultMap
.
put
(
"menuList"
,
userMenuPerms
);
...
...
src/main/resources/mapper/TBoxOperationMapper.xml
View file @
516e9bd6
...
@@ -76,9 +76,9 @@
...
@@ -76,9 +76,9 @@
<select
id=
"selectPageList"
resultMap=
"BaseResultMap"
>
<select
id=
"selectPageList"
resultMap=
"BaseResultMap"
>
SELECT b.id,b.organ_id,b.mac,b.status,b.area_id,b.create_time,b.update_time,r.name organ_name ,u.user_name
SELECT b.id,b.organ_id,b.mac,b.status,b.area_id,b.create_time,b.update_time,r.name organ_name ,u.user_name
FROM t_box_operation b
FROM
(
t_box_operation b
left join t_organ r on r.id = b.organ_id
left join t_organ r on r.id = b.organ_id
left join t_user u on u.org_id = b.organ_id and u.type = '2'
left join t_user u on u.org_id = b.organ_id and u.type = '2'
)
where 1=1
where 1=1
<if
test=
"tBoxOperation.organId != null and tBoxOperation.organId != '' "
>
<if
test=
"tBoxOperation.organId != null and tBoxOperation.organId != '' "
>
and b.organ_id =#{tBoxOperation.organId}
and b.organ_id =#{tBoxOperation.organId}
...
...
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