Commit da97a385 authored by zhengjiawei's avatar zhengjiawei

marger修复

parent 0adcd6e7
...@@ -86,14 +86,14 @@ ...@@ -86,14 +86,14 @@
</select> </select>
<select id="getFireEquiments" resultType="com.yeejoin.amos.fas.business.vo.EquipmentSpeVo"> <select id="getFireEquiments" resultType="com.yeejoin.amos.fas.business.vo.EquipmentSpeVo">
select select
sto.id as id , sto.equipment_specific_id as id ,
equ.code as f_code, equ.code as f_code,
det.name as f_name det.name as f_name
from from
wl_stock_detail as sto wl_stock_detail as sto
left join wl_equipment_detail as det on sto.equipment_detail_id = det.id left join wl_equipment_detail as det on sto.equipment_detail_id = det.id
left join wl_equipment as equ on det.equipment_id = equ.id left join wl_equipment as equ on det.equipment_id = equ.id
left join f_equipment_fire_equipment as fire on sto.id = fire.fire_equipment_id left join f_equipment_fire_equipment as fire on sto.equipment_specific_id = fire.fire_equipment_id
where sto.amount <![CDATA[>]]> 0 where sto.amount <![CDATA[>]]> 0
<if test="fname != null and fname!='null' "> <if test="fname != null and fname!='null' ">
and det.name like CONCAT('%',#{fname},'%' ) and det.name like CONCAT('%',#{fname},'%' )
...@@ -119,9 +119,9 @@ ...@@ -119,9 +119,9 @@
d.important_equipment_id = #{importantEquipId} ) isBound d.important_equipment_id = #{importantEquipId} ) isBound
from from
f_equipment_fire_equipment as fire f_equipment_fire_equipment as fire
left join wl_stock_detail as sto on fire.fire_equipment_id = sto.id left join wl_stock_detail as sto on fire.fire_equipment_id = sto.equipment_specific_id
left join wl_equipment_specific as spe on sto.qr_code = spe.qr_code left join wl_equipment_specific as spe on sto.qr_code = spe.qr_code
left join wl_equipment_specific_index as speind on spe.id = speind.equipment_specific_id left join wl_equipment_specific_index as speind on sto.equipment_specific_id = speind.equipment_specific_id
left join wl_equipment_index as equindex on speind.equipment_index_id = equindex.id left join wl_equipment_index as equindex on speind.equipment_index_id = equindex.id
where equindex.type_code ='BREAKDOWN' where equindex.type_code ='BREAKDOWN'
<if test="importantEquipId != null "> <if test="importantEquipId != null ">
......
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