|
|
@@ -1497,1529 +1497,6 @@
|
|
|
</delete>
|
|
|
<!-- 友情提示!!!-->
|
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
- <resultMap id="BaseResultMap" type="com.steerinfo.meterwork.meterworkmonitor.model.MeterWorkMonitor">
|
|
|
- <id column="POINT_NO" jdbcType="VARCHAR" property="pointNo" />
|
|
|
- <result column="POINT_NAME" jdbcType="VARCHAR" property="pointName" />
|
|
|
- <result column="VALID_WGT" jdbcType="VARCHAR" property="validWgt" />
|
|
|
- <result column="VALID_CARNO" jdbcType="VARCHAR" property="validCarno" />
|
|
|
- <result column="VALID_TARE_TIME" jdbcType="VARCHAR" property="validTareTime" />
|
|
|
- <result column="VALID_TIME_INTERVAL" jdbcType="VARCHAR" property="validTimeInterval" />
|
|
|
- <result column="VALID_PARK_STATUS" jdbcType="VARCHAR" property="validParkStatus" />
|
|
|
- <result column="VALID_EXCEED_WGT" jdbcType="VARCHAR" property="validExceedWgt" />
|
|
|
- <result column="VALID_PREDICTION_DIFF" jdbcType="VARCHAR" property="validPredictionDiff" />
|
|
|
- <result column="VALID_FLAG" jdbcType="VARCHAR" property="validFlag" />
|
|
|
- <result column="VALID_MAT_TIME" jdbcType="VARCHAR" property="validMatTime" />
|
|
|
- <result column="CAR_MONITOR" jdbcType="VARCHAR" property="carMonitor" />
|
|
|
- <result column="CAR_MONITOR_LVL" jdbcType="DECIMAL" property="carMonitorLvl" />
|
|
|
- <result column="IS_HELP" jdbcType="VARCHAR" property="isHelp" />
|
|
|
- <result column="IS_TAKE_OVER" jdbcType="VARCHAR" property="isTakeOver" />
|
|
|
- <result column="LED_WRITER" jdbcType="VARCHAR" property="ledWriter" />
|
|
|
- <result column="PRINT_NUM" jdbcType="DECIMAL" property="printNum" />
|
|
|
- <result column="COLLECTION_CODE" jdbcType="VARCHAR" property="collectionCode" />
|
|
|
- <result column="IS_OVER_WGT" jdbcType="VARCHAR" property="isOverWgt" />
|
|
|
- <result column="USER_NO" jdbcType="VARCHAR" property="userNo" />
|
|
|
- <result column="MONITOR_USER_NO" jdbcType="VARCHAR" property="monitorUserNo" />
|
|
|
- <result column="SET_CAR" jdbcType="VARCHAR" property="setCar" />
|
|
|
- <result column="LED_KEEP" jdbcType="VARCHAR" property="ledKeep" />
|
|
|
- <result column="RFID_CAR" jdbcType="VARCHAR" property="rfidCar" />
|
|
|
- <result column="PHOTO_CAR" jdbcType="VARCHAR" property="photoCar" />
|
|
|
- <result column="SCAN_CAR" jdbcType="VARCHAR" property="scanCar" />
|
|
|
- <result column="EDIT_CAR" jdbcType="VARCHAR" property="editCar" />
|
|
|
- <result column="CAR_ERR" jdbcType="VARCHAR" property="carErr" />
|
|
|
- <result column="WGT_ERR" jdbcType="VARCHAR" property="wgtErr" />
|
|
|
- <result column="LAST_TIME" jdbcType="TIMESTAMP" property="lastTime" />
|
|
|
- <result column="STOP_OVER_TIME" jdbcType="VARCHAR" property="stopOverTime" />
|
|
|
- <result column="MSG_INFO" jdbcType="VARCHAR" property="msgInfo" />
|
|
|
- <result column="WGT" jdbcType="DECIMAL" property="wgt" />
|
|
|
- <result column="IS_REMOTE" jdbcType="VARCHAR" property="isRemote" />
|
|
|
- <result column="WEIGH_INSTRUMENT_MODEL" jdbcType="VARCHAR" property="weighInstrumentModel" />
|
|
|
- <result column="WEIGH_INSTRUMENT_PARAM" jdbcType="VARCHAR" property="weighInstrumentParam" />
|
|
|
- <result column="MOXA_IP" jdbcType="VARCHAR" property="moxaIp" />
|
|
|
- <result column="MOXA_PORT" jdbcType="VARCHAR" property="moxaPort" />
|
|
|
- <result column="VALID_LIANDA" jdbcType="VARCHAR" property="validLianda" />
|
|
|
- <result column="IS_OPEN_SCANNING" jdbcType="VARCHAR" property="isOpenScanning" />
|
|
|
- <result column="VALID_IS_PRE" jdbcType="VARCHAR" property="validIsPre" />
|
|
|
- <result column="USER_IP" jdbcType="VARCHAR" property="userIp" />
|
|
|
- <result column="POWER_STATE" jdbcType="VARCHAR" property="powerState" />
|
|
|
- <result column="DVR_STATE" jdbcType="VARCHAR" property="dvrState" />
|
|
|
- <result column="MOXA_STATE" jdbcType="VARCHAR" property="moxaState" />
|
|
|
- <result column="PLC_STATE" jdbcType="VARCHAR" property="plcState" />
|
|
|
- <result column="LEFT_INFRARED_RAY_STATE" jdbcType="VARCHAR" property="leftInfraredRayState" />
|
|
|
- <result column="RIGHT_INFRARED_RAY_STATE" jdbcType="VARCHAR" property="rightInfraredRayState" />
|
|
|
- <result column="AMPLIFIER_STATE" jdbcType="VARCHAR" property="amplifierState" />
|
|
|
- <result column="LAMP_STATE" jdbcType="VARCHAR" property="lampState" />
|
|
|
- <result column="SPOT_TYPE_NO" jdbcType="VARCHAR" property="spotTypeNo" />
|
|
|
- <result column="RED_GREEN_LIGHT_STATE" jdbcType="VARCHAR" property="redGreenLightState" />
|
|
|
- <result column="FRONT_INFRARED_RAY_STATE" jdbcType="VARCHAR" property="frontInfraredRayState" />
|
|
|
- <result column="REAR_INFRARED_RAY_STATE" jdbcType="VARCHAR" property="rearInfraredRayState" />
|
|
|
- <result column="RFID_STATE" jdbcType="VARCHAR" property="rfidState" />
|
|
|
- <result column="VALID_AREA" jdbcType="VARCHAR" property="validArea" />
|
|
|
- </resultMap>
|
|
|
- <sql id="columns">
|
|
|
- POINT_NO, POINT_NAME, VALID_WGT, VALID_CARNO, VALID_TARE_TIME, VALID_TIME_INTERVAL,
|
|
|
- VALID_PARK_STATUS, VALID_EXCEED_WGT, VALID_PREDICTION_DIFF, VALID_FLAG, VALID_MAT_TIME,
|
|
|
- CAR_MONITOR, CAR_MONITOR_LVL, IS_HELP, IS_TAKE_OVER, LED_WRITER, PRINT_NUM, COLLECTION_CODE,
|
|
|
- IS_OVER_WGT, USER_NO, MONITOR_USER_NO, SET_CAR, LED_KEEP, RFID_CAR, PHOTO_CAR, SCAN_CAR,
|
|
|
- EDIT_CAR, CAR_ERR, WGT_ERR, LAST_TIME, STOP_OVER_TIME, MSG_INFO, WGT, IS_REMOTE,
|
|
|
- WEIGH_INSTRUMENT_MODEL, WEIGH_INSTRUMENT_PARAM, MOXA_IP, MOXA_PORT, VALID_LIANDA,
|
|
|
- IS_OPEN_SCANNING, VALID_IS_PRE, USER_IP, POWER_STATE, DVR_STATE, MOXA_STATE, PLC_STATE,
|
|
|
- LEFT_INFRARED_RAY_STATE, RIGHT_INFRARED_RAY_STATE, AMPLIFIER_STATE, LAMP_STATE, SPOT_TYPE_NO,
|
|
|
- RED_GREEN_LIGHT_STATE, FRONT_INFRARED_RAY_STATE, REAR_INFRARED_RAY_STATE, RFID_STATE,
|
|
|
- VALID_AREA
|
|
|
- </sql>
|
|
|
- <sql id="columns_alias">
|
|
|
- t.POINT_NO, t.POINT_NAME, t.VALID_WGT, t.VALID_CARNO, t.VALID_TARE_TIME, t.VALID_TIME_INTERVAL,
|
|
|
- t.VALID_PARK_STATUS, t.VALID_EXCEED_WGT, t.VALID_PREDICTION_DIFF, t.VALID_FLAG, t.VALID_MAT_TIME,
|
|
|
- t.CAR_MONITOR, t.CAR_MONITOR_LVL, t.IS_HELP, t.IS_TAKE_OVER, t.LED_WRITER, t.PRINT_NUM,
|
|
|
- t.COLLECTION_CODE, t.IS_OVER_WGT, t.USER_NO, t.MONITOR_USER_NO, t.SET_CAR, t.LED_KEEP,
|
|
|
- t.RFID_CAR, t.PHOTO_CAR, t.SCAN_CAR, t.EDIT_CAR, t.CAR_ERR, t.WGT_ERR, t.LAST_TIME,
|
|
|
- t.STOP_OVER_TIME, t.MSG_INFO, t.WGT, t.IS_REMOTE, t.WEIGH_INSTRUMENT_MODEL, t.WEIGH_INSTRUMENT_PARAM,
|
|
|
- t.MOXA_IP, t.MOXA_PORT, t.VALID_LIANDA, t.IS_OPEN_SCANNING, t.VALID_IS_PRE, t.USER_IP,
|
|
|
- t.POWER_STATE, t.DVR_STATE, t.MOXA_STATE, t.PLC_STATE, t.LEFT_INFRARED_RAY_STATE,
|
|
|
- t.RIGHT_INFRARED_RAY_STATE, t.AMPLIFIER_STATE, t.LAMP_STATE, t.SPOT_TYPE_NO, t.RED_GREEN_LIGHT_STATE,
|
|
|
- t.FRONT_INFRARED_RAY_STATE, t.REAR_INFRARED_RAY_STATE, t.RFID_STATE, t.VALID_AREA
|
|
|
- </sql>
|
|
|
- <sql id="select">
|
|
|
- SELECT <include refid="columns" /> FROM METER_WORK_MONITOR
|
|
|
- </sql>
|
|
|
- <sql id="select_alias">
|
|
|
- SELECT <include refid="columns_alias" /> FROM METER_WORK_MONITOR t
|
|
|
- </sql>
|
|
|
- <sql id="where">
|
|
|
- <where>
|
|
|
- <if test="pointNo != null and pointNo != ''">
|
|
|
- and POINT_NO = #{pointNo}
|
|
|
- </if>
|
|
|
- <if test="pointName != null and pointName != ''">
|
|
|
- and POINT_NAME = #{pointName}
|
|
|
- </if>
|
|
|
- <if test="validWgt != null and validWgt != ''">
|
|
|
- and VALID_WGT = #{validWgt}
|
|
|
- </if>
|
|
|
- <if test="validCarno != null and validCarno != ''">
|
|
|
- and VALID_CARNO = #{validCarno}
|
|
|
- </if>
|
|
|
- <if test="validTareTime != null and validTareTime != ''">
|
|
|
- and VALID_TARE_TIME = #{validTareTime}
|
|
|
- </if>
|
|
|
- <if test="validTimeInterval != null and validTimeInterval != ''">
|
|
|
- and VALID_TIME_INTERVAL = #{validTimeInterval}
|
|
|
- </if>
|
|
|
- <if test="validParkStatus != null and validParkStatus != ''">
|
|
|
- and VALID_PARK_STATUS = #{validParkStatus}
|
|
|
- </if>
|
|
|
- <if test="validExceedWgt != null and validExceedWgt != ''">
|
|
|
- and VALID_EXCEED_WGT = #{validExceedWgt}
|
|
|
- </if>
|
|
|
- <if test="validPredictionDiff != null and validPredictionDiff != ''">
|
|
|
- and VALID_PREDICTION_DIFF = #{validPredictionDiff}
|
|
|
- </if>
|
|
|
- <if test="validFlag != null and validFlag != ''">
|
|
|
- and VALID_FLAG = #{validFlag}
|
|
|
- </if>
|
|
|
- <if test="validMatTime != null and validMatTime != ''">
|
|
|
- and VALID_MAT_TIME = #{validMatTime}
|
|
|
- </if>
|
|
|
- <if test="carMonitor != null and carMonitor != ''">
|
|
|
- and CAR_MONITOR = #{carMonitor}
|
|
|
- </if>
|
|
|
- <if test="carMonitorLvl != null">
|
|
|
- and CAR_MONITOR_LVL = #{carMonitorLvl}
|
|
|
- </if>
|
|
|
- <if test="isHelp != null and isHelp != ''">
|
|
|
- and IS_HELP = #{isHelp}
|
|
|
- </if>
|
|
|
- <if test="isTakeOver != null and isTakeOver != ''">
|
|
|
- and IS_TAKE_OVER = #{isTakeOver}
|
|
|
- </if>
|
|
|
- <if test="ledWriter != null and ledWriter != ''">
|
|
|
- and LED_WRITER = #{ledWriter}
|
|
|
- </if>
|
|
|
- <if test="printNum != null">
|
|
|
- and PRINT_NUM = #{printNum}
|
|
|
- </if>
|
|
|
- <if test="collectionCode != null and collectionCode != ''">
|
|
|
- and COLLECTION_CODE = #{collectionCode}
|
|
|
- </if>
|
|
|
- <if test="isOverWgt != null and isOverWgt != ''">
|
|
|
- and IS_OVER_WGT = #{isOverWgt}
|
|
|
- </if>
|
|
|
- <if test="userNo != null and userNo != ''">
|
|
|
- and USER_NO = #{userNo}
|
|
|
- </if>
|
|
|
- <if test="monitorUserNo != null and monitorUserNo != ''">
|
|
|
- and MONITOR_USER_NO = #{monitorUserNo}
|
|
|
- </if>
|
|
|
- <if test="setCar != null and setCar != ''">
|
|
|
- and SET_CAR = #{setCar}
|
|
|
- </if>
|
|
|
- <if test="ledKeep != null and ledKeep != ''">
|
|
|
- and LED_KEEP = #{ledKeep}
|
|
|
- </if>
|
|
|
- <if test="rfidCar != null and rfidCar != ''">
|
|
|
- and RFID_CAR = #{rfidCar}
|
|
|
- </if>
|
|
|
- <if test="photoCar != null and photoCar != ''">
|
|
|
- and PHOTO_CAR = #{photoCar}
|
|
|
- </if>
|
|
|
- <if test="scanCar != null and scanCar != ''">
|
|
|
- and SCAN_CAR = #{scanCar}
|
|
|
- </if>
|
|
|
- <if test="editCar != null and editCar != ''">
|
|
|
- and EDIT_CAR = #{editCar}
|
|
|
- </if>
|
|
|
- <if test="carErr != null and carErr != ''">
|
|
|
- and CAR_ERR = #{carErr}
|
|
|
- </if>
|
|
|
- <if test="wgtErr != null and wgtErr != ''">
|
|
|
- and WGT_ERR = #{wgtErr}
|
|
|
- </if>
|
|
|
- <if test="lastTime != null">
|
|
|
- and TO_CHAR(LAST_TIME,'yyyy-MM-dd') = #{lastTime}
|
|
|
- </if>
|
|
|
- <if test="stopOverTime != null and stopOverTime != ''">
|
|
|
- and STOP_OVER_TIME = #{stopOverTime}
|
|
|
- </if>
|
|
|
- <if test="msgInfo != null and msgInfo != ''">
|
|
|
- and MSG_INFO = #{msgInfo}
|
|
|
- </if>
|
|
|
- <if test="wgt != null">
|
|
|
- and WGT = #{wgt}
|
|
|
- </if>
|
|
|
- <if test="isRemote != null and isRemote != ''">
|
|
|
- and IS_REMOTE = #{isRemote}
|
|
|
- </if>
|
|
|
- <if test="weighInstrumentModel != null and weighInstrumentModel != ''">
|
|
|
- and WEIGH_INSTRUMENT_MODEL = #{weighInstrumentModel}
|
|
|
- </if>
|
|
|
- <if test="weighInstrumentParam != null and weighInstrumentParam != ''">
|
|
|
- and WEIGH_INSTRUMENT_PARAM = #{weighInstrumentParam}
|
|
|
- </if>
|
|
|
- <if test="moxaIp != null and moxaIp != ''">
|
|
|
- and MOXA_IP = #{moxaIp}
|
|
|
- </if>
|
|
|
- <if test="moxaPort != null and moxaPort != ''">
|
|
|
- and MOXA_PORT = #{moxaPort}
|
|
|
- </if>
|
|
|
- <if test="validLianda != null and validLianda != ''">
|
|
|
- and VALID_LIANDA = #{validLianda}
|
|
|
- </if>
|
|
|
- <if test="isOpenScanning != null and isOpenScanning != ''">
|
|
|
- and IS_OPEN_SCANNING = #{isOpenScanning}
|
|
|
- </if>
|
|
|
- <if test="validIsPre != null and validIsPre != ''">
|
|
|
- and VALID_IS_PRE = #{validIsPre}
|
|
|
- </if>
|
|
|
- <if test="userIp != null and userIp != ''">
|
|
|
- and USER_IP = #{userIp}
|
|
|
- </if>
|
|
|
- <if test="powerState != null and powerState != ''">
|
|
|
- and POWER_STATE = #{powerState}
|
|
|
- </if>
|
|
|
- <if test="dvrState != null and dvrState != ''">
|
|
|
- and DVR_STATE = #{dvrState}
|
|
|
- </if>
|
|
|
- <if test="moxaState != null and moxaState != ''">
|
|
|
- and MOXA_STATE = #{moxaState}
|
|
|
- </if>
|
|
|
- <if test="plcState != null and plcState != ''">
|
|
|
- and PLC_STATE = #{plcState}
|
|
|
- </if>
|
|
|
- <if test="leftInfraredRayState != null and leftInfraredRayState != ''">
|
|
|
- and LEFT_INFRARED_RAY_STATE = #{leftInfraredRayState}
|
|
|
- </if>
|
|
|
- <if test="rightInfraredRayState != null and rightInfraredRayState != ''">
|
|
|
- and RIGHT_INFRARED_RAY_STATE = #{rightInfraredRayState}
|
|
|
- </if>
|
|
|
- <if test="amplifierState != null and amplifierState != ''">
|
|
|
- and AMPLIFIER_STATE = #{amplifierState}
|
|
|
- </if>
|
|
|
- <if test="lampState != null and lampState != ''">
|
|
|
- and LAMP_STATE = #{lampState}
|
|
|
- </if>
|
|
|
- <if test="spotTypeNo != null and spotTypeNo != ''">
|
|
|
- and SPOT_TYPE_NO = #{spotTypeNo}
|
|
|
- </if>
|
|
|
- <if test="redGreenLightState != null and redGreenLightState != ''">
|
|
|
- and RED_GREEN_LIGHT_STATE = #{redGreenLightState}
|
|
|
- </if>
|
|
|
- <if test="frontInfraredRayState != null and frontInfraredRayState != ''">
|
|
|
- and FRONT_INFRARED_RAY_STATE = #{frontInfraredRayState}
|
|
|
- </if>
|
|
|
- <if test="rearInfraredRayState != null and rearInfraredRayState != ''">
|
|
|
- and REAR_INFRARED_RAY_STATE = #{rearInfraredRayState}
|
|
|
- </if>
|
|
|
- <if test="rfidState != null and rfidState != ''">
|
|
|
- and RFID_STATE = #{rfidState}
|
|
|
- </if>
|
|
|
- <if test="validArea != null and validArea != ''">
|
|
|
- and VALID_AREA = #{validArea}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- </sql>
|
|
|
- <sql id="whereLike">
|
|
|
- <where>
|
|
|
- <if test="pointNo != null and pointNo != ''">
|
|
|
- and POINT_NO LIKE '%${pointNo}%'
|
|
|
- </if>
|
|
|
- <if test="pointName != null and pointName != ''">
|
|
|
- and POINT_NAME LIKE '%${pointName}%'
|
|
|
- </if>
|
|
|
- <if test="validWgt != null and validWgt != ''">
|
|
|
- and VALID_WGT LIKE '%${validWgt}%'
|
|
|
- </if>
|
|
|
- <if test="validCarno != null and validCarno != ''">
|
|
|
- and VALID_CARNO LIKE '%${validCarno}%'
|
|
|
- </if>
|
|
|
- <if test="validTareTime != null and validTareTime != ''">
|
|
|
- and VALID_TARE_TIME LIKE '%${validTareTime}%'
|
|
|
- </if>
|
|
|
- <if test="validTimeInterval != null and validTimeInterval != ''">
|
|
|
- and VALID_TIME_INTERVAL LIKE '%${validTimeInterval}%'
|
|
|
- </if>
|
|
|
- <if test="validParkStatus != null and validParkStatus != ''">
|
|
|
- and VALID_PARK_STATUS LIKE '%${validParkStatus}%'
|
|
|
- </if>
|
|
|
- <if test="validExceedWgt != null and validExceedWgt != ''">
|
|
|
- and VALID_EXCEED_WGT LIKE '%${validExceedWgt}%'
|
|
|
- </if>
|
|
|
- <if test="validPredictionDiff != null and validPredictionDiff != ''">
|
|
|
- and VALID_PREDICTION_DIFF LIKE '%${validPredictionDiff}%'
|
|
|
- </if>
|
|
|
- <if test="validFlag != null and validFlag != ''">
|
|
|
- and VALID_FLAG LIKE '%${validFlag}%'
|
|
|
- </if>
|
|
|
- <if test="validMatTime != null and validMatTime != ''">
|
|
|
- and VALID_MAT_TIME LIKE '%${validMatTime}%'
|
|
|
- </if>
|
|
|
- <if test="carMonitor != null and carMonitor != ''">
|
|
|
- and CAR_MONITOR LIKE '%${carMonitor}%'
|
|
|
- </if>
|
|
|
- <if test="carMonitorLvl != null">
|
|
|
- and CAR_MONITOR_LVL = #{carMonitorLvl}
|
|
|
- </if>
|
|
|
- <if test="isHelp != null and isHelp != ''">
|
|
|
- and IS_HELP LIKE '%${isHelp}%'
|
|
|
- </if>
|
|
|
- <if test="isTakeOver != null and isTakeOver != ''">
|
|
|
- and IS_TAKE_OVER LIKE '%${isTakeOver}%'
|
|
|
- </if>
|
|
|
- <if test="ledWriter != null and ledWriter != ''">
|
|
|
- and LED_WRITER LIKE '%${ledWriter}%'
|
|
|
- </if>
|
|
|
- <if test="printNum != null">
|
|
|
- and PRINT_NUM = #{printNum}
|
|
|
- </if>
|
|
|
- <if test="collectionCode != null and collectionCode != ''">
|
|
|
- and COLLECTION_CODE LIKE '%${collectionCode}%'
|
|
|
- </if>
|
|
|
- <if test="isOverWgt != null and isOverWgt != ''">
|
|
|
- and IS_OVER_WGT LIKE '%${isOverWgt}%'
|
|
|
- </if>
|
|
|
- <if test="userNo != null and userNo != ''">
|
|
|
- and USER_NO LIKE '%${userNo}%'
|
|
|
- </if>
|
|
|
- <if test="monitorUserNo != null and monitorUserNo != ''">
|
|
|
- and MONITOR_USER_NO LIKE '%${monitorUserNo}%'
|
|
|
- </if>
|
|
|
- <if test="setCar != null and setCar != ''">
|
|
|
- and SET_CAR LIKE '%${setCar}%'
|
|
|
- </if>
|
|
|
- <if test="ledKeep != null and ledKeep != ''">
|
|
|
- and LED_KEEP LIKE '%${ledKeep}%'
|
|
|
- </if>
|
|
|
- <if test="rfidCar != null and rfidCar != ''">
|
|
|
- and RFID_CAR LIKE '%${rfidCar}%'
|
|
|
- </if>
|
|
|
- <if test="photoCar != null and photoCar != ''">
|
|
|
- and PHOTO_CAR LIKE '%${photoCar}%'
|
|
|
- </if>
|
|
|
- <if test="scanCar != null and scanCar != ''">
|
|
|
- and SCAN_CAR LIKE '%${scanCar}%'
|
|
|
- </if>
|
|
|
- <if test="editCar != null and editCar != ''">
|
|
|
- and EDIT_CAR LIKE '%${editCar}%'
|
|
|
- </if>
|
|
|
- <if test="carErr != null and carErr != ''">
|
|
|
- and CAR_ERR LIKE '%${carErr}%'
|
|
|
- </if>
|
|
|
- <if test="wgtErr != null and wgtErr != ''">
|
|
|
- and WGT_ERR LIKE '%${wgtErr}%'
|
|
|
- </if>
|
|
|
- <if test="lastTime != null">
|
|
|
- and TO_CHAR(LAST_TIME,'yyyy-MM-dd') = #{lastTime}
|
|
|
- </if>
|
|
|
- <if test="stopOverTime != null and stopOverTime != ''">
|
|
|
- and STOP_OVER_TIME LIKE '%${stopOverTime}%'
|
|
|
- </if>
|
|
|
- <if test="msgInfo != null and msgInfo != ''">
|
|
|
- and MSG_INFO LIKE '%${msgInfo}%'
|
|
|
- </if>
|
|
|
- <if test="wgt != null">
|
|
|
- and WGT = #{wgt}
|
|
|
- </if>
|
|
|
- <if test="isRemote != null and isRemote != ''">
|
|
|
- and IS_REMOTE LIKE '%${isRemote}%'
|
|
|
- </if>
|
|
|
- <if test="weighInstrumentModel != null and weighInstrumentModel != ''">
|
|
|
- and WEIGH_INSTRUMENT_MODEL LIKE '%${weighInstrumentModel}%'
|
|
|
- </if>
|
|
|
- <if test="weighInstrumentParam != null and weighInstrumentParam != ''">
|
|
|
- and WEIGH_INSTRUMENT_PARAM LIKE '%${weighInstrumentParam}%'
|
|
|
- </if>
|
|
|
- <if test="moxaIp != null and moxaIp != ''">
|
|
|
- and MOXA_IP LIKE '%${moxaIp}%'
|
|
|
- </if>
|
|
|
- <if test="moxaPort != null and moxaPort != ''">
|
|
|
- and MOXA_PORT LIKE '%${moxaPort}%'
|
|
|
- </if>
|
|
|
- <if test="validLianda != null and validLianda != ''">
|
|
|
- and VALID_LIANDA LIKE '%${validLianda}%'
|
|
|
- </if>
|
|
|
- <if test="isOpenScanning != null and isOpenScanning != ''">
|
|
|
- and IS_OPEN_SCANNING LIKE '%${isOpenScanning}%'
|
|
|
- </if>
|
|
|
- <if test="validIsPre != null and validIsPre != ''">
|
|
|
- and VALID_IS_PRE LIKE '%${validIsPre}%'
|
|
|
- </if>
|
|
|
- <if test="userIp != null and userIp != ''">
|
|
|
- and USER_IP LIKE '%${userIp}%'
|
|
|
- </if>
|
|
|
- <if test="powerState != null and powerState != ''">
|
|
|
- and POWER_STATE LIKE '%${powerState}%'
|
|
|
- </if>
|
|
|
- <if test="dvrState != null and dvrState != ''">
|
|
|
- and DVR_STATE LIKE '%${dvrState}%'
|
|
|
- </if>
|
|
|
- <if test="moxaState != null and moxaState != ''">
|
|
|
- and MOXA_STATE LIKE '%${moxaState}%'
|
|
|
- </if>
|
|
|
- <if test="plcState != null and plcState != ''">
|
|
|
- and PLC_STATE LIKE '%${plcState}%'
|
|
|
- </if>
|
|
|
- <if test="leftInfraredRayState != null and leftInfraredRayState != ''">
|
|
|
- and LEFT_INFRARED_RAY_STATE LIKE '%${leftInfraredRayState}%'
|
|
|
- </if>
|
|
|
- <if test="rightInfraredRayState != null and rightInfraredRayState != ''">
|
|
|
- and RIGHT_INFRARED_RAY_STATE LIKE '%${rightInfraredRayState}%'
|
|
|
- </if>
|
|
|
- <if test="amplifierState != null and amplifierState != ''">
|
|
|
- and AMPLIFIER_STATE LIKE '%${amplifierState}%'
|
|
|
- </if>
|
|
|
- <if test="lampState != null and lampState != ''">
|
|
|
- and LAMP_STATE LIKE '%${lampState}%'
|
|
|
- </if>
|
|
|
- <if test="spotTypeNo != null and spotTypeNo != ''">
|
|
|
- and SPOT_TYPE_NO LIKE '%${spotTypeNo}%'
|
|
|
- </if>
|
|
|
- <if test="redGreenLightState != null and redGreenLightState != ''">
|
|
|
- and RED_GREEN_LIGHT_STATE LIKE '%${redGreenLightState}%'
|
|
|
- </if>
|
|
|
- <if test="frontInfraredRayState != null and frontInfraredRayState != ''">
|
|
|
- and FRONT_INFRARED_RAY_STATE LIKE '%${frontInfraredRayState}%'
|
|
|
- </if>
|
|
|
- <if test="rearInfraredRayState != null and rearInfraredRayState != ''">
|
|
|
- and REAR_INFRARED_RAY_STATE LIKE '%${rearInfraredRayState}%'
|
|
|
- </if>
|
|
|
- <if test="rfidState != null and rfidState != ''">
|
|
|
- and RFID_STATE LIKE '%${rfidState}%'
|
|
|
- </if>
|
|
|
- <if test="validArea != null and validArea != ''">
|
|
|
- and VALID_AREA LIKE '%${validArea}%'
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- </sql>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
- delete from METER_WORK_MONITOR
|
|
|
- where POINT_NO = #{pointNo,jdbcType=VARCHAR}
|
|
|
- </delete>
|
|
|
- <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
- delete from METER_WORK_MONITOR
|
|
|
- where 1!=1
|
|
|
- <if test="pointName != null and pointName != ''">
|
|
|
- or POINT_NAME = #{pointName}
|
|
|
- </if>
|
|
|
- <if test="validWgt != null and validWgt != ''">
|
|
|
- or VALID_WGT = #{validWgt}
|
|
|
- </if>
|
|
|
- <if test="validCarno != null and validCarno != ''">
|
|
|
- or VALID_CARNO = #{validCarno}
|
|
|
- </if>
|
|
|
- <if test="validTareTime != null and validTareTime != ''">
|
|
|
- or VALID_TARE_TIME = #{validTareTime}
|
|
|
- </if>
|
|
|
- <if test="validTimeInterval != null and validTimeInterval != ''">
|
|
|
- or VALID_TIME_INTERVAL = #{validTimeInterval}
|
|
|
- </if>
|
|
|
- <if test="validParkStatus != null and validParkStatus != ''">
|
|
|
- or VALID_PARK_STATUS = #{validParkStatus}
|
|
|
- </if>
|
|
|
- <if test="validExceedWgt != null and validExceedWgt != ''">
|
|
|
- or VALID_EXCEED_WGT = #{validExceedWgt}
|
|
|
- </if>
|
|
|
- <if test="validPredictionDiff != null and validPredictionDiff != ''">
|
|
|
- or VALID_PREDICTION_DIFF = #{validPredictionDiff}
|
|
|
- </if>
|
|
|
- <if test="validFlag != null and validFlag != ''">
|
|
|
- or VALID_FLAG = #{validFlag}
|
|
|
- </if>
|
|
|
- <if test="validMatTime != null and validMatTime != ''">
|
|
|
- or VALID_MAT_TIME = #{validMatTime}
|
|
|
- </if>
|
|
|
- <if test="carMonitor != null and carMonitor != ''">
|
|
|
- or CAR_MONITOR = #{carMonitor}
|
|
|
- </if>
|
|
|
- <if test="carMonitorLvl != null">
|
|
|
- or CAR_MONITOR_LVL = #{carMonitorLvl}
|
|
|
- </if>
|
|
|
- <if test="isHelp != null and isHelp != ''">
|
|
|
- or IS_HELP = #{isHelp}
|
|
|
- </if>
|
|
|
- <if test="isTakeOver != null and isTakeOver != ''">
|
|
|
- or IS_TAKE_OVER = #{isTakeOver}
|
|
|
- </if>
|
|
|
- <if test="ledWriter != null and ledWriter != ''">
|
|
|
- or LED_WRITER = #{ledWriter}
|
|
|
- </if>
|
|
|
- <if test="printNum != null">
|
|
|
- or PRINT_NUM = #{printNum}
|
|
|
- </if>
|
|
|
- <if test="collectionCode != null and collectionCode != ''">
|
|
|
- or COLLECTION_CODE = #{collectionCode}
|
|
|
- </if>
|
|
|
- <if test="isOverWgt != null and isOverWgt != ''">
|
|
|
- or IS_OVER_WGT = #{isOverWgt}
|
|
|
- </if>
|
|
|
- <if test="userNo != null and userNo != ''">
|
|
|
- or USER_NO = #{userNo}
|
|
|
- </if>
|
|
|
- <if test="monitorUserNo != null and monitorUserNo != ''">
|
|
|
- or MONITOR_USER_NO = #{monitorUserNo}
|
|
|
- </if>
|
|
|
- <if test="setCar != null and setCar != ''">
|
|
|
- or SET_CAR = #{setCar}
|
|
|
- </if>
|
|
|
- <if test="ledKeep != null and ledKeep != ''">
|
|
|
- or LED_KEEP = #{ledKeep}
|
|
|
- </if>
|
|
|
- <if test="rfidCar != null and rfidCar != ''">
|
|
|
- or RFID_CAR = #{rfidCar}
|
|
|
- </if>
|
|
|
- <if test="photoCar != null and photoCar != ''">
|
|
|
- or PHOTO_CAR = #{photoCar}
|
|
|
- </if>
|
|
|
- <if test="scanCar != null and scanCar != ''">
|
|
|
- or SCAN_CAR = #{scanCar}
|
|
|
- </if>
|
|
|
- <if test="editCar != null and editCar != ''">
|
|
|
- or EDIT_CAR = #{editCar}
|
|
|
- </if>
|
|
|
- <if test="carErr != null and carErr != ''">
|
|
|
- or CAR_ERR = #{carErr}
|
|
|
- </if>
|
|
|
- <if test="wgtErr != null and wgtErr != ''">
|
|
|
- or WGT_ERR = #{wgtErr}
|
|
|
- </if>
|
|
|
- <if test="lastTime != null">
|
|
|
- or TO_CHAR(LAST_TIME,'yyyy-MM-dd') = '#{lastTime}'
|
|
|
- </if>
|
|
|
- <if test="stopOverTime != null and stopOverTime != ''">
|
|
|
- or STOP_OVER_TIME = #{stopOverTime}
|
|
|
- </if>
|
|
|
- <if test="msgInfo != null and msgInfo != ''">
|
|
|
- or MSG_INFO = #{msgInfo}
|
|
|
- </if>
|
|
|
- <if test="wgt != null">
|
|
|
- or WGT = #{wgt}
|
|
|
- </if>
|
|
|
- <if test="isRemote != null and isRemote != ''">
|
|
|
- or IS_REMOTE = #{isRemote}
|
|
|
- </if>
|
|
|
- <if test="weighInstrumentModel != null and weighInstrumentModel != ''">
|
|
|
- or WEIGH_INSTRUMENT_MODEL = #{weighInstrumentModel}
|
|
|
- </if>
|
|
|
- <if test="weighInstrumentParam != null and weighInstrumentParam != ''">
|
|
|
- or WEIGH_INSTRUMENT_PARAM = #{weighInstrumentParam}
|
|
|
- </if>
|
|
|
- <if test="moxaIp != null and moxaIp != ''">
|
|
|
- or MOXA_IP = #{moxaIp}
|
|
|
- </if>
|
|
|
- <if test="moxaPort != null and moxaPort != ''">
|
|
|
- or MOXA_PORT = #{moxaPort}
|
|
|
- </if>
|
|
|
- <if test="validLianda != null and validLianda != ''">
|
|
|
- or VALID_LIANDA = #{validLianda}
|
|
|
- </if>
|
|
|
- <if test="isOpenScanning != null and isOpenScanning != ''">
|
|
|
- or IS_OPEN_SCANNING = #{isOpenScanning}
|
|
|
- </if>
|
|
|
- <if test="validIsPre != null and validIsPre != ''">
|
|
|
- or VALID_IS_PRE = #{validIsPre}
|
|
|
- </if>
|
|
|
- <if test="userIp != null and userIp != ''">
|
|
|
- or USER_IP = #{userIp}
|
|
|
- </if>
|
|
|
- <if test="powerState != null and powerState != ''">
|
|
|
- or POWER_STATE = #{powerState}
|
|
|
- </if>
|
|
|
- <if test="dvrState != null and dvrState != ''">
|
|
|
- or DVR_STATE = #{dvrState}
|
|
|
- </if>
|
|
|
- <if test="moxaState != null and moxaState != ''">
|
|
|
- or MOXA_STATE = #{moxaState}
|
|
|
- </if>
|
|
|
- <if test="plcState != null and plcState != ''">
|
|
|
- or PLC_STATE = #{plcState}
|
|
|
- </if>
|
|
|
- <if test="leftInfraredRayState != null and leftInfraredRayState != ''">
|
|
|
- or LEFT_INFRARED_RAY_STATE = #{leftInfraredRayState}
|
|
|
- </if>
|
|
|
- <if test="rightInfraredRayState != null and rightInfraredRayState != ''">
|
|
|
- or RIGHT_INFRARED_RAY_STATE = #{rightInfraredRayState}
|
|
|
- </if>
|
|
|
- <if test="amplifierState != null and amplifierState != ''">
|
|
|
- or AMPLIFIER_STATE = #{amplifierState}
|
|
|
- </if>
|
|
|
- <if test="lampState != null and lampState != ''">
|
|
|
- or LAMP_STATE = #{lampState}
|
|
|
- </if>
|
|
|
- <if test="spotTypeNo != null and spotTypeNo != ''">
|
|
|
- or SPOT_TYPE_NO = #{spotTypeNo}
|
|
|
- </if>
|
|
|
- <if test="redGreenLightState != null and redGreenLightState != ''">
|
|
|
- or RED_GREEN_LIGHT_STATE = #{redGreenLightState}
|
|
|
- </if>
|
|
|
- <if test="frontInfraredRayState != null and frontInfraredRayState != ''">
|
|
|
- or FRONT_INFRARED_RAY_STATE = #{frontInfraredRayState}
|
|
|
- </if>
|
|
|
- <if test="rearInfraredRayState != null and rearInfraredRayState != ''">
|
|
|
- or REAR_INFRARED_RAY_STATE = #{rearInfraredRayState}
|
|
|
- </if>
|
|
|
- <if test="rfidState != null and rfidState != ''">
|
|
|
- or RFID_STATE = #{rfidState}
|
|
|
- </if>
|
|
|
- <if test="validArea != null and validArea != ''">
|
|
|
- or VALID_AREA = #{validArea}
|
|
|
- </if>
|
|
|
- </delete>
|
|
|
- <insert id="insert" parameterType="com.steerinfo.meterwork.meterworkmonitor.model.MeterWorkMonitor">
|
|
|
- insert into METER_WORK_MONITOR (POINT_NO, POINT_NAME, VALID_WGT,
|
|
|
- VALID_CARNO, VALID_TARE_TIME, VALID_TIME_INTERVAL,
|
|
|
- VALID_PARK_STATUS, VALID_EXCEED_WGT, VALID_PREDICTION_DIFF,
|
|
|
- VALID_FLAG, VALID_MAT_TIME, CAR_MONITOR,
|
|
|
- CAR_MONITOR_LVL, IS_HELP, IS_TAKE_OVER,
|
|
|
- LED_WRITER, PRINT_NUM, COLLECTION_CODE,
|
|
|
- IS_OVER_WGT, USER_NO, MONITOR_USER_NO,
|
|
|
- SET_CAR, LED_KEEP, RFID_CAR,
|
|
|
- PHOTO_CAR, SCAN_CAR, EDIT_CAR,
|
|
|
- CAR_ERR, WGT_ERR, LAST_TIME,
|
|
|
- STOP_OVER_TIME, MSG_INFO, WGT,
|
|
|
- IS_REMOTE, WEIGH_INSTRUMENT_MODEL, WEIGH_INSTRUMENT_PARAM,
|
|
|
- MOXA_IP, MOXA_PORT, VALID_LIANDA,
|
|
|
- IS_OPEN_SCANNING, VALID_IS_PRE, USER_IP,
|
|
|
- POWER_STATE, DVR_STATE, MOXA_STATE,
|
|
|
- PLC_STATE, LEFT_INFRARED_RAY_STATE, RIGHT_INFRARED_RAY_STATE,
|
|
|
- AMPLIFIER_STATE, LAMP_STATE, SPOT_TYPE_NO,
|
|
|
- RED_GREEN_LIGHT_STATE, FRONT_INFRARED_RAY_STATE,
|
|
|
- REAR_INFRARED_RAY_STATE, RFID_STATE, VALID_AREA
|
|
|
- )
|
|
|
- values (#{pointNo,jdbcType=VARCHAR}, #{pointName,jdbcType=VARCHAR}, #{validWgt,jdbcType=VARCHAR},
|
|
|
- #{validCarno,jdbcType=VARCHAR}, #{validTareTime,jdbcType=VARCHAR}, #{validTimeInterval,jdbcType=VARCHAR},
|
|
|
- #{validParkStatus,jdbcType=VARCHAR}, #{validExceedWgt,jdbcType=VARCHAR}, #{validPredictionDiff,jdbcType=VARCHAR},
|
|
|
- #{validFlag,jdbcType=VARCHAR}, #{validMatTime,jdbcType=VARCHAR}, #{carMonitor,jdbcType=VARCHAR},
|
|
|
- #{carMonitorLvl,jdbcType=DECIMAL}, #{isHelp,jdbcType=VARCHAR}, #{isTakeOver,jdbcType=VARCHAR},
|
|
|
- #{ledWriter,jdbcType=VARCHAR}, #{printNum,jdbcType=DECIMAL}, #{collectionCode,jdbcType=VARCHAR},
|
|
|
- #{isOverWgt,jdbcType=VARCHAR}, #{userNo,jdbcType=VARCHAR}, #{monitorUserNo,jdbcType=VARCHAR},
|
|
|
- #{setCar,jdbcType=VARCHAR}, #{ledKeep,jdbcType=VARCHAR}, #{rfidCar,jdbcType=VARCHAR},
|
|
|
- #{photoCar,jdbcType=VARCHAR}, #{scanCar,jdbcType=VARCHAR}, #{editCar,jdbcType=VARCHAR},
|
|
|
- #{carErr,jdbcType=VARCHAR}, #{wgtErr,jdbcType=VARCHAR}, #{lastTime,jdbcType=TIMESTAMP},
|
|
|
- #{stopOverTime,jdbcType=VARCHAR}, #{msgInfo,jdbcType=VARCHAR}, #{wgt,jdbcType=DECIMAL},
|
|
|
- #{isRemote,jdbcType=VARCHAR}, #{weighInstrumentModel,jdbcType=VARCHAR}, #{weighInstrumentParam,jdbcType=VARCHAR},
|
|
|
- #{moxaIp,jdbcType=VARCHAR}, #{moxaPort,jdbcType=VARCHAR}, #{validLianda,jdbcType=VARCHAR},
|
|
|
- #{isOpenScanning,jdbcType=VARCHAR}, #{validIsPre,jdbcType=VARCHAR}, #{userIp,jdbcType=VARCHAR},
|
|
|
- #{powerState,jdbcType=VARCHAR}, #{dvrState,jdbcType=VARCHAR}, #{moxaState,jdbcType=VARCHAR},
|
|
|
- #{plcState,jdbcType=VARCHAR}, #{leftInfraredRayState,jdbcType=VARCHAR}, #{rightInfraredRayState,jdbcType=VARCHAR},
|
|
|
- #{amplifierState,jdbcType=VARCHAR}, #{lampState,jdbcType=VARCHAR}, #{spotTypeNo,jdbcType=VARCHAR},
|
|
|
- #{redGreenLightState,jdbcType=VARCHAR}, #{frontInfraredRayState,jdbcType=VARCHAR},
|
|
|
- #{rearInfraredRayState,jdbcType=VARCHAR}, #{rfidState,jdbcType=VARCHAR}, #{validArea,jdbcType=VARCHAR}
|
|
|
- )
|
|
|
- </insert>
|
|
|
- <insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkmonitor.model.MeterWorkMonitor">
|
|
|
- insert into METER_WORK_MONITOR
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="pointNo != null">
|
|
|
- POINT_NO,
|
|
|
- </if>
|
|
|
- <if test="pointName != null">
|
|
|
- POINT_NAME,
|
|
|
- </if>
|
|
|
- <if test="validWgt != null">
|
|
|
- VALID_WGT,
|
|
|
- </if>
|
|
|
- <if test="validCarno != null">
|
|
|
- VALID_CARNO,
|
|
|
- </if>
|
|
|
- <if test="validTareTime != null">
|
|
|
- VALID_TARE_TIME,
|
|
|
- </if>
|
|
|
- <if test="validTimeInterval != null">
|
|
|
- VALID_TIME_INTERVAL,
|
|
|
- </if>
|
|
|
- <if test="validParkStatus != null">
|
|
|
- VALID_PARK_STATUS,
|
|
|
- </if>
|
|
|
- <if test="validExceedWgt != null">
|
|
|
- VALID_EXCEED_WGT,
|
|
|
- </if>
|
|
|
- <if test="validPredictionDiff != null">
|
|
|
- VALID_PREDICTION_DIFF,
|
|
|
- </if>
|
|
|
- <if test="validFlag != null">
|
|
|
- VALID_FLAG,
|
|
|
- </if>
|
|
|
- <if test="validMatTime != null">
|
|
|
- VALID_MAT_TIME,
|
|
|
- </if>
|
|
|
- <if test="carMonitor != null">
|
|
|
- CAR_MONITOR,
|
|
|
- </if>
|
|
|
- <if test="carMonitorLvl != null">
|
|
|
- CAR_MONITOR_LVL,
|
|
|
- </if>
|
|
|
- <if test="isHelp != null">
|
|
|
- IS_HELP,
|
|
|
- </if>
|
|
|
- <if test="isTakeOver != null">
|
|
|
- IS_TAKE_OVER,
|
|
|
- </if>
|
|
|
- <if test="ledWriter != null">
|
|
|
- LED_WRITER,
|
|
|
- </if>
|
|
|
- <if test="printNum != null">
|
|
|
- PRINT_NUM,
|
|
|
- </if>
|
|
|
- <if test="collectionCode != null">
|
|
|
- COLLECTION_CODE,
|
|
|
- </if>
|
|
|
- <if test="isOverWgt != null">
|
|
|
- IS_OVER_WGT,
|
|
|
- </if>
|
|
|
- <if test="userNo != null">
|
|
|
- USER_NO,
|
|
|
- </if>
|
|
|
- <if test="monitorUserNo != null">
|
|
|
- MONITOR_USER_NO,
|
|
|
- </if>
|
|
|
- <if test="setCar != null">
|
|
|
- SET_CAR,
|
|
|
- </if>
|
|
|
- <if test="ledKeep != null">
|
|
|
- LED_KEEP,
|
|
|
- </if>
|
|
|
- <if test="rfidCar != null">
|
|
|
- RFID_CAR,
|
|
|
- </if>
|
|
|
- <if test="photoCar != null">
|
|
|
- PHOTO_CAR,
|
|
|
- </if>
|
|
|
- <if test="scanCar != null">
|
|
|
- SCAN_CAR,
|
|
|
- </if>
|
|
|
- <if test="editCar != null">
|
|
|
- EDIT_CAR,
|
|
|
- </if>
|
|
|
- <if test="carErr != null">
|
|
|
- CAR_ERR,
|
|
|
- </if>
|
|
|
- <if test="wgtErr != null">
|
|
|
- WGT_ERR,
|
|
|
- </if>
|
|
|
- <if test="lastTime != null">
|
|
|
- LAST_TIME,
|
|
|
- </if>
|
|
|
- <if test="stopOverTime != null">
|
|
|
- STOP_OVER_TIME,
|
|
|
- </if>
|
|
|
- <if test="msgInfo != null">
|
|
|
- MSG_INFO,
|
|
|
- </if>
|
|
|
- <if test="wgt != null">
|
|
|
- WGT,
|
|
|
- </if>
|
|
|
- <if test="isRemote != null">
|
|
|
- IS_REMOTE,
|
|
|
- </if>
|
|
|
- <if test="weighInstrumentModel != null">
|
|
|
- WEIGH_INSTRUMENT_MODEL,
|
|
|
- </if>
|
|
|
- <if test="weighInstrumentParam != null">
|
|
|
- WEIGH_INSTRUMENT_PARAM,
|
|
|
- </if>
|
|
|
- <if test="moxaIp != null">
|
|
|
- MOXA_IP,
|
|
|
- </if>
|
|
|
- <if test="moxaPort != null">
|
|
|
- MOXA_PORT,
|
|
|
- </if>
|
|
|
- <if test="validLianda != null">
|
|
|
- VALID_LIANDA,
|
|
|
- </if>
|
|
|
- <if test="isOpenScanning != null">
|
|
|
- IS_OPEN_SCANNING,
|
|
|
- </if>
|
|
|
- <if test="validIsPre != null">
|
|
|
- VALID_IS_PRE,
|
|
|
- </if>
|
|
|
- <if test="userIp != null">
|
|
|
- USER_IP,
|
|
|
- </if>
|
|
|
- <if test="powerState != null">
|
|
|
- POWER_STATE,
|
|
|
- </if>
|
|
|
- <if test="dvrState != null">
|
|
|
- DVR_STATE,
|
|
|
- </if>
|
|
|
- <if test="moxaState != null">
|
|
|
- MOXA_STATE,
|
|
|
- </if>
|
|
|
- <if test="plcState != null">
|
|
|
- PLC_STATE,
|
|
|
- </if>
|
|
|
- <if test="leftInfraredRayState != null">
|
|
|
- LEFT_INFRARED_RAY_STATE,
|
|
|
- </if>
|
|
|
- <if test="rightInfraredRayState != null">
|
|
|
- RIGHT_INFRARED_RAY_STATE,
|
|
|
- </if>
|
|
|
- <if test="amplifierState != null">
|
|
|
- AMPLIFIER_STATE,
|
|
|
- </if>
|
|
|
- <if test="lampState != null">
|
|
|
- LAMP_STATE,
|
|
|
- </if>
|
|
|
- <if test="spotTypeNo != null">
|
|
|
- SPOT_TYPE_NO,
|
|
|
- </if>
|
|
|
- <if test="redGreenLightState != null">
|
|
|
- RED_GREEN_LIGHT_STATE,
|
|
|
- </if>
|
|
|
- <if test="frontInfraredRayState != null">
|
|
|
- FRONT_INFRARED_RAY_STATE,
|
|
|
- </if>
|
|
|
- <if test="rearInfraredRayState != null">
|
|
|
- REAR_INFRARED_RAY_STATE,
|
|
|
- </if>
|
|
|
- <if test="rfidState != null">
|
|
|
- RFID_STATE,
|
|
|
- </if>
|
|
|
- <if test="validArea != null">
|
|
|
- VALID_AREA,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="pointNo != null">
|
|
|
- #{pointNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="pointName != null">
|
|
|
- #{pointName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validWgt != null">
|
|
|
- #{validWgt,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validCarno != null">
|
|
|
- #{validCarno,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validTareTime != null">
|
|
|
- #{validTareTime,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validTimeInterval != null">
|
|
|
- #{validTimeInterval,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validParkStatus != null">
|
|
|
- #{validParkStatus,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validExceedWgt != null">
|
|
|
- #{validExceedWgt,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validPredictionDiff != null">
|
|
|
- #{validPredictionDiff,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validFlag != null">
|
|
|
- #{validFlag,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validMatTime != null">
|
|
|
- #{validMatTime,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carMonitor != null">
|
|
|
- #{carMonitor,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carMonitorLvl != null">
|
|
|
- #{carMonitorLvl,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="isHelp != null">
|
|
|
- #{isHelp,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="isTakeOver != null">
|
|
|
- #{isTakeOver,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="ledWriter != null">
|
|
|
- #{ledWriter,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="printNum != null">
|
|
|
- #{printNum,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="collectionCode != null">
|
|
|
- #{collectionCode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="isOverWgt != null">
|
|
|
- #{isOverWgt,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="userNo != null">
|
|
|
- #{userNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="monitorUserNo != null">
|
|
|
- #{monitorUserNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="setCar != null">
|
|
|
- #{setCar,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="ledKeep != null">
|
|
|
- #{ledKeep,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="rfidCar != null">
|
|
|
- #{rfidCar,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="photoCar != null">
|
|
|
- #{photoCar,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="scanCar != null">
|
|
|
- #{scanCar,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="editCar != null">
|
|
|
- #{editCar,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carErr != null">
|
|
|
- #{carErr,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="wgtErr != null">
|
|
|
- #{wgtErr,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="lastTime != null">
|
|
|
- #{lastTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="stopOverTime != null">
|
|
|
- #{stopOverTime,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="msgInfo != null">
|
|
|
- #{msgInfo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="wgt != null">
|
|
|
- #{wgt,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="isRemote != null">
|
|
|
- #{isRemote,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="weighInstrumentModel != null">
|
|
|
- #{weighInstrumentModel,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="weighInstrumentParam != null">
|
|
|
- #{weighInstrumentParam,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="moxaIp != null">
|
|
|
- #{moxaIp,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="moxaPort != null">
|
|
|
- #{moxaPort,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validLianda != null">
|
|
|
- #{validLianda,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="isOpenScanning != null">
|
|
|
- #{isOpenScanning,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validIsPre != null">
|
|
|
- #{validIsPre,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="userIp != null">
|
|
|
- #{userIp,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="powerState != null">
|
|
|
- #{powerState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="dvrState != null">
|
|
|
- #{dvrState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="moxaState != null">
|
|
|
- #{moxaState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="plcState != null">
|
|
|
- #{plcState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="leftInfraredRayState != null">
|
|
|
- #{leftInfraredRayState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="rightInfraredRayState != null">
|
|
|
- #{rightInfraredRayState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="amplifierState != null">
|
|
|
- #{amplifierState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="lampState != null">
|
|
|
- #{lampState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="spotTypeNo != null">
|
|
|
- #{spotTypeNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="redGreenLightState != null">
|
|
|
- #{redGreenLightState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="frontInfraredRayState != null">
|
|
|
- #{frontInfraredRayState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="rearInfraredRayState != null">
|
|
|
- #{rearInfraredRayState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="rfidState != null">
|
|
|
- #{rfidState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validArea != null">
|
|
|
- #{validArea,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkmonitor.model.MeterWorkMonitor">
|
|
|
- update METER_WORK_MONITOR
|
|
|
- set POINT_NAME = #{pointName,jdbcType=VARCHAR},
|
|
|
- VALID_WGT = #{validWgt,jdbcType=VARCHAR},
|
|
|
- VALID_CARNO = #{validCarno,jdbcType=VARCHAR},
|
|
|
- VALID_TARE_TIME = #{validTareTime,jdbcType=VARCHAR},
|
|
|
- VALID_TIME_INTERVAL = #{validTimeInterval,jdbcType=VARCHAR},
|
|
|
- VALID_PARK_STATUS = #{validParkStatus,jdbcType=VARCHAR},
|
|
|
- VALID_EXCEED_WGT = #{validExceedWgt,jdbcType=VARCHAR},
|
|
|
- VALID_PREDICTION_DIFF = #{validPredictionDiff,jdbcType=VARCHAR},
|
|
|
- VALID_FLAG = #{validFlag,jdbcType=VARCHAR},
|
|
|
- VALID_MAT_TIME = #{validMatTime,jdbcType=VARCHAR},
|
|
|
- CAR_MONITOR = #{carMonitor,jdbcType=VARCHAR},
|
|
|
- CAR_MONITOR_LVL = #{carMonitorLvl,jdbcType=DECIMAL},
|
|
|
- IS_HELP = #{isHelp,jdbcType=VARCHAR},
|
|
|
- IS_TAKE_OVER = #{isTakeOver,jdbcType=VARCHAR},
|
|
|
- LED_WRITER = #{ledWriter,jdbcType=VARCHAR},
|
|
|
- PRINT_NUM = #{printNum,jdbcType=DECIMAL},
|
|
|
- COLLECTION_CODE = #{collectionCode,jdbcType=VARCHAR},
|
|
|
- IS_OVER_WGT = #{isOverWgt,jdbcType=VARCHAR},
|
|
|
- USER_NO = #{userNo,jdbcType=VARCHAR},
|
|
|
- MONITOR_USER_NO = #{monitorUserNo,jdbcType=VARCHAR},
|
|
|
- SET_CAR = #{setCar,jdbcType=VARCHAR},
|
|
|
- LED_KEEP = #{ledKeep,jdbcType=VARCHAR},
|
|
|
- RFID_CAR = #{rfidCar,jdbcType=VARCHAR},
|
|
|
- PHOTO_CAR = #{photoCar,jdbcType=VARCHAR},
|
|
|
- SCAN_CAR = #{scanCar,jdbcType=VARCHAR},
|
|
|
- EDIT_CAR = #{editCar,jdbcType=VARCHAR},
|
|
|
- CAR_ERR = #{carErr,jdbcType=VARCHAR},
|
|
|
- WGT_ERR = #{wgtErr,jdbcType=VARCHAR},
|
|
|
- LAST_TIME = #{lastTime,jdbcType=TIMESTAMP},
|
|
|
- STOP_OVER_TIME = #{stopOverTime,jdbcType=VARCHAR},
|
|
|
- MSG_INFO = #{msgInfo,jdbcType=VARCHAR},
|
|
|
- WGT = #{wgt,jdbcType=DECIMAL},
|
|
|
- IS_REMOTE = #{isRemote,jdbcType=VARCHAR},
|
|
|
- WEIGH_INSTRUMENT_MODEL = #{weighInstrumentModel,jdbcType=VARCHAR},
|
|
|
- WEIGH_INSTRUMENT_PARAM = #{weighInstrumentParam,jdbcType=VARCHAR},
|
|
|
- MOXA_IP = #{moxaIp,jdbcType=VARCHAR},
|
|
|
- MOXA_PORT = #{moxaPort,jdbcType=VARCHAR},
|
|
|
- VALID_LIANDA = #{validLianda,jdbcType=VARCHAR},
|
|
|
- IS_OPEN_SCANNING = #{isOpenScanning,jdbcType=VARCHAR},
|
|
|
- VALID_IS_PRE = #{validIsPre,jdbcType=VARCHAR},
|
|
|
- USER_IP = #{userIp,jdbcType=VARCHAR},
|
|
|
- POWER_STATE = #{powerState,jdbcType=VARCHAR},
|
|
|
- DVR_STATE = #{dvrState,jdbcType=VARCHAR},
|
|
|
- MOXA_STATE = #{moxaState,jdbcType=VARCHAR},
|
|
|
- PLC_STATE = #{plcState,jdbcType=VARCHAR},
|
|
|
- LEFT_INFRARED_RAY_STATE = #{leftInfraredRayState,jdbcType=VARCHAR},
|
|
|
- RIGHT_INFRARED_RAY_STATE = #{rightInfraredRayState,jdbcType=VARCHAR},
|
|
|
- AMPLIFIER_STATE = #{amplifierState,jdbcType=VARCHAR},
|
|
|
- LAMP_STATE = #{lampState,jdbcType=VARCHAR},
|
|
|
- SPOT_TYPE_NO = #{spotTypeNo,jdbcType=VARCHAR},
|
|
|
- RED_GREEN_LIGHT_STATE = #{redGreenLightState,jdbcType=VARCHAR},
|
|
|
- FRONT_INFRARED_RAY_STATE = #{frontInfraredRayState,jdbcType=VARCHAR},
|
|
|
- REAR_INFRARED_RAY_STATE = #{rearInfraredRayState,jdbcType=VARCHAR},
|
|
|
- RFID_STATE = #{rfidState,jdbcType=VARCHAR},
|
|
|
- VALID_AREA = #{validArea,jdbcType=VARCHAR}
|
|
|
- where POINT_NO = #{pointNo,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkmonitor.model.MeterWorkMonitor">
|
|
|
- update METER_WORK_MONITOR
|
|
|
- <set>
|
|
|
- <if test="pointName != null">
|
|
|
- POINT_NAME = #{pointName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validWgt != null">
|
|
|
- VALID_WGT = #{validWgt,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validCarno != null">
|
|
|
- VALID_CARNO = #{validCarno,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validTareTime != null">
|
|
|
- VALID_TARE_TIME = #{validTareTime,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validTimeInterval != null">
|
|
|
- VALID_TIME_INTERVAL = #{validTimeInterval,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validParkStatus != null">
|
|
|
- VALID_PARK_STATUS = #{validParkStatus,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validExceedWgt != null">
|
|
|
- VALID_EXCEED_WGT = #{validExceedWgt,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validPredictionDiff != null">
|
|
|
- VALID_PREDICTION_DIFF = #{validPredictionDiff,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validFlag != null">
|
|
|
- VALID_FLAG = #{validFlag,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validMatTime != null">
|
|
|
- VALID_MAT_TIME = #{validMatTime,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carMonitor != null">
|
|
|
- CAR_MONITOR = #{carMonitor,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carMonitorLvl != null">
|
|
|
- CAR_MONITOR_LVL = #{carMonitorLvl,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="isHelp != null">
|
|
|
- IS_HELP = #{isHelp,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="isTakeOver != null">
|
|
|
- IS_TAKE_OVER = #{isTakeOver,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="ledWriter != null">
|
|
|
- LED_WRITER = #{ledWriter,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="printNum != null">
|
|
|
- PRINT_NUM = #{printNum,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="collectionCode != null">
|
|
|
- COLLECTION_CODE = #{collectionCode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="isOverWgt != null">
|
|
|
- IS_OVER_WGT = #{isOverWgt,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="userNo != null">
|
|
|
- USER_NO = #{userNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="monitorUserNo != null">
|
|
|
- MONITOR_USER_NO = #{monitorUserNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="setCar != null">
|
|
|
- SET_CAR = #{setCar,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="ledKeep != null">
|
|
|
- LED_KEEP = #{ledKeep,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="rfidCar != null">
|
|
|
- RFID_CAR = #{rfidCar,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="photoCar != null">
|
|
|
- PHOTO_CAR = #{photoCar,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="scanCar != null">
|
|
|
- SCAN_CAR = #{scanCar,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="editCar != null">
|
|
|
- EDIT_CAR = #{editCar,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="carErr != null">
|
|
|
- CAR_ERR = #{carErr,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="wgtErr != null">
|
|
|
- WGT_ERR = #{wgtErr,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="lastTime != null">
|
|
|
- LAST_TIME = #{lastTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="stopOverTime != null">
|
|
|
- STOP_OVER_TIME = #{stopOverTime,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="msgInfo != null">
|
|
|
- MSG_INFO = #{msgInfo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="wgt != null">
|
|
|
- WGT = #{wgt,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="isRemote != null">
|
|
|
- IS_REMOTE = #{isRemote,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="weighInstrumentModel != null">
|
|
|
- WEIGH_INSTRUMENT_MODEL = #{weighInstrumentModel,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="weighInstrumentParam != null">
|
|
|
- WEIGH_INSTRUMENT_PARAM = #{weighInstrumentParam,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="moxaIp != null">
|
|
|
- MOXA_IP = #{moxaIp,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="moxaPort != null">
|
|
|
- MOXA_PORT = #{moxaPort,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validLianda != null">
|
|
|
- VALID_LIANDA = #{validLianda,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="isOpenScanning != null">
|
|
|
- IS_OPEN_SCANNING = #{isOpenScanning,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validIsPre != null">
|
|
|
- VALID_IS_PRE = #{validIsPre,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="userIp != null">
|
|
|
- USER_IP = #{userIp,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="powerState != null">
|
|
|
- POWER_STATE = #{powerState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="dvrState != null">
|
|
|
- DVR_STATE = #{dvrState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="moxaState != null">
|
|
|
- MOXA_STATE = #{moxaState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="plcState != null">
|
|
|
- PLC_STATE = #{plcState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="leftInfraredRayState != null">
|
|
|
- LEFT_INFRARED_RAY_STATE = #{leftInfraredRayState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="rightInfraredRayState != null">
|
|
|
- RIGHT_INFRARED_RAY_STATE = #{rightInfraredRayState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="amplifierState != null">
|
|
|
- AMPLIFIER_STATE = #{amplifierState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="lampState != null">
|
|
|
- LAMP_STATE = #{lampState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="spotTypeNo != null">
|
|
|
- SPOT_TYPE_NO = #{spotTypeNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="redGreenLightState != null">
|
|
|
- RED_GREEN_LIGHT_STATE = #{redGreenLightState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="frontInfraredRayState != null">
|
|
|
- FRONT_INFRARED_RAY_STATE = #{frontInfraredRayState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="rearInfraredRayState != null">
|
|
|
- REAR_INFRARED_RAY_STATE = #{rearInfraredRayState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="rfidState != null">
|
|
|
- RFID_STATE = #{rfidState,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="validArea != null">
|
|
|
- VALID_AREA = #{validArea,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where POINT_NO = #{pointNo,jdbcType=VARCHAR}
|
|
|
- </update>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- <include refid="select" />
|
|
|
- where POINT_NO = #{pointNo,jdbcType=VARCHAR}
|
|
|
- </select>
|
|
|
- <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select" />
|
|
|
- <include refid="where" />
|
|
|
- </select>
|
|
|
- <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select" />
|
|
|
- <include refid="whereLike" />
|
|
|
- </select>
|
|
|
- <insert id="batchInsert" parameterType="java.util.List">
|
|
|
- insert into METER_WORK_MONITOR
|
|
|
- (POINT_NO,
|
|
|
- POINT_NAME, VALID_WGT, VALID_CARNO,
|
|
|
- VALID_TARE_TIME, VALID_TIME_INTERVAL,
|
|
|
- VALID_PARK_STATUS, VALID_EXCEED_WGT,
|
|
|
- VALID_PREDICTION_DIFF, VALID_FLAG,
|
|
|
- VALID_MAT_TIME, CAR_MONITOR, CAR_MONITOR_LVL,
|
|
|
- IS_HELP, IS_TAKE_OVER, LED_WRITER,
|
|
|
- PRINT_NUM, COLLECTION_CODE, IS_OVER_WGT,
|
|
|
- USER_NO, MONITOR_USER_NO, SET_CAR,
|
|
|
- LED_KEEP, RFID_CAR, PHOTO_CAR,
|
|
|
- SCAN_CAR, EDIT_CAR, CAR_ERR,
|
|
|
- WGT_ERR, LAST_TIME, STOP_OVER_TIME,
|
|
|
- MSG_INFO, WGT, IS_REMOTE,
|
|
|
- WEIGH_INSTRUMENT_MODEL, WEIGH_INSTRUMENT_PARAM,
|
|
|
- MOXA_IP, MOXA_PORT, VALID_LIANDA,
|
|
|
- IS_OPEN_SCANNING, VALID_IS_PRE, USER_IP,
|
|
|
- POWER_STATE, DVR_STATE, MOXA_STATE,
|
|
|
- PLC_STATE, LEFT_INFRARED_RAY_STATE,
|
|
|
- RIGHT_INFRARED_RAY_STATE, AMPLIFIER_STATE,
|
|
|
- LAMP_STATE, SPOT_TYPE_NO, RED_GREEN_LIGHT_STATE,
|
|
|
- FRONT_INFRARED_RAY_STATE, REAR_INFRARED_RAY_STATE,
|
|
|
- RFID_STATE, VALID_AREA)
|
|
|
- ( <foreach collection="list" item="item" separator="union all">
|
|
|
- select
|
|
|
- #{item.pointNo,jdbcType=VARCHAR},
|
|
|
- #{item.pointName,jdbcType=VARCHAR}, #{item.validWgt,jdbcType=VARCHAR}, #{item.validCarno,jdbcType=VARCHAR},
|
|
|
- #{item.validTareTime,jdbcType=VARCHAR}, #{item.validTimeInterval,jdbcType=VARCHAR},
|
|
|
- #{item.validParkStatus,jdbcType=VARCHAR}, #{item.validExceedWgt,jdbcType=VARCHAR},
|
|
|
- #{item.validPredictionDiff,jdbcType=VARCHAR}, #{item.validFlag,jdbcType=VARCHAR},
|
|
|
- #{item.validMatTime,jdbcType=VARCHAR}, #{item.carMonitor,jdbcType=VARCHAR}, #{item.carMonitorLvl,jdbcType=DECIMAL},
|
|
|
- #{item.isHelp,jdbcType=VARCHAR}, #{item.isTakeOver,jdbcType=VARCHAR}, #{item.ledWriter,jdbcType=VARCHAR},
|
|
|
- #{item.printNum,jdbcType=DECIMAL}, #{item.collectionCode,jdbcType=VARCHAR}, #{item.isOverWgt,jdbcType=VARCHAR},
|
|
|
- #{item.userNo,jdbcType=VARCHAR}, #{item.monitorUserNo,jdbcType=VARCHAR}, #{item.setCar,jdbcType=VARCHAR},
|
|
|
- #{item.ledKeep,jdbcType=VARCHAR}, #{item.rfidCar,jdbcType=VARCHAR}, #{item.photoCar,jdbcType=VARCHAR},
|
|
|
- #{item.scanCar,jdbcType=VARCHAR}, #{item.editCar,jdbcType=VARCHAR}, #{item.carErr,jdbcType=VARCHAR},
|
|
|
- #{item.wgtErr,jdbcType=VARCHAR}, #{item.lastTime,jdbcType=TIMESTAMP}, #{item.stopOverTime,jdbcType=VARCHAR},
|
|
|
- #{item.msgInfo,jdbcType=VARCHAR}, #{item.wgt,jdbcType=DECIMAL}, #{item.isRemote,jdbcType=VARCHAR},
|
|
|
- #{item.weighInstrumentModel,jdbcType=VARCHAR}, #{item.weighInstrumentParam,jdbcType=VARCHAR},
|
|
|
- #{item.moxaIp,jdbcType=VARCHAR}, #{item.moxaPort,jdbcType=VARCHAR}, #{item.validLianda,jdbcType=VARCHAR},
|
|
|
- #{item.isOpenScanning,jdbcType=VARCHAR}, #{item.validIsPre,jdbcType=VARCHAR}, #{item.userIp,jdbcType=VARCHAR},
|
|
|
- #{item.powerState,jdbcType=VARCHAR}, #{item.dvrState,jdbcType=VARCHAR}, #{item.moxaState,jdbcType=VARCHAR},
|
|
|
- #{item.plcState,jdbcType=VARCHAR}, #{item.leftInfraredRayState,jdbcType=VARCHAR},
|
|
|
- #{item.rightInfraredRayState,jdbcType=VARCHAR}, #{item.amplifierState,jdbcType=VARCHAR},
|
|
|
- #{item.lampState,jdbcType=VARCHAR}, #{item.spotTypeNo,jdbcType=VARCHAR}, #{item.redGreenLightState,jdbcType=VARCHAR},
|
|
|
- #{item.frontInfraredRayState,jdbcType=VARCHAR}, #{item.rearInfraredRayState,jdbcType=VARCHAR},
|
|
|
- #{item.rfidState,jdbcType=VARCHAR}, #{item.validArea,jdbcType=VARCHAR} from dual
|
|
|
- </foreach> )
|
|
|
- </insert>
|
|
|
- <update id="batchUpdate" parameterType="java.util.List">
|
|
|
- update METER_WORK_MONITOR
|
|
|
- set
|
|
|
- POINT_NO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.pointNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,POINT_NAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.pointName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALID_WGT=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.validWgt,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALID_CARNO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.validCarno,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALID_TARE_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.validTareTime,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALID_TIME_INTERVAL=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.validTimeInterval,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALID_PARK_STATUS=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.validParkStatus,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALID_EXCEED_WGT=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.validExceedWgt,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALID_PREDICTION_DIFF=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.validPredictionDiff,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALID_FLAG=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.validFlag,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALID_MAT_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.validMatTime,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CAR_MONITOR=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.carMonitor,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CAR_MONITOR_LVL=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.carMonitorLvl,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,IS_HELP=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.isHelp,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,IS_TAKE_OVER=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.isTakeOver,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,LED_WRITER=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.ledWriter,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,PRINT_NUM=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.printNum,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,COLLECTION_CODE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.collectionCode,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,IS_OVER_WGT=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.isOverWgt,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,USER_NO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.userNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,MONITOR_USER_NO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.monitorUserNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,SET_CAR=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.setCar,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,LED_KEEP=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.ledKeep,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,RFID_CAR=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.rfidCar,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,PHOTO_CAR=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.photoCar,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,SCAN_CAR=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.scanCar,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,EDIT_CAR=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.editCar,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CAR_ERR=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.carErr,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,WGT_ERR=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.wgtErr,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,LAST_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.lastTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,STOP_OVER_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.stopOverTime,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,MSG_INFO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.msgInfo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,WGT=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.wgt,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,IS_REMOTE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.isRemote,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,WEIGH_INSTRUMENT_MODEL=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.weighInstrumentModel,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,WEIGH_INSTRUMENT_PARAM=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.weighInstrumentParam,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,MOXA_IP=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.moxaIp,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,MOXA_PORT=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.moxaPort,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALID_LIANDA=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.validLianda,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,IS_OPEN_SCANNING=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.isOpenScanning,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALID_IS_PRE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.validIsPre,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,USER_IP=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.userIp,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,POWER_STATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.powerState,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,DVR_STATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.dvrState,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,MOXA_STATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.moxaState,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,PLC_STATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.plcState,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,LEFT_INFRARED_RAY_STATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.leftInfraredRayState,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,RIGHT_INFRARED_RAY_STATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.rightInfraredRayState,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,AMPLIFIER_STATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.amplifierState,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,LAMP_STATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.lampState,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,SPOT_TYPE_NO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.spotTypeNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,RED_GREEN_LIGHT_STATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.redGreenLightState,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,FRONT_INFRARED_RAY_STATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.frontInfraredRayState,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,REAR_INFRARED_RAY_STATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.rearInfraredRayState,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,RFID_STATE=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.rfidState,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALID_AREA=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
- when #{item.pointNo,jdbcType=VARCHAR} then #{item.validArea,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- where POINT_NO in
|
|
|
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
- #{item.pointNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- </update>
|
|
|
- <delete id="batchDelete" parameterType="java.util.List">
|
|
|
- delete from METER_WORK_MONITOR
|
|
|
- where POINT_NO in
|
|
|
- <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
- #{id}
|
|
|
- </foreach>
|
|
|
- </delete>
|
|
|
- <!-- 友情提示!!!-->
|
|
|
- <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
<select id="selectForAss" resultMap="BaseResultMap">
|
|
|
<include refid="select"/>
|
|
|
where IS_TAKE_OVER = '1' and (USER_NO is null or USER_NO = '')
|