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
500d98c6
Commit
500d98c6
authored
Sep 15, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
40c48449
4791f598
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
routePointItemMapper.xml
...ion/src/main/resources/db/mapper/routePointItemMapper.xml
+14
-10
No files found.
amos-boot-system-supervision/src/main/resources/db/mapper/routePointItemMapper.xml
View file @
500d98c6
...
...
@@ -49,14 +49,16 @@
COUNT(1)
FROM
p_route_point_item pi
LEFT JOIN p_input_item i ON i.id = pi.input_item_id
<if
test=
"name!=null"
>
and i.name like concat(concat("%",#{name}),"%")
</if>
<if
test=
"itemTypeClassifyIds != null and itemTypeClassifyIds != ''"
>
and i.item_type_classify_ids = #{itemTypeClassifyIds}
</if>
<if
test=
"planId!=null"
>
and pi.plan_id = #{planId}
</if>
<if
test=
"orgCode!=null"
>
and i.org_Code = #{orgCode}
</if>
LEFT JOIN p_input_item i ON i.id = pi.input_item_id
<where>
<if
test=
"name!=null"
>
and i.name like concat(concat("%",#{name}),"%")
</if>
<if
test=
"itemTypeClassifyIds != null and itemTypeClassifyIds != ''"
>
and i.item_type_classify_ids = #{itemTypeClassifyIds}
</if>
<if
test=
"planId!=null"
>
and pi.plan_id = #{planId}
</if>
<if
test=
"orgCode!=null"
>
and i.org_Code = #{orgCode}
</if>
</where>
</select>
<!--查询 -->
<select
id=
"queryPage"
result
Map
=
"com.yeejoin.amos.supervision.business.vo.RoutePointItemVo"
>
<select
id=
"queryPage"
result
Type
=
"com.yeejoin.amos.supervision.business.vo.RoutePointItemVo"
>
SELECT
pi.id,
i.id AS itemId,
...
...
@@ -69,10 +71,12 @@
FROM
p_route_point_item pi
LEFT JOIN p_input_item i ON i.id = pi.input_item_id
<if
test=
"name!=null"
>
and i.name like concat(concat("%",#{name}),"%")
</if>
<if
test=
"itemTypeClassifyIds != null and itemTypeClassifyIds != ''"
>
and i.item_type_classify_ids = #{itemTypeClassifyIds}
</if>
<if
test=
"planId!=null"
>
and pi.plan_id = #{planId}
</if>
<if
test=
"orgCode!=null"
>
and i.org_Code = #{orgCode}
</if>
<where>
<if
test=
"name!=null"
>
and i.name like concat(concat("%",#{name}),"%")
</if>
<if
test=
"itemTypeClassifyIds != null and itemTypeClassifyIds != ''"
>
and i.item_type_classify_ids = #{itemTypeClassifyIds}
</if>
<if
test=
"planId!=null"
>
and pi.plan_id = #{planId}
</if>
<if
test=
"orgCode!=null"
>
and i.org_Code = #{orgCode}
</if>
</where>
<choose>
<when
test=
"pageSize==-1"
></when>
<when
test=
"pageSize!=-1"
>
limit #{offset},#{pageSize}
</when>
...
...
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