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
f5c7a501
Commit
f5c7a501
authored
Nov 23, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
b960b069
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
JpInverterMapper.xml
...-api/src/main/resources/mapper/mysql/JpInverterMapper.xml
+6
-6
JpInverterController.java
...boot/module/hygf/biz/controller/JpInverterController.java
+4
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpInverterMapper.xml
View file @
f5c7a501
...
...
@@ -45,13 +45,13 @@
left join hygf_jp_station sta on sta.third_station_id = hjc.third_station_id
<where>
<if
test=
"dto.snCode != null and dto.snCode != ''"
>
sn_code =
#{dto.snCode}
AND hjc.sn_code like
#{dto.snCode}
</if>
<if
test=
"dto.minValue != null and dto.minValue !=''"
>
capacity >= #{dto.type}
AND hjc.
capacity >= #{dto.type}
</if>
<if
test=
"dto.maxValue != null and dto.maxValue !=''"
>
capacity
<![CDATA[<=]]>
#{dto.maxValue}
AND hjc.
capacity
<![CDATA[<=]]>
#{dto.maxValue}
</if>
</where>
limit #{current},#{size}
...
...
@@ -65,13 +65,13 @@
left join hygf_jp_station sta on sta.third_station_id = hjc.third_station_id
<where>
<if
test=
"dto.snCode != null and dto.snCode != ''"
>
sn_code =
#{dto.snCode}
AND hjc.sn_code like
#{dto.snCode}
</if>
<if
test=
"dto.minValue != null and dto.minValue !=''"
>
capacity >= #{dto.type}
AND hjc.
capacity >= #{dto.type}
</if>
<if
test=
"dto.maxValue != null and dto.maxValue !=''"
>
capacity
<![CDATA[<=]]>
#{dto.maxValue}
AND hjc.
capacity
<![CDATA[<=]]>
#{dto.maxValue}
</if>
</where>
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpInverterController.java
View file @
f5c7a501
...
...
@@ -191,6 +191,10 @@ public class JpInverterController extends BaseController {
Page
<
JpInverterDtoNew
>
page
=
new
Page
<
JpInverterDtoNew
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
if
(
StringUtils
.
isNotEmpty
(
jpInverterDto
.
getSnCode
())){
jpInverterDto
.
setSnCode
(
"%"
+
jpInverterDto
.
getSnCode
()+
"%"
);
}
page
.
setTotal
(
jpInverterServiceImpl
.
selectPageDataTota
(
jpInverterDto
));
page
.
setRecords
(
jpInverterServiceImpl
.
selectPageData
(
jpInverterDto
,
(
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