Commit 0cd13ade authored by tianyiming's avatar tianyiming

维保备案列表取消查询设备相关信息

parent 70486a73
...@@ -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-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment