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
997f6f24
Commit
997f6f24
authored
Oct 12, 2021
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提交
parent
4d5d2e8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
dbTemplate_input_item.xml
...on/src/main/resources/db/mapper/dbTemplate_input_item.xml
+7
-6
No files found.
amos-boot-system-supervision/src/main/resources/db/mapper/dbTemplate_input_item.xml
View file @
997f6f24
...
@@ -82,6 +82,7 @@
...
@@ -82,6 +82,7 @@
count(1) AS total_num
count(1) AS total_num
FROM
FROM
p_input_item a
p_input_item a
LEFT JOIN p_catalog_tree b ON a.catalog_id = b.id
where a.is_delete = '0' and a.input_type != '1'
where a.is_delete = '0' and a.input_type != '1'
<if
test=
"name!=null and name!=''"
>
and a.name like concat(concat("%",#{name}),"%")
</if>
<if
test=
"name!=null and name!=''"
>
and a.name like concat(concat("%",#{name}),"%")
</if>
<if
test=
"itemNo!=null"
>
and a.item_no like concat(concat("%",#{itemNo}),"%")
</if>
<if
test=
"itemNo!=null"
>
and a.item_no like concat(concat("%",#{itemNo}),"%")
</if>
...
@@ -117,13 +118,13 @@
...
@@ -117,13 +118,13 @@
a.item_classify,
a.item_classify,
a.item_type_classify,
a.item_type_classify,
a.item_level,
a.item_level,
a.item_start
,
a.item_start
IF
--
IF
( i.input_item_id IS NULL, 0, 1 ) AS ext
--
( i.input_item_id IS NULL, 0, 1 ) AS ext
FROM
FROM
p_input_item a
p_input_item a
LEFT JOIN p_catalog_tree b ON a.catalog_id = b.id
LEFT JOIN p_catalog_tree b ON a.catalog_id = b.id
LEFT JOIN p_route_point_item i ON a.id = i.input_item_id
--
LEFT JOIN p_route_point_item i ON a.id = i.input_item_id
WHERE
WHERE
a.is_delete = '0'
a.is_delete = '0'
AND a.input_type != '1'
AND a.input_type != '1'
...
@@ -348,7 +349,7 @@
...
@@ -348,7 +349,7 @@
<if
test=
"itemType!=null"
>
and a.item_Type = #{itemType}
</if>
<if
test=
"itemType!=null"
>
and a.item_Type = #{itemType}
</if>
<if
test=
"checkTypeId!=null and checkTypeId!=''"
>
and a.check_type_id = #{checkTypeId}
</if>
<if
test=
"checkTypeId!=null and checkTypeId!=''"
>
and a.check_type_id = #{checkTypeId}
</if>
<if
test=
"itemStart!=null"
>
and a.item_start = #{itemStart}
</if>
<if
test=
"itemStart!=null"
>
and a.item_start = #{itemStart}
</if>
<!--<if test="orgCode!=null"> and a.org_Code = #{orgCode}</if>--
>
<if
test=
"orgCode!=null"
>
and a.org_Code = #{orgCode}
</if
>
<if
test=
"itemClassify != null"
>
and a.item_classify = #{itemClassify}
</if>
<if
test=
"itemClassify != null"
>
and a.item_classify = #{itemClassify}
</if>
<if
test=
"itemTypeClassifyIds != null"
>
and FIND_IN_SET(#{itemTypeClassifyIds}, a.item_type_classify_ids)
</if>
<if
test=
"itemTypeClassifyIds != null"
>
and FIND_IN_SET(#{itemTypeClassifyIds}, a.item_type_classify_ids)
</if>
<if
test=
"planId != null"
>
and a.id NOT IN ( SELECT p.input_item_id FROM p_route_point_item p WHERE p.plan_id = #{planId} )
</if>
<if
test=
"planId != null"
>
and a.id NOT IN ( SELECT p.input_item_id FROM p_route_point_item p WHERE p.plan_id = #{planId} )
</if>
...
@@ -367,7 +368,7 @@
...
@@ -367,7 +368,7 @@
<if
test=
"itemType!=null"
>
and a.item_Type = #{itemType}
</if>
<if
test=
"itemType!=null"
>
and a.item_Type = #{itemType}
</if>
<if
test=
"checkTypeId!=null and checkTypeId!=''"
>
and a.check_type_id = #{checkTypeId}
</if>
<if
test=
"checkTypeId!=null and checkTypeId!=''"
>
and a.check_type_id = #{checkTypeId}
</if>
<if
test=
"itemStart!=null"
>
and a.item_start = #{itemStart}
</if>
<if
test=
"itemStart!=null"
>
and a.item_start = #{itemStart}
</if>
<
!--<if test="orgCode!=null"> and a.org_Code = #{orgCode}</if>--
>
<
if
test=
"orgCode!=null"
>
and a.org_Code = #{orgCode}
</if
>
<if
test=
"itemClassify != null"
>
and a.item_classify = #{itemClassify}
</if>
<if
test=
"itemClassify != null"
>
and a.item_classify = #{itemClassify}
</if>
<if
test=
"itemTypeClassifyIds != null"
>
and FIND_IN_SET(#{itemTypeClassifyIds}, a.item_type_classify_ids)
</if>
<if
test=
"itemTypeClassifyIds != null"
>
and FIND_IN_SET(#{itemTypeClassifyIds}, a.item_type_classify_ids)
</if>
<if
test=
"planId != null"
>
and a.id NOT IN ( SELECT p.input_item_id FROM p_route_point_item p WHERE p.plan_id = #{planId} )
</if>
<if
test=
"planId != null"
>
and a.id NOT IN ( SELECT p.input_item_id FROM p_route_point_item p WHERE p.plan_id = #{planId} )
</if>
...
...
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