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
3b935d5f
Commit
3b935d5f
authored
Nov 21, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
3dd5ee65
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
JpCollectorMapper.xml
...api/src/main/resources/mapper/mysql/JpCollectorMapper.xml
+14
-16
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpCollectorMapper.xml
View file @
3b935d5f
...
@@ -42,23 +42,25 @@
...
@@ -42,23 +42,25 @@
<select
id=
"selectPageData"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorDto"
>
<select
id=
"selectPageData"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorDto"
>
select
select
state,
hjc.state,
sn_code,
hjc.sn_code,
station_name,
sta.station_name,
update_time,
hjc.update_time,
type
hjc.type as collectorType,
sta.name,
sta.type
from
from
hygf_jp_collector hjc
hygf_jp_collector hjc
left join hygf_jp_station sta on sta.third_station_id = hjc.third_station_id
left join hygf_jp_station sta on sta.third_station_id = hjc.third_station_id
<where>
<where>
<if
test=
"dto.snCode != null and dto.snCode != ''"
>
<if
test=
"dto.snCode != null and dto.snCode != ''"
>
sn_code = #{dto.snCode}
hjc.
sn_code = #{dto.snCode}
</if>
</if>
<if
test=
"dto.type != null and dto.type !=''"
>
<if
test=
"dto.type != null and dto.type !=''"
>
type = #{dto.type}
hjc.
type = #{dto.type}
</if>
</if>
<if
test=
"dto.state != null and dto.state !=''"
>
<if
test=
"dto.state != null and dto.state !=''"
>
state = #{dto.state}
hjc.
state = #{dto.state}
</if>
</if>
</where>
</where>
limit #{current},#{size}
limit #{current},#{size}
...
@@ -66,23 +68,19 @@
...
@@ -66,23 +68,19 @@
<select
id=
"selectPageDataTota"
resultType=
"int"
>
<select
id=
"selectPageDataTota"
resultType=
"int"
>
select
select
state,
count(1)
sn_code,
station_name,
update_time,
type
from
from
hygf_jp_collector hjc
hygf_jp_collector hjc
left join hygf_jp_station sta on sta.third_station_id = hjc.third_station_id
left join hygf_jp_station sta on sta.third_station_id = hjc.third_station_id
<where>
<where>
<if
test=
"dto.snCode != null and dto.snCode != ''"
>
<if
test=
"dto.snCode != null and dto.snCode != ''"
>
sn_code = #{dto.snCode}
hjc.
sn_code = #{dto.snCode}
</if>
</if>
<if
test=
"dto.type != null and dto.type !=''"
>
<if
test=
"dto.type != null and dto.type !=''"
>
type = #{dto.type}
hjc.
type = #{dto.type}
</if>
</if>
<if
test=
"dto.state != null and dto.state !=''"
>
<if
test=
"dto.state != null and dto.state !=''"
>
state = #{dto.state}
hjc.
state = #{dto.state}
</if>
</if>
</where>
</where>
</select>
</select>
...
...
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