|
@@ -1407,4 +1407,118 @@
|
|
|
group by A.net_spot3_no,
|
|
group by A.net_spot3_no,
|
|
|
A.net_spot3_name
|
|
A.net_spot3_name
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="queryall" parameterType="java.util.Map" resultMap="BaseResultMap">
|
|
|
|
|
+ <include refid="select"/>
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
|
|
+ and BASE_SPOT_NO LIKE '%${baseSpotNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME LIKE '%${baseSpotName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="spotTypeNo != null and spotTypeNo != ''">
|
|
|
|
|
+ and SPOT_TYPE_NO LIKE '%${spotTypeNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="spotTypeName != null and spotTypeName != ''">
|
|
|
|
|
+ and SPOT_TYPE_NAME LIKE '%${spotTypeName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="spotStateNo != null and spotStateNo != ''">
|
|
|
|
|
+ and SPOT_STATE_NO LIKE '%${spotStateNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="spotStateName != null and spotStateName != ''">
|
|
|
|
|
+ and SPOT_STATE_NAME LIKE '%${spotStateName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="videoIp != null and videoIp != ''">
|
|
|
|
|
+ and VIDEO_IP LIKE '%${videoIp}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="videoPort != null and videoPort != ''">
|
|
|
|
|
+ and VIDEO_PORT LIKE '%${videoPort}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="videoUserName != null and videoUserName != ''">
|
|
|
|
|
+ and VIDEO_USER_NAME LIKE '%${videoUserName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="videoPassword != null and videoPassword != ''">
|
|
|
|
|
+ and VIDEO_PASSWORD LIKE '%${videoPassword}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="ledIp != null and ledIp != ''">
|
|
|
|
|
+ and LED_IP LIKE '%${ledIp}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="printerIp != null and printerIp != ''">
|
|
|
|
|
+ and PRINTER_IP LIKE '%${printerIp}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="printerName != null and printerName != ''">
|
|
|
|
|
+ and PRINTER_NAME LIKE '%${printerName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="countNum != null">
|
|
|
|
|
+ and COUNT_NUM = #{countNum}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="usedNum != null">
|
|
|
|
|
+ and USED_NUM = #{usedNum}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="controlIp != null and controlIp != ''">
|
|
|
|
|
+ and CONTROL_IP LIKE '%${controlIp}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="validFlag != null and validFlag != ''">
|
|
|
|
|
+ and VALID_FLAG LIKE '%${validFlag}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManNo != null and createManNo != ''">
|
|
|
|
|
+ and CREATE_MAN_NO LIKE '%${createManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManName != null and createManName != ''">
|
|
|
|
|
+ and CREATE_MAN_NAME LIKE '%${createManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createTime != null">
|
|
|
|
|
+ and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
+ and UPDATE_MAN_NO LIKE '%${updateManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null and updateManName != ''">
|
|
|
|
|
+ and UPDATE_MAN_NAME LIKE '%${updateManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteManNo != null and deleteManNo != ''">
|
|
|
|
|
+ and DELETE_MAN_NO LIKE '%${deleteManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteManName != null and deleteManName != ''">
|
|
|
|
|
+ and DELETE_MAN_NAME LIKE '%${deleteManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteTime != null">
|
|
|
|
|
+ and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="flatComputerIp != null and flatComputerIp != ''">
|
|
|
|
|
+ and FLAT_COMPUTER_IP LIKE '%${flatComputerIp}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="mesSpotId != null and mesSpotId != ''">
|
|
|
|
|
+ and MES_SPOT_ID LIKE '%${mesSpotId}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="spotAreaNo != null and spotAreaNo != ''">
|
|
|
|
|
+ and SPOT_AREA_NO LIKE '%${spotAreaNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="spotAreaName != null and spotAreaName != ''">
|
|
|
|
|
+ and SPOT_AREA_NAME LIKE '%${spotAreaName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="allowedTareWeight != null and allowedTareWeight != ''">
|
|
|
|
|
+ and ALLOWED_TARE_WEIGHT LIKE '%${allowedTareWeight}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="scanRequireValid != null and scanRequireValid != ''">
|
|
|
|
|
+ and SCAN_REQUIRE_VALID LIKE '%${scanRequireValid}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="moxaIp != null and moxaIp != ''">
|
|
|
|
|
+ and MOXA_IP LIKE '%${moxaIp}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="plcIp != null and plcIp != ''">
|
|
|
|
|
+ and PLC_IP LIKE '%${plcIp}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="spotTypeNoStr != null and spotTypeNoStr != ''">
|
|
|
|
|
+ and SPOT_TYPE_NO in
|
|
|
|
|
+ <foreach collection="spotNoStr" item="item" open="(" separator="," close=")">
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|