|
|
|
@ -111,12 +111,14 @@
|
|
|
|
|
<if test="equipmentCategory != null and equipmentCategory != ''">and equipment_category =
|
|
|
|
|
#{equipmentCategory}
|
|
|
|
|
</if>
|
|
|
|
|
and del_flag = '0'
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectEquEquipmentByEquEquipmentCode" parameterType="String" resultMap="EquEquipmentResult">
|
|
|
|
|
<include refid="selectEquEquipmentVo"/>
|
|
|
|
|
where equipment_code = #{equipmentCode}
|
|
|
|
|
and del_flag = '0'
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertEquEquipment" parameterType="EquEquipment">
|
|
|
|
@ -272,6 +274,7 @@
|
|
|
|
|
from base_equipment
|
|
|
|
|
where del_flag = '0'
|
|
|
|
|
group by equipment_type_code,equipment_type_name
|
|
|
|
|
order by equipment_type_name desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectEquipmentGroupLine" resultMap="EquEquipmentResult">
|
|
|
|
@ -282,21 +285,32 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectEquipmentList" parameterType="EquEquipment" resultMap="EquEquipmentResult">
|
|
|
|
|
select be.equipment_code,be.equipment_name,be.equipment_type_code,be.equipment_type_name,be.workshop_name
|
|
|
|
|
select be.equipment_code,be.equipment_name,be.equipment_type_code,be.equipment_type_name,be.workshop_name,be.equipment_category
|
|
|
|
|
from base_equipment be
|
|
|
|
|
<where>
|
|
|
|
|
<if test="equipmentCode != null and equipmentCode != ''">and equipment_code like concat('%',
|
|
|
|
|
#{equipmentCode}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="equipmentName != null and equipmentName != ''">and equipment_name like concat('%',
|
|
|
|
|
#{equipmentName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="equipmentCode != null and equipmentCode != ''">and equipment_code like concat('%',#{equipmentCode}, '%')</if>
|
|
|
|
|
<if test="equipmentName != null and equipmentName != ''">and equipment_name like concat('%',#{equipmentName}, '%')</if>
|
|
|
|
|
<if test="equipmentTypeCode != null and equipmentTypeCode != ''">and equipment_type_code = #{equipmentTypeCode}</if>
|
|
|
|
|
and be.del_flag = '0'
|
|
|
|
|
and be.equipment_code in (select bae.auxiliary_equipment_code
|
|
|
|
|
from equ_bind_auxiliary_equipment bae
|
|
|
|
|
where bae.equipment_code = #{groupLine}
|
|
|
|
|
and be.equipment_code in
|
|
|
|
|
(select bae.auxiliary_equipment_code
|
|
|
|
|
from equ_bind_auxiliary_equipment bae
|
|
|
|
|
<where>
|
|
|
|
|
<if test="groupLine != null and groupLine != ''">and bae.equipment_code like concat('%',#{groupLine}, '%')</if>
|
|
|
|
|
</where>
|
|
|
|
|
)
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectGroupLineNullList" parameterType="EquEquipment" resultMap="EquEquipmentResult">
|
|
|
|
|
select be.equipment_code,be.equipment_name,be.equipment_type_code,be.equipment_type_name,be.workshop_name,be.equipment_category
|
|
|
|
|
from base_equipment be
|
|
|
|
|
<where>
|
|
|
|
|
<if test="equipmentCode != null and equipmentCode != ''">and equipment_code like concat('%',#{equipmentCode}, '%')</if>
|
|
|
|
|
<if test="equipmentTypeCode != null and equipmentTypeCode != ''">and equipment_type_code = #{equipmentTypeCode}</if>
|
|
|
|
|
<if test="equipmentName != null and equipmentName != ''">and equipment_name like concat('%',#{equipmentName}, '%')</if>
|
|
|
|
|
and be.del_flag = '0'
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|