|
@@ -3427,4 +3427,39 @@
|
|
|
<include refid="whereLike"/>
|
|
<include refid="whereLike"/>
|
|
|
order By TRUST_DATE_TIME desc
|
|
order By TRUST_DATE_TIME desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="webLikeByDesc" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
|
|
+ <include refid="select"/>
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ <if test="carNo != null and carNo != ''">
|
|
|
|
|
+ and CAR_NO like '%${carNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NO = #{forwardingUnitNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null and forwardingUnitName != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NAME like '%${forwardingUnitName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintNo != null and receivingUintNo != ''">
|
|
|
|
|
+ and RECEIVING_UINT_NO = #{receivingUintNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintName != null and receivingUintName != ''">
|
|
|
|
|
+ and RECEIVING_UINT_NAME like '%${receivingUintName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialNo != null and materialNo != ''">
|
|
|
|
|
+ and MATERIAL_NO = #{materialNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialName != null and materialName != ''">
|
|
|
|
|
+ and MATERIAL_NAME like '%${materialName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterTypeNo != null and meterTypeNo != ''">
|
|
|
|
|
+ and METER_TYPE_NO = #{meterTypeNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterTypeName != null and meterTypeName != ''">
|
|
|
|
|
+ and METER_TYPE_NAME = #{meterTypeName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ and value_flag in ('1')
|
|
|
|
|
+ and TRUST_AVAILABILITY_TIME >= SYSDATE
|
|
|
|
|
+ order By TRUST_DATE_TIME desc
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|