|
|
@ -45,11 +45,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
|
|
|
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
|
|
|
and del_flag = '0'
|
|
|
|
and del_flag = '0'
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
|
|
|
|
ORDER BY CAST(RIGHT(fault_code, 4) AS INTEGER)
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectEquFaultReasonByFaultId" parameterType="String" resultMap="EquFaultReasonResult">
|
|
|
|
<select id="selectEquFaultReasonByFaultId" parameterType="String" resultMap="EquFaultReasonResult">
|
|
|
|
<include refid="selectEquFaultReasonVo"/>
|
|
|
|
<include refid="selectEquFaultReasonVo"/>
|
|
|
|
where fault_id = #{faultId}
|
|
|
|
where fault_id = #{faultId}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertEquFaultReason" parameterType="EquFaultReason">
|
|
|
|
<insert id="insertEquFaultReason" parameterType="EquFaultReason">
|
|
|
@ -122,6 +125,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<select id="selectSerialNumber" resultType="java.lang.Integer">
|
|
|
|
<select id="selectSerialNumber" resultType="java.lang.Integer">
|
|
|
|
SELECT COUNT(fault_id)+1 AS serialNum
|
|
|
|
SELECT COUNT(fault_id)+1 AS serialNum
|
|
|
|
FROM equ_fault_reason
|
|
|
|
FROM equ_fault_reason
|
|
|
|
WHERE CONVERT(date, GETDATE()) = CONVERT(date,create_time)
|
|
|
|
WHERE del_flag = '0'
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|