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
0cd13ade
Commit
0cd13ade
authored
Jul 30, 2024
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
维保备案列表取消查询设备相关信息
parent
70486a73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
JgMaintenanceContractMapper.xml
...src/main/resources/mapper/JgMaintenanceContractMapper.xml
+20
-19
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgMaintenanceContractMapper.xml
View file @
0cd13ade
...
@@ -39,15 +39,16 @@
...
@@ -39,15 +39,16 @@
tjmc.next_execute_user_ids,
tjmc.next_execute_user_ids,
tjmc.next_task_id,
tjmc.next_task_id,
tjmc.cancel_reason,
tjmc.cancel_reason,
ri."EQU_CODE" as equCode,
concat(date_format(IFNULL(inform_start, null),'%Y-%m-%d'),' ~ ',date_format(IFNULL(inform_end, null),'%Y-%m-%d')) as informStartAndEnd
concat(date_format(IFNULL(inform_start, null),'%Y-%m-%d'),' ~ ',date_format(IFNULL(inform_end, null),'%Y-%m-%d')) as informStartAndEnd,
(SELECT name from tz_equipment_category ec WHERE ec.code = ri.EQU_LIST) AS equList,
<!-- ri."EQU_CODE" as equCode,-->
(select name from tz_equipment_category ec WHERE ec.code = ri.EQU_CATEGORY) AS equCategory,
<!-- (SELECT name from tz_equipment_category ec WHERE ec.code = ri.EQU_LIST) AS equList,-->
(select name from tz_equipment_category ec WHERE ec.code = ri.EQU_DEFINE) AS equDefine
<!-- (select name from tz_equipment_category ec WHERE ec.code = ri.EQU_CATEGORY) AS equCategory,-->
<!-- (select name from tz_equipment_category ec WHERE ec.code = ri.EQU_DEFINE) AS equDefine-->
FROM
FROM
amos_tzs_biz.tzs_jg_maintenance_contract tjmc
amos_tzs_biz.tzs_jg_maintenance_contract tjmc
LEFT JOIN tzs_jg_maintenance_contract_eq tjmce ON tjmce.equip_transfer_id = tjmc.sequence_nbr
<!-- LEFT JOIN tzs_jg_maintenance_contract_eq tjmce ON tjmce.equip_transfer_id = tjmc.sequence_nbr-->
LEFT JOIN idx_biz_jg_register_info ri ON ri.record = tjmce.equ_id
<!-- LEFT JOIN idx_biz_jg_register_info ri ON ri.record = tjmce.equ_id-->
<where>
<where>
tjmc.is_delete = 0
tjmc.is_delete = 0
<if
test=
"contractDto.applyNo != '' and contractDto.applyNo != null"
>
<if
test=
"contractDto.applyNo != '' and contractDto.applyNo != null"
>
...
@@ -79,18 +80,18 @@
...
@@ -79,18 +80,18 @@
<if
test=
"contractDto.receiveOrgCode != '' and contractDto.receiveOrgCode != null"
>
<if
test=
"contractDto.receiveOrgCode != '' and contractDto.receiveOrgCode != null"
>
and tjmc.receive_org_code = #{contractDto.receiveOrgCode}
and tjmc.receive_org_code = #{contractDto.receiveOrgCode}
</if>
</if>
<if
test=
"contractDto.equList != null and contractDto.equList != ''"
>
<!-- <if test="contractDto.equList != null and contractDto.equList != ''">--
>
AND ri."EQU_LIST" = #{contractDto.equList}
<!-- AND ri."EQU_LIST" = #{contractDto.equList}-->
</if
>
<!-- </if>--
>
<if
test=
"contractDto.equCategory != null and contractDto.equCategory != ''"
>
<!-- <if test="contractDto.equCategory != null and contractDto.equCategory != ''">--
>
AND ri."equ_category" = #{contractDto.equCategory}
<!-- AND ri."equ_category" = #{contractDto.equCategory}-->
</if
>
<!-- </if>--
>
<if
test=
"contractDto.equDefine != null and contractDto.equDefine != ''"
>
<!-- <if test="contractDto.equDefine != null and contractDto.equDefine != ''">--
>
AND ri."EQU_DEFINE" = #{contractDto.equDefine}
<!-- AND ri."EQU_DEFINE" = #{contractDto.equDefine}-->
</if
>
<!-- </if>--
>
<if
test=
"contractDto.equCode != null and contractDto.equCode != ''"
>
<!-- <if test="contractDto.equCode != null and contractDto.equCode != ''">--
>
AND ri."EQU_CODE" like concat('%',#{contractDto.equCode},'%')
<!-- AND ri."EQU_CODE" like concat('%',#{contractDto.equCode},'%')-->
</if
>
<!-- </if>--
>
-- 数据过滤开始 ----------------------------------------------------
-- 数据过滤开始 ----------------------------------------------------
<!-- <choose>-->
<!-- <choose>-->
<!-- <when test="contractDto.useUnitCodeFilter != '' and contractDto.useUnitCodeFilter != null and-->
<!-- <when test="contractDto.useUnitCodeFilter != '' and contractDto.useUnitCodeFilter != null and-->
...
...
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