|
@@ -41,6 +41,8 @@
|
|
|
<result column="MOXA_IP" jdbcType="VARCHAR" property="moxaIp" />
|
|
<result column="MOXA_IP" jdbcType="VARCHAR" property="moxaIp" />
|
|
|
<result column="MOXA_PORT" jdbcType="VARCHAR" property="moxaPort" />
|
|
<result column="MOXA_PORT" jdbcType="VARCHAR" property="moxaPort" />
|
|
|
<result column="VALID_LIANDA" jdbcType="VARCHAR" property="validLianda" />
|
|
<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" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
|
POINT_NO, POINT_NAME, VALID_WGT, VALID_CARNO, VALID_TARE_TIME, VALID_TIME_INTERVAL,
|
|
POINT_NO, POINT_NAME, VALID_WGT, VALID_CARNO, VALID_TARE_TIME, VALID_TIME_INTERVAL,
|
|
@@ -48,7 +50,8 @@
|
|
|
CAR_MONITOR, CAR_MONITOR_LVL, IS_HELP, IS_TAKE_OVER, LED_WRITER, PRINT_NUM, COLLECTION_CODE,
|
|
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,
|
|
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,
|
|
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
|
|
|
|
|
|
|
+ WEIGH_INSTRUMENT_MODEL, WEIGH_INSTRUMENT_PARAM, MOXA_IP, MOXA_PORT, VALID_LIANDA,
|
|
|
|
|
+ IS_OPEN_SCANNING, VALID_IS_PRE
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
<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.POINT_NO, t.POINT_NAME, t.VALID_WGT, t.VALID_CARNO, t.VALID_TARE_TIME, t.VALID_TIME_INTERVAL,
|
|
@@ -57,13 +60,13 @@
|
|
|
t.COLLECTION_CODE, t.IS_OVER_WGT, t.USER_NO, t.MONITOR_USER_NO, t.SET_CAR, t.LED_KEEP,
|
|
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.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.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.MOXA_IP, t.MOXA_PORT, t.VALID_LIANDA, t.IS_OPEN_SCANNING, t.VALID_IS_PRE
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="select">
|
|
<sql id="select">
|
|
|
- SELECT <include refid="columns"/> FROM METER_WORK_MONITOR
|
|
|
|
|
|
|
+ SELECT <include refid="columns" /> FROM METER_WORK_MONITOR
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="select_alias">
|
|
<sql id="select_alias">
|
|
|
- SELECT <include refid="columns_alias"/> FROM METER_WORK_MONITOR t
|
|
|
|
|
|
|
+ SELECT <include refid="columns_alias" /> FROM METER_WORK_MONITOR t
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="where">
|
|
<sql id="where">
|
|
|
<where>
|
|
<where>
|
|
@@ -184,6 +187,12 @@
|
|
|
<if test="validLianda != null and validLianda != ''">
|
|
<if test="validLianda != null and validLianda != ''">
|
|
|
and VALID_LIANDA = #{validLianda}
|
|
and VALID_LIANDA = #{validLianda}
|
|
|
</if>
|
|
</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>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -305,6 +314,12 @@
|
|
|
<if test="validLianda != null and validLianda != ''">
|
|
<if test="validLianda != null and validLianda != ''">
|
|
|
and VALID_LIANDA LIKE '%${validLianda}%'
|
|
and VALID_LIANDA LIKE '%${validLianda}%'
|
|
|
</if>
|
|
</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>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
@@ -428,36 +443,42 @@
|
|
|
<if test="validLianda != null and validLianda != ''">
|
|
<if test="validLianda != null and validLianda != ''">
|
|
|
or VALID_LIANDA = #{validLianda}
|
|
or VALID_LIANDA = #{validLianda}
|
|
|
</if>
|
|
</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>
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.meterwork.meterworkmonitor.model.MeterWorkMonitor">
|
|
<insert id="insert" parameterType="com.steerinfo.meterwork.meterworkmonitor.model.MeterWorkMonitor">
|
|
|
insert into METER_WORK_MONITOR (POINT_NO, POINT_NAME, VALID_WGT,
|
|
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
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ 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)
|
|
|
values (#{pointNo,jdbcType=VARCHAR}, #{pointName,jdbcType=VARCHAR}, #{validWgt,jdbcType=VARCHAR},
|
|
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}
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ #{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})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkmonitor.model.MeterWorkMonitor">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkmonitor.model.MeterWorkMonitor">
|
|
|
insert into METER_WORK_MONITOR
|
|
insert into METER_WORK_MONITOR
|
|
@@ -579,6 +600,12 @@
|
|
|
<if test="validLianda != null">
|
|
<if test="validLianda != null">
|
|
|
VALID_LIANDA,
|
|
VALID_LIANDA,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="isOpenScanning != null">
|
|
|
|
|
+ IS_OPEN_SCANNING,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="validIsPre != null">
|
|
|
|
|
+ VALID_IS_PRE,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="pointNo != null">
|
|
<if test="pointNo != null">
|
|
@@ -698,48 +725,56 @@
|
|
|
<if test="validLianda != null">
|
|
<if test="validLianda != null">
|
|
|
#{validLianda,jdbcType=VARCHAR},
|
|
#{validLianda,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="isOpenScanning != null">
|
|
|
|
|
+ #{isOpenScanning,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="validIsPre != null">
|
|
|
|
|
+ #{validIsPre,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkmonitor.model.MeterWorkMonitor">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkmonitor.model.MeterWorkMonitor">
|
|
|
update METER_WORK_MONITOR
|
|
update METER_WORK_MONITOR
|
|
|
set POINT_NAME = #{pointName,jdbcType=VARCHAR},
|
|
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}
|
|
|
|
|
|
|
+ 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}
|
|
|
where POINT_NO = #{pointNo,jdbcType=VARCHAR}
|
|
where POINT_NO = #{pointNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkmonitor.model.MeterWorkMonitor">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkmonitor.model.MeterWorkMonitor">
|
|
@@ -859,20 +894,26 @@
|
|
|
<if test="validLianda != null">
|
|
<if test="validLianda != null">
|
|
|
VALID_LIANDA = #{validLianda,jdbcType=VARCHAR},
|
|
VALID_LIANDA = #{validLianda,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="isOpenScanning != null">
|
|
|
|
|
+ IS_OPEN_SCANNING = #{isOpenScanning,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="validIsPre != null">
|
|
|
|
|
+ VALID_IS_PRE = #{validIsPre,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where POINT_NO = #{pointNo,jdbcType=VARCHAR}
|
|
where POINT_NO = #{pointNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
|
|
|
|
+ <include refid="select" />
|
|
|
where POINT_NO = #{pointNo,jdbcType=VARCHAR}
|
|
where POINT_NO = #{pointNo,jdbcType=VARCHAR}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
|
|
- <include refid="where"/>
|
|
|
|
|
|
|
+ <include refid="select" />
|
|
|
|
|
+ <include refid="where" />
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
|
|
- <include refid="whereLike"/>
|
|
|
|
|
|
|
+ <include refid="select" />
|
|
|
|
|
+ <include refid="whereLike" />
|
|
|
</select>
|
|
</select>
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
insert into METER_WORK_MONITOR
|
|
insert into METER_WORK_MONITOR
|
|
@@ -890,8 +931,8 @@
|
|
|
WGT_ERR, LAST_TIME, STOP_OVER_TIME,
|
|
WGT_ERR, LAST_TIME, STOP_OVER_TIME,
|
|
|
MSG_INFO, WGT, IS_REMOTE,
|
|
MSG_INFO, WGT, IS_REMOTE,
|
|
|
WEIGH_INSTRUMENT_MODEL, WEIGH_INSTRUMENT_PARAM,
|
|
WEIGH_INSTRUMENT_MODEL, WEIGH_INSTRUMENT_PARAM,
|
|
|
- MOXA_IP, MOXA_PORT, VALID_LIANDA
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ MOXA_IP, MOXA_PORT, VALID_LIANDA,
|
|
|
|
|
+ IS_OPEN_SCANNING, VALID_IS_PRE)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
select
|
|
|
#{item.pointNo,jdbcType=VARCHAR},
|
|
#{item.pointNo,jdbcType=VARCHAR},
|
|
@@ -908,178 +949,186 @@
|
|
|
#{item.wgtErr,jdbcType=VARCHAR}, #{item.lastTime,jdbcType=TIMESTAMP}, #{item.stopOverTime,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.msgInfo,jdbcType=VARCHAR}, #{item.wgt,jdbcType=DECIMAL}, #{item.isRemote,jdbcType=VARCHAR},
|
|
|
#{item.weighInstrumentModel,jdbcType=VARCHAR}, #{item.weighInstrumentParam,jdbcType=VARCHAR},
|
|
#{item.weighInstrumentModel,jdbcType=VARCHAR}, #{item.weighInstrumentParam,jdbcType=VARCHAR},
|
|
|
- #{item.moxaIp,jdbcType=VARCHAR}, #{item.moxaPort,jdbcType=VARCHAR}, #{item.validLianda,jdbcType=VARCHAR}
|
|
|
|
|
- from dual
|
|
|
|
|
|
|
+ #{item.moxaIp,jdbcType=VARCHAR}, #{item.moxaPort,jdbcType=VARCHAR}, #{item.validLianda,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.isOpenScanning,jdbcType=VARCHAR}, #{item.validIsPre,jdbcType=VARCHAR} from dual
|
|
|
</foreach> )
|
|
</foreach> )
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
|
update METER_WORK_MONITOR
|
|
update METER_WORK_MONITOR
|
|
|
set
|
|
set
|
|
|
POINT_NO=
|
|
POINT_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.pointNo,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.pointNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,POINT_NAME=
|
|
,POINT_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.pointName,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.pointName,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,VALID_WGT=
|
|
,VALID_WGT=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validWgt,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validWgt,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,VALID_CARNO=
|
|
,VALID_CARNO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validCarno,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validCarno,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,VALID_TARE_TIME=
|
|
,VALID_TARE_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validTareTime,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validTareTime,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,VALID_TIME_INTERVAL=
|
|
,VALID_TIME_INTERVAL=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validTimeInterval,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validTimeInterval,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,VALID_PARK_STATUS=
|
|
,VALID_PARK_STATUS=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validParkStatus,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validParkStatus,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,VALID_EXCEED_WGT=
|
|
,VALID_EXCEED_WGT=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validExceedWgt,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validExceedWgt,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,VALID_PREDICTION_DIFF=
|
|
,VALID_PREDICTION_DIFF=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validPredictionDiff,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validPredictionDiff,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,VALID_FLAG=
|
|
,VALID_FLAG=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validFlag,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validFlag,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,VALID_MAT_TIME=
|
|
,VALID_MAT_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validMatTime,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validMatTime,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CAR_MONITOR=
|
|
,CAR_MONITOR=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.carMonitor,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.carMonitor,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CAR_MONITOR_LVL=
|
|
,CAR_MONITOR_LVL=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.carMonitorLvl,jdbcType=DECIMAL}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.carMonitorLvl,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,IS_HELP=
|
|
,IS_HELP=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.isHelp,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.isHelp,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,IS_TAKE_OVER=
|
|
,IS_TAKE_OVER=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.isTakeOver,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.isTakeOver,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,LED_WRITER=
|
|
,LED_WRITER=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.ledWriter,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.ledWriter,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,PRINT_NUM=
|
|
,PRINT_NUM=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.printNum,jdbcType=DECIMAL}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.printNum,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,COLLECTION_CODE=
|
|
,COLLECTION_CODE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.collectionCode,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.collectionCode,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,IS_OVER_WGT=
|
|
,IS_OVER_WGT=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.isOverWgt,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.isOverWgt,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,USER_NO=
|
|
,USER_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.userNo,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.userNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,MONITOR_USER_NO=
|
|
,MONITOR_USER_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.monitorUserNo,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.monitorUserNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,SET_CAR=
|
|
,SET_CAR=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.setCar,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.setCar,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,LED_KEEP=
|
|
,LED_KEEP=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.ledKeep,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.ledKeep,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,RFID_CAR=
|
|
,RFID_CAR=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.rfidCar,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.rfidCar,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,PHOTO_CAR=
|
|
,PHOTO_CAR=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.photoCar,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.photoCar,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,SCAN_CAR=
|
|
,SCAN_CAR=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.scanCar,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.scanCar,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,EDIT_CAR=
|
|
,EDIT_CAR=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.editCar,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.editCar,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CAR_ERR=
|
|
,CAR_ERR=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.carErr,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.carErr,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,WGT_ERR=
|
|
,WGT_ERR=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.wgtErr,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.wgtErr,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,LAST_TIME=
|
|
,LAST_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.lastTime,jdbcType=TIMESTAMP}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.lastTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,STOP_OVER_TIME=
|
|
,STOP_OVER_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.stopOverTime,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.stopOverTime,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,MSG_INFO=
|
|
,MSG_INFO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.msgInfo,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.msgInfo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,WGT=
|
|
,WGT=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.wgt,jdbcType=DECIMAL}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.wgt,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,IS_REMOTE=
|
|
,IS_REMOTE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.isRemote,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.isRemote,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,WEIGH_INSTRUMENT_MODEL=
|
|
,WEIGH_INSTRUMENT_MODEL=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.weighInstrumentModel,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.weighInstrumentModel,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,WEIGH_INSTRUMENT_PARAM=
|
|
,WEIGH_INSTRUMENT_PARAM=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.weighInstrumentParam,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.weighInstrumentParam,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,MOXA_IP=
|
|
,MOXA_IP=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.moxaIp,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.moxaIp,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,MOXA_PORT=
|
|
,MOXA_PORT=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.moxaPort,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.moxaPort,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,VALID_LIANDA=
|
|
,VALID_LIANDA=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case POINT_NO" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case POINT_NO" separator=" ">
|
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validLianda,jdbcType=VARCHAR}
|
|
when #{item.pointNo,jdbcType=VARCHAR} then #{item.validLianda,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</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>
|
|
|
where POINT_NO in
|
|
where POINT_NO in
|
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
#{item.pointNo,jdbcType=VARCHAR}
|
|
#{item.pointNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</update>
|
|
</update>
|
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
|
delete from METER_WORK_MONITOR
|
|
delete from METER_WORK_MONITOR
|
|
|
where POINT_NO in
|
|
where POINT_NO in
|
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
#{id}
|
|
#{id}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</delete>
|
|
</delete>
|