|
|
@ -297,9 +297,9 @@
|
|
|
|
<select id="selectEquipmentList" parameterType="Equipment" resultMap="EquipmentResult">
|
|
|
|
<select id="selectEquipmentList" parameterType="Equipment" resultMap="EquipmentResult">
|
|
|
|
<include refid="selectEquipmentVo"/>
|
|
|
|
<include refid="selectEquipmentVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="equipmentCode != null and equipmentCode != ''"> and equipment_code = #{equipmentCode}</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="equipmentName != null and equipmentName != ''"> and equipment_name like concat('%', #{equipmentName}, '%')</if>
|
|
|
|
<if test="equipmentTypeCode != null and equipmentTypeCode != ''"> and equipment_type_code = #{equipmentTypeCode}</if>
|
|
|
|
<if test="equipmentTypeCode != null and equipmentTypeCode != ''"> and equipment_type_code like concat('%', #{equipmentTypeCode}, '%')</if>
|
|
|
|
<if test="equipmentTypeName != null and equipmentTypeName != ''"> and equipment_type_name like concat('%', #{equipmentTypeName}, '%')</if>
|
|
|
|
<if test="equipmentTypeName != null and equipmentTypeName != ''"> and equipment_type_name like concat('%', #{equipmentTypeName}, '%')</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
@ -323,4 +323,10 @@
|
|
|
|
from sys_factory
|
|
|
|
from sys_factory
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getEquipmentTypeList" parameterType="Equipment" resultMap="EquipmentResult">
|
|
|
|
|
|
|
|
select equipment_type_code,equipment_type_name
|
|
|
|
|
|
|
|
from base_equipment
|
|
|
|
|
|
|
|
group by equipment_type_code,equipment_type_name
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|