|
|
|
@ -297,9 +297,9 @@
|
|
|
|
|
<select id="selectEquipmentList" parameterType="Equipment" resultMap="EquipmentResult">
|
|
|
|
|
<include refid="selectEquipmentVo"/>
|
|
|
|
|
<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="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>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
@ -323,4 +323,10 @@
|
|
|
|
|
from sys_factory
|
|
|
|
|
</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>
|
|
|
|
|