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
09639ff2
Commit
09639ff2
authored
Mar 31, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.203.232.171:8888/lee/chnmuseum-party
into master
parents
ee0d7ec9
5b12d398
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
8 deletions
+33
-8
TBoxOperationMapper.java
...wisenergy/chnmuseum/party/mapper/TBoxOperationMapper.java
+2
-0
TBoxOperationService.java
...senergy/chnmuseum/party/service/TBoxOperationService.java
+2
-0
TBoxOperationServiceImpl.java
...hnmuseum/party/service/impl/TBoxOperationServiceImpl.java
+5
-0
AuditController.java
...nergy/chnmuseum/party/web/controller/AuditController.java
+1
-1
TBoxOperationController.java
...nmuseum/party/web/controller/TBoxOperationController.java
+6
-7
TBoxOperationMapper.xml
src/main/resources/mapper/TBoxOperationMapper.xml
+17
-0
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/mapper/TBoxOperationMapper.java
View file @
09639ff2
...
...
@@ -21,4 +21,6 @@ public interface TBoxOperationMapper extends BaseMapper<TBoxOperation> {
List
<
TBoxOperation
>
getList
(
@Param
(
"status"
)
String
status
,
@Param
(
"areaId"
)
String
areaId
);
List
<
TBoxOperation
>
selectBoxPage
(
Page
<
TBoxOperation
>
page
,
@Param
(
"user"
)
TUser
user
);
List
<
TBoxOperation
>
selectPageList
(
Page
<
TBoxOperation
>
page
,
@Param
(
"tBoxOperation"
)
TBoxOperation
tBoxOperation
);
}
src/main/java/cn/wisenergy/chnmuseum/party/service/TBoxOperationService.java
View file @
09639ff2
...
...
@@ -20,4 +20,6 @@ public interface TBoxOperationService extends IService<TBoxOperation> {
List
<
TBoxOperation
>
getList
(
String
status
,
String
areaId
);
Page
<
TBoxOperation
>
selectBoxPage
(
Page
<
TBoxOperation
>
page
,
TUser
user
);
Page
<
TBoxOperation
>
selectPage
(
Page
<
TBoxOperation
>
page
,
TBoxOperation
tBoxOperation
);
}
src/main/java/cn/wisenergy/chnmuseum/party/service/impl/TBoxOperationServiceImpl.java
View file @
09639ff2
...
...
@@ -38,5 +38,10 @@ public class TBoxOperationServiceImpl extends ServiceImpl<TBoxOperationMapper, T
public
Page
<
TBoxOperation
>
selectBoxPage
(
Page
<
TBoxOperation
>
page
,
TUser
user
)
{
return
page
.
setRecords
(
tBoxOperationMapper
.
selectBoxPage
(
page
,
user
));
}
@Override
public
Page
<
TBoxOperation
>
selectPage
(
Page
<
TBoxOperation
>
page
,
TBoxOperation
tBoxOperation
)
{
return
page
.
setRecords
(
tBoxOperationMapper
.
selectPageList
(
page
,
tBoxOperation
));
}
}
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/AuditController.java
View file @
09639ff2
...
...
@@ -98,7 +98,7 @@ public class AuditController extends BaseController {
}
else
{
audit
.
setSecondTime
(
LocalDateTime
.
now
());
if
(!
AuditStatusEnum
.
REFUSED
.
name
().
equals
(
audit
.
getStatus
()))
{
audit
.
set
First
Remarks
(
""
);
audit
.
set
Second
Remarks
(
""
);
}
}
try
{
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/TBoxOperationController.java
View file @
09639ff2
...
...
@@ -165,24 +165,23 @@ public class TBoxOperationController extends BaseController {
@ApiOperation
(
value
=
"获取机顶盒运维信息分页列表"
,
notes
=
"获取机顶盒运维信息分页列表"
)
public
Map
<
String
,
Object
>
getTBoxOperationPageList
(
String
organId
,
Integer
status
,
String
areaId
)
{
TUser
user
=
getcurUser
();
UpdateWrapper
<
TBoxOperation
>
wrapper
=
new
UpdateWrapper
<>
();
TBoxOperation
tBoxOperation
=
new
TBoxOperation
();
if
(
StringUtils
.
isNotBlank
(
organId
))
{
wrapper
.
eq
(
"organ_id"
,
organId
);
tBoxOperation
.
setOrganId
(
organId
);
}
if
(
status
!=
null
)
{
wrapper
.
eq
(
"status"
,
status
);
tBoxOperation
.
setStatus
(
status
);
}
if
(
StringUtils
.
isNotBlank
(
areaId
))
{
wrapper
.
eq
(
"area_id"
,
areaId
);
tBoxOperation
.
setAreaId
(
areaId
);
}
if
(
StringUtils
.
isNotBlank
(
user
.
getAreaId
()))
{
//设置数据权限
wrapper
.
likeRight
(
"area_id"
,
getAreaId
(
user
.
getAreaId
()));
tBoxOperation
.
setAreaId
(
getAreaId
(
user
.
getAreaId
()));
}
wrapper
.
orderByDesc
(
"create_time"
);
Page
<
TBoxOperation
>
page
=
null
;
try
{
page
=
this
.
tBoxOperationService
.
page
(
getPage
(),
wrapper
);
page
=
this
.
tBoxOperationService
.
selectPage
(
getPage
(),
tBoxOperation
);
return
getResult
(
page
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
src/main/resources/mapper/TBoxOperationMapper.xml
View file @
09639ff2
...
...
@@ -53,4 +53,21 @@ left join t_organ r on r.id = b.organ_id
and u.type = 3
order by b.create_time desc
</select>
<select
id=
"selectPageList"
resultMap=
"BaseResultMap"
>
SELECT b.*,r.`name` organ_name
FROM t_box_operation b
left join t_organ r on r.id = b.organ_id
where 1=1
<if
test=
"tBoxOperation.organId != null and tBoxOperation.organId != '' "
>
and b.organ_id =#{tBoxOperation.organId}
</if>
<if
test=
"tBoxOperation.status != null"
>
and b.status =#{tBoxOperation.status}
</if>
<if
test=
"tBoxOperation.areaId != null and tBoxOperation.areaId != '' "
>
and r.area_id like concat(#{tBoxOperation.areaId}, '%')
</if>
</select>
</mapper>
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