Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
6ef4e5b5
Commit
6ef4e5b5
authored
Nov 23, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
f5c7a501
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
JpCollectorMapper.xml
...api/src/main/resources/mapper/mysql/JpCollectorMapper.xml
+2
-2
JpCollectorController.java
...oot/module/hygf/biz/controller/JpCollectorController.java
+6
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpCollectorMapper.xml
View file @
6ef4e5b5
...
...
@@ -59,7 +59,7 @@
left join privilege_company pc on sta.regional_companies_code = pc.ORG_CODE
<where>
<if
test=
"dto.snCode != null and dto.snCode != ''"
>
hjc.sn_code
=
#{dto.snCode}
hjc.sn_code
like
#{dto.snCode}
</if>
<if
test=
"dto.type != null and dto.type !=''"
>
hjc.type = #{dto.type}
...
...
@@ -80,7 +80,7 @@
left join privilege_company pc on sta.regional_companies_code = pc.ORG_CODE
<where>
<if
test=
"dto.snCode != null and dto.snCode != ''"
>
hjc.sn_code
=
#{dto.snCode}
hjc.sn_code
like
#{dto.snCode}
</if>
<if
test=
"dto.type != null and dto.type !=''"
>
hjc.type = #{dto.type}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpCollectorController.java
View file @
6ef4e5b5
...
...
@@ -5,6 +5,7 @@ import com.yeejoin.amos.boot.module.hygf.api.config.UserLimits;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpInverterDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpInverter
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.JpInverterServiceImpl
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
...
...
@@ -185,6 +186,11 @@ public class JpCollectorController extends BaseController {
Page
<
JpCollectorDto
>
page
=
new
Page
<
JpCollectorDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
if
(
StringUtils
.
isNotEmpty
(
jpCollectorDto
.
getSnCode
())){
jpCollectorDto
.
setSnCode
(
"%"
+
jpCollectorDto
.
getSnCode
()+
"%"
);
}
page
.
setTotal
(
jpCollectorServiceImpl
.
selectPageDataTota
(
jpCollectorDto
));
page
.
setRecords
(
jpCollectorServiceImpl
.
selectPageData
(
jpCollectorDto
,(
current
-
1
)*
size
,
size
));
return
ResponseHelper
.
buildResponse
(
page
);
...
...
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