|
|
@@ -30,21 +30,30 @@
|
|
|
<result column="SPOT_TYPE_NAME" jdbcType="VARCHAR" property="spotTypeName" />
|
|
|
<result column="WEIGHT_ZERO" jdbcType="DECIMAL" property="weightZero" />
|
|
|
<result column="MONITOR_USER_IP" jdbcType="VARCHAR" property="monitorUserIp" />
|
|
|
+ <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="RFID_CAR" jdbcType="VARCHAR" property="rfidCar" />
|
|
|
+ <result column="PHOTO_CAR" jdbcType="VARCHAR" property="photoCar" />
|
|
|
+ <result column="WGT_ERR" jdbcType="VARCHAR" property="wgtErr" />
|
|
|
+ <result column="USER_IP" jdbcType="VARCHAR" property="userIp" />
|
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
|
- SCALE_POINT_NO, SCALE_POINT_NAME, BASE_SPOT_NO, BASE_SPOT_NAME, WEIGH_INSTRUMENT_MODEL,
|
|
|
- WEIGH_INSTRUMENT_PARAM, MOXA_IP, MOXA_PORT, VALID_FLAG, LAST_TIME, WEIGHT_TIME, USER_NO,
|
|
|
- MONITOR_USER_NO, WEIGHT, COLLECTION_CODE, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
- UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
|
|
|
- SPOT_TYPE_NO, SPOT_TYPE_NAME, WEIGHT_ZERO, MONITOR_USER_IP
|
|
|
+ SCALE_POINT_NO, SCALE_POINT_NAME, BASE_SPOT_NO, BASE_SPOT_NAME, WEIGH_INSTRUMENT_MODEL,
|
|
|
+ WEIGH_INSTRUMENT_PARAM, MOXA_IP, MOXA_PORT, VALID_FLAG, LAST_TIME, WEIGHT_TIME, USER_NO,
|
|
|
+ MONITOR_USER_NO, WEIGHT, COLLECTION_CODE, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
+ UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
|
|
|
+ SPOT_TYPE_NO, SPOT_TYPE_NAME, WEIGHT_ZERO, MONITOR_USER_IP, IS_HELP, IS_TAKE_OVER,
|
|
|
+ LED_WRITER, RFID_CAR, PHOTO_CAR, WGT_ERR, USER_IP
|
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
|
- t.SCALE_POINT_NO, t.SCALE_POINT_NAME, t.BASE_SPOT_NO, t.BASE_SPOT_NAME, t.WEIGH_INSTRUMENT_MODEL,
|
|
|
- t.WEIGH_INSTRUMENT_PARAM, t.MOXA_IP, t.MOXA_PORT, t.VALID_FLAG, t.LAST_TIME, t.WEIGHT_TIME,
|
|
|
- t.USER_NO, t.MONITOR_USER_NO, t.WEIGHT, t.COLLECTION_CODE, t.CREATE_MAN_NO, t.CREATE_MAN_NAME,
|
|
|
- t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO,
|
|
|
- t.DELETE_MAN_NAME, t.DELETE_TIME, t.SPOT_TYPE_NO, t.SPOT_TYPE_NAME, t.WEIGHT_ZERO,
|
|
|
- t.MONITOR_USER_IP
|
|
|
+ t.SCALE_POINT_NO, t.SCALE_POINT_NAME, t.BASE_SPOT_NO, t.BASE_SPOT_NAME, t.WEIGH_INSTRUMENT_MODEL,
|
|
|
+ t.WEIGH_INSTRUMENT_PARAM, t.MOXA_IP, t.MOXA_PORT, t.VALID_FLAG, t.LAST_TIME, t.WEIGHT_TIME,
|
|
|
+ t.USER_NO, t.MONITOR_USER_NO, t.WEIGHT, t.COLLECTION_CODE, t.CREATE_MAN_NO, t.CREATE_MAN_NAME,
|
|
|
+ t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO,
|
|
|
+ t.DELETE_MAN_NAME, t.DELETE_TIME, t.SPOT_TYPE_NO, t.SPOT_TYPE_NAME, t.WEIGHT_ZERO,
|
|
|
+ t.MONITOR_USER_IP, t.IS_HELP, t.IS_TAKE_OVER, t.LED_WRITER, t.RFID_CAR, t.PHOTO_CAR,
|
|
|
+ t.WGT_ERR, t.USER_IP
|
|
|
</sql>
|
|
|
<sql id="select">
|
|
|
SELECT <include refid="columns"/> FROM METER_BASE_SCALE_POINT
|
|
|
@@ -53,7 +62,7 @@
|
|
|
SELECT <include refid="columns_alias"/> FROM METER_BASE_SCALE_POINT t
|
|
|
</sql>
|
|
|
<sql id="where">
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="scalePointNo != null and scalePointNo != ''">
|
|
|
and SCALE_POINT_NO = #{scalePointNo}
|
|
|
</if>
|
|
|
@@ -138,10 +147,31 @@
|
|
|
<if test="monitorUserIp != null and monitorUserIp != ''">
|
|
|
and MONITOR_USER_IP = #{monitorUserIp}
|
|
|
</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="rfidCar != null and rfidCar != ''">
|
|
|
+ and RFID_CAR = #{rfidCar}
|
|
|
+ </if>
|
|
|
+ <if test="photoCar != null and photoCar != ''">
|
|
|
+ and PHOTO_CAR = #{photoCar}
|
|
|
+ </if>
|
|
|
+ <if test="wgtErr != null and wgtErr != ''">
|
|
|
+ and WGT_ERR = #{wgtErr}
|
|
|
+ </if>
|
|
|
+ <if test="userIp != null and userIp != ''">
|
|
|
+ and USER_IP = #{userIp}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="scalePointNo != null and scalePointNo != ''">
|
|
|
and SCALE_POINT_NO LIKE '%${scalePointNo}%'
|
|
|
</if>
|
|
|
@@ -226,6 +256,27 @@
|
|
|
<if test="monitorUserIp != null and monitorUserIp != ''">
|
|
|
and MONITOR_USER_IP LIKE '%${monitorUserIp}%'
|
|
|
</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="rfidCar != null and rfidCar != ''">
|
|
|
+ and RFID_CAR LIKE '%${rfidCar}%'
|
|
|
+ </if>
|
|
|
+ <if test="photoCar != null and photoCar != ''">
|
|
|
+ and PHOTO_CAR LIKE '%${photoCar}%'
|
|
|
+ </if>
|
|
|
+ <if test="wgtErr != null and wgtErr != ''">
|
|
|
+ and WGT_ERR LIKE '%${wgtErr}%'
|
|
|
+ </if>
|
|
|
+ <if test="userIp != null and userIp != ''">
|
|
|
+ and USER_IP LIKE '%${userIp}%'
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
@@ -234,110 +285,135 @@
|
|
|
</delete>
|
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
delete from METER_BASE_SCALE_POINT
|
|
|
- where 1!=1
|
|
|
- <if test="scalePointName != null and scalePointName != ''">
|
|
|
- or SCALE_POINT_NAME = #{scalePointName}
|
|
|
- </if>
|
|
|
- <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
- or BASE_SPOT_NO = #{baseSpotNo}
|
|
|
- </if>
|
|
|
- <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
- or BASE_SPOT_NAME = #{baseSpotName}
|
|
|
- </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="validFlag != null and validFlag != ''">
|
|
|
- or VALID_FLAG = #{validFlag}
|
|
|
- </if>
|
|
|
- <if test="lastTime != null">
|
|
|
- or TO_CHAR(LAST_TIME,'yyyy-MM-dd') = '#{lastTime}'
|
|
|
- </if>
|
|
|
- <if test="weightTime != null">
|
|
|
- or TO_CHAR(WEIGHT_TIME,'yyyy-MM-dd') = '#{weightTime}'
|
|
|
- </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="weight != null">
|
|
|
- or WEIGHT = #{weight}
|
|
|
- </if>
|
|
|
- <if test="collectionCode != null and collectionCode != ''">
|
|
|
- or COLLECTION_CODE = #{collectionCode}
|
|
|
- </if>
|
|
|
- <if test="createManNo != null and createManNo != ''">
|
|
|
- or CREATE_MAN_NO = #{createManNo}
|
|
|
- </if>
|
|
|
- <if test="createManName != null and createManName != ''">
|
|
|
- or CREATE_MAN_NAME = #{createManName}
|
|
|
- </if>
|
|
|
- <if test="createTime != null">
|
|
|
- or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
|
|
|
- </if>
|
|
|
- <if test="updateManNo != null and updateManNo != ''">
|
|
|
- or UPDATE_MAN_NO = #{updateManNo}
|
|
|
- </if>
|
|
|
- <if test="updateManName != null and updateManName != ''">
|
|
|
- or UPDATE_MAN_NAME = #{updateManName}
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
|
|
|
- </if>
|
|
|
- <if test="deleteManNo != null and deleteManNo != ''">
|
|
|
- or DELETE_MAN_NO = #{deleteManNo}
|
|
|
- </if>
|
|
|
- <if test="deleteManName != null and deleteManName != ''">
|
|
|
- or DELETE_MAN_NAME = #{deleteManName}
|
|
|
- </if>
|
|
|
- <if test="deleteTime != null">
|
|
|
- or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
|
|
|
- </if>
|
|
|
- <if test="spotTypeNo != null and spotTypeNo != ''">
|
|
|
- or SPOT_TYPE_NO = #{spotTypeNo}
|
|
|
- </if>
|
|
|
- <if test="spotTypeName != null and spotTypeName != ''">
|
|
|
- or SPOT_TYPE_NAME = #{spotTypeName}
|
|
|
- </if>
|
|
|
- <if test="weightZero != null">
|
|
|
- or WEIGHT_ZERO = #{weightZero}
|
|
|
- </if>
|
|
|
- <if test="monitorUserIp != null and monitorUserIp != ''">
|
|
|
- or MONITOR_USER_IP = #{monitorUserIp}
|
|
|
- </if>
|
|
|
+ where 1!=1
|
|
|
+ <if test="scalePointName != null and scalePointName != ''">
|
|
|
+ or SCALE_POINT_NAME = #{scalePointName}
|
|
|
+ </if>
|
|
|
+ <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
+ or BASE_SPOT_NO = #{baseSpotNo}
|
|
|
+ </if>
|
|
|
+ <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
+ or BASE_SPOT_NAME = #{baseSpotName}
|
|
|
+ </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="validFlag != null and validFlag != ''">
|
|
|
+ or VALID_FLAG = #{validFlag}
|
|
|
+ </if>
|
|
|
+ <if test="lastTime != null">
|
|
|
+ or TO_CHAR(LAST_TIME,'yyyy-MM-dd') = '#{lastTime}'
|
|
|
+ </if>
|
|
|
+ <if test="weightTime != null">
|
|
|
+ or TO_CHAR(WEIGHT_TIME,'yyyy-MM-dd') = '#{weightTime}'
|
|
|
+ </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="weight != null">
|
|
|
+ or WEIGHT = #{weight}
|
|
|
+ </if>
|
|
|
+ <if test="collectionCode != null and collectionCode != ''">
|
|
|
+ or COLLECTION_CODE = #{collectionCode}
|
|
|
+ </if>
|
|
|
+ <if test="createManNo != null and createManNo != ''">
|
|
|
+ or CREATE_MAN_NO = #{createManNo}
|
|
|
+ </if>
|
|
|
+ <if test="createManName != null and createManName != ''">
|
|
|
+ or CREATE_MAN_NAME = #{createManName}
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
|
|
|
+ </if>
|
|
|
+ <if test="updateManNo != null and updateManNo != ''">
|
|
|
+ or UPDATE_MAN_NO = #{updateManNo}
|
|
|
+ </if>
|
|
|
+ <if test="updateManName != null and updateManName != ''">
|
|
|
+ or UPDATE_MAN_NAME = #{updateManName}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
|
|
|
+ </if>
|
|
|
+ <if test="deleteManNo != null and deleteManNo != ''">
|
|
|
+ or DELETE_MAN_NO = #{deleteManNo}
|
|
|
+ </if>
|
|
|
+ <if test="deleteManName != null and deleteManName != ''">
|
|
|
+ or DELETE_MAN_NAME = #{deleteManName}
|
|
|
+ </if>
|
|
|
+ <if test="deleteTime != null">
|
|
|
+ or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
|
|
|
+ </if>
|
|
|
+ <if test="spotTypeNo != null and spotTypeNo != ''">
|
|
|
+ or SPOT_TYPE_NO = #{spotTypeNo}
|
|
|
+ </if>
|
|
|
+ <if test="spotTypeName != null and spotTypeName != ''">
|
|
|
+ or SPOT_TYPE_NAME = #{spotTypeName}
|
|
|
+ </if>
|
|
|
+ <if test="weightZero != null">
|
|
|
+ or WEIGHT_ZERO = #{weightZero}
|
|
|
+ </if>
|
|
|
+ <if test="monitorUserIp != null and monitorUserIp != ''">
|
|
|
+ or MONITOR_USER_IP = #{monitorUserIp}
|
|
|
+ </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="rfidCar != null and rfidCar != ''">
|
|
|
+ or RFID_CAR = #{rfidCar}
|
|
|
+ </if>
|
|
|
+ <if test="photoCar != null and photoCar != ''">
|
|
|
+ or PHOTO_CAR = #{photoCar}
|
|
|
+ </if>
|
|
|
+ <if test="wgtErr != null and wgtErr != ''">
|
|
|
+ or WGT_ERR = #{wgtErr}
|
|
|
+ </if>
|
|
|
+ <if test="userIp != null and userIp != ''">
|
|
|
+ or USER_IP = #{userIp}
|
|
|
+ </if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasescalepoint.model.MeterBaseScalePoint">
|
|
|
- insert into METER_BASE_SCALE_POINT (SCALE_POINT_NO, SCALE_POINT_NAME, BASE_SPOT_NO,
|
|
|
- BASE_SPOT_NAME, WEIGH_INSTRUMENT_MODEL, WEIGH_INSTRUMENT_PARAM,
|
|
|
- MOXA_IP, MOXA_PORT, VALID_FLAG,
|
|
|
- LAST_TIME, WEIGHT_TIME, USER_NO,
|
|
|
- MONITOR_USER_NO, WEIGHT, COLLECTION_CODE,
|
|
|
- CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
- UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
- DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
|
|
|
- SPOT_TYPE_NO, SPOT_TYPE_NAME, WEIGHT_ZERO,
|
|
|
- MONITOR_USER_IP)
|
|
|
- values (#{scalePointNo,jdbcType=VARCHAR}, #{scalePointName,jdbcType=VARCHAR}, #{baseSpotNo,jdbcType=VARCHAR},
|
|
|
- #{baseSpotName,jdbcType=VARCHAR}, #{weighInstrumentModel,jdbcType=VARCHAR}, #{weighInstrumentParam,jdbcType=VARCHAR},
|
|
|
- #{moxaIp,jdbcType=VARCHAR}, #{moxaPort,jdbcType=VARCHAR}, #{validFlag,jdbcType=VARCHAR},
|
|
|
- #{lastTime,jdbcType=TIMESTAMP}, #{weightTime,jdbcType=TIMESTAMP}, #{userNo,jdbcType=VARCHAR},
|
|
|
- #{monitorUserNo,jdbcType=VARCHAR}, #{weight,jdbcType=DECIMAL}, #{collectionCode,jdbcType=VARCHAR},
|
|
|
- #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
- #{spotTypeNo,jdbcType=VARCHAR}, #{spotTypeName,jdbcType=VARCHAR}, #{weightZero,jdbcType=DECIMAL},
|
|
|
- #{monitorUserIp,jdbcType=VARCHAR})
|
|
|
+ insert into METER_BASE_SCALE_POINT (SCALE_POINT_NO, SCALE_POINT_NAME, BASE_SPOT_NO,
|
|
|
+ BASE_SPOT_NAME, WEIGH_INSTRUMENT_MODEL, WEIGH_INSTRUMENT_PARAM,
|
|
|
+ MOXA_IP, MOXA_PORT, VALID_FLAG,
|
|
|
+ LAST_TIME, WEIGHT_TIME, USER_NO,
|
|
|
+ MONITOR_USER_NO, WEIGHT, COLLECTION_CODE,
|
|
|
+ CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
+ UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
+ DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
|
|
|
+ SPOT_TYPE_NO, SPOT_TYPE_NAME, WEIGHT_ZERO,
|
|
|
+ MONITOR_USER_IP, IS_HELP, IS_TAKE_OVER,
|
|
|
+ LED_WRITER, RFID_CAR, PHOTO_CAR,
|
|
|
+ WGT_ERR, USER_IP)
|
|
|
+ values (#{scalePointNo,jdbcType=VARCHAR}, #{scalePointName,jdbcType=VARCHAR}, #{baseSpotNo,jdbcType=VARCHAR},
|
|
|
+ #{baseSpotName,jdbcType=VARCHAR}, #{weighInstrumentModel,jdbcType=VARCHAR}, #{weighInstrumentParam,jdbcType=VARCHAR},
|
|
|
+ #{moxaIp,jdbcType=VARCHAR}, #{moxaPort,jdbcType=VARCHAR}, #{validFlag,jdbcType=VARCHAR},
|
|
|
+ #{lastTime,jdbcType=TIMESTAMP}, #{weightTime,jdbcType=TIMESTAMP}, #{userNo,jdbcType=VARCHAR},
|
|
|
+ #{monitorUserNo,jdbcType=VARCHAR}, #{weight,jdbcType=DECIMAL}, #{collectionCode,jdbcType=VARCHAR},
|
|
|
+ #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
+ #{spotTypeNo,jdbcType=VARCHAR}, #{spotTypeName,jdbcType=VARCHAR}, #{weightZero,jdbcType=DECIMAL},
|
|
|
+ #{monitorUserIp,jdbcType=VARCHAR}, #{isHelp,jdbcType=VARCHAR}, #{isTakeOver,jdbcType=VARCHAR},
|
|
|
+ #{ledWriter,jdbcType=VARCHAR}, #{rfidCar,jdbcType=VARCHAR}, #{photoCar,jdbcType=VARCHAR},
|
|
|
+ #{wgtErr,jdbcType=VARCHAR}, #{userIp,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasescalepoint.model.MeterBaseScalePoint">
|
|
|
insert into METER_BASE_SCALE_POINT
|
|
|
@@ -426,6 +502,27 @@
|
|
|
<if test="monitorUserIp != null">
|
|
|
MONITOR_USER_IP,
|
|
|
</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="rfidCar != null">
|
|
|
+ RFID_CAR,
|
|
|
+ </if>
|
|
|
+ <if test="photoCar != null">
|
|
|
+ PHOTO_CAR,
|
|
|
+ </if>
|
|
|
+ <if test="wgtErr != null">
|
|
|
+ WGT_ERR,
|
|
|
+ </if>
|
|
|
+ <if test="userIp != null">
|
|
|
+ USER_IP,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="scalePointNo != null">
|
|
|
@@ -512,37 +609,65 @@
|
|
|
<if test="monitorUserIp != null">
|
|
|
#{monitorUserIp,jdbcType=VARCHAR},
|
|
|
</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="rfidCar != null">
|
|
|
+ #{rfidCar,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="photoCar != null">
|
|
|
+ #{photoCar,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wgtErr != null">
|
|
|
+ #{wgtErr,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="userIp != null">
|
|
|
+ #{userIp,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasescalepoint.model.MeterBaseScalePoint">
|
|
|
update METER_BASE_SCALE_POINT
|
|
|
set SCALE_POINT_NAME = #{scalePointName,jdbcType=VARCHAR},
|
|
|
- BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
|
|
|
- BASE_SPOT_NAME = #{baseSpotName,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_FLAG = #{validFlag,jdbcType=VARCHAR},
|
|
|
- LAST_TIME = #{lastTime,jdbcType=TIMESTAMP},
|
|
|
- WEIGHT_TIME = #{weightTime,jdbcType=TIMESTAMP},
|
|
|
- USER_NO = #{userNo,jdbcType=VARCHAR},
|
|
|
- MONITOR_USER_NO = #{monitorUserNo,jdbcType=VARCHAR},
|
|
|
- WEIGHT = #{weight,jdbcType=DECIMAL},
|
|
|
- COLLECTION_CODE = #{collectionCode,jdbcType=VARCHAR},
|
|
|
- CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
|
- CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
|
- CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
|
|
|
- UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
|
- UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
|
|
|
- DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
|
|
|
- DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
- SPOT_TYPE_NO = #{spotTypeNo,jdbcType=VARCHAR},
|
|
|
- SPOT_TYPE_NAME = #{spotTypeName,jdbcType=VARCHAR},
|
|
|
- WEIGHT_ZERO = #{weightZero,jdbcType=DECIMAL},
|
|
|
- MONITOR_USER_IP = #{monitorUserIp,jdbcType=VARCHAR}
|
|
|
+ BASE_SPOT_NO = #{baseSpotNo,jdbcType=VARCHAR},
|
|
|
+ BASE_SPOT_NAME = #{baseSpotName,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_FLAG = #{validFlag,jdbcType=VARCHAR},
|
|
|
+ LAST_TIME = #{lastTime,jdbcType=TIMESTAMP},
|
|
|
+ WEIGHT_TIME = #{weightTime,jdbcType=TIMESTAMP},
|
|
|
+ USER_NO = #{userNo,jdbcType=VARCHAR},
|
|
|
+ MONITOR_USER_NO = #{monitorUserNo,jdbcType=VARCHAR},
|
|
|
+ WEIGHT = #{weight,jdbcType=DECIMAL},
|
|
|
+ COLLECTION_CODE = #{collectionCode,jdbcType=VARCHAR},
|
|
|
+ CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
|
+ CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
|
|
|
+ UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
|
|
|
+ DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
|
|
|
+ DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
+ SPOT_TYPE_NO = #{spotTypeNo,jdbcType=VARCHAR},
|
|
|
+ SPOT_TYPE_NAME = #{spotTypeName,jdbcType=VARCHAR},
|
|
|
+ WEIGHT_ZERO = #{weightZero,jdbcType=DECIMAL},
|
|
|
+ MONITOR_USER_IP = #{monitorUserIp,jdbcType=VARCHAR},
|
|
|
+ IS_HELP = #{isHelp,jdbcType=VARCHAR},
|
|
|
+ IS_TAKE_OVER = #{isTakeOver,jdbcType=VARCHAR},
|
|
|
+ LED_WRITER = #{ledWriter,jdbcType=VARCHAR},
|
|
|
+ RFID_CAR = #{rfidCar,jdbcType=VARCHAR},
|
|
|
+ PHOTO_CAR = #{photoCar,jdbcType=VARCHAR},
|
|
|
+ WGT_ERR = #{wgtErr,jdbcType=VARCHAR},
|
|
|
+ USER_IP = #{userIp,jdbcType=VARCHAR}
|
|
|
where SCALE_POINT_NO = #{scalePointNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasescalepoint.model.MeterBaseScalePoint">
|
|
|
@@ -629,6 +754,27 @@
|
|
|
<if test="monitorUserIp != null">
|
|
|
MONITOR_USER_IP = #{monitorUserIp,jdbcType=VARCHAR},
|
|
|
</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="rfidCar != null">
|
|
|
+ RFID_CAR = #{rfidCar,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="photoCar != null">
|
|
|
+ PHOTO_CAR = #{photoCar,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wgtErr != null">
|
|
|
+ WGT_ERR = #{wgtErr,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="userIp != null">
|
|
|
+ USER_IP = #{userIp,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where SCALE_POINT_NO = #{scalePointNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -639,164 +785,194 @@
|
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
<include refid="select"/>
|
|
|
<include refid="where"/>
|
|
|
- order by CREATE_TIME desc
|
|
|
</select>
|
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
<include refid="select"/>
|
|
|
<include refid="whereLike"/>
|
|
|
- order by CREATE_TIME desc
|
|
|
</select>
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
- insert into METER_BASE_SCALE_POINT
|
|
|
- (SCALE_POINT_NO,
|
|
|
- SCALE_POINT_NAME, BASE_SPOT_NO, BASE_SPOT_NAME,
|
|
|
- WEIGH_INSTRUMENT_MODEL, WEIGH_INSTRUMENT_PARAM,
|
|
|
- MOXA_IP, MOXA_PORT, VALID_FLAG,
|
|
|
- LAST_TIME, WEIGHT_TIME, USER_NO,
|
|
|
- MONITOR_USER_NO, WEIGHT, COLLECTION_CODE,
|
|
|
- CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
- UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
- DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
|
|
|
- SPOT_TYPE_NO, SPOT_TYPE_NAME, WEIGHT_ZERO,
|
|
|
- MONITOR_USER_IP)
|
|
|
- ( <foreach collection="list" item="item" separator="union all">
|
|
|
- select
|
|
|
- #{item.scalePointNo,jdbcType=VARCHAR},
|
|
|
- #{item.scalePointName,jdbcType=VARCHAR}, #{item.baseSpotNo,jdbcType=VARCHAR}, #{item.baseSpotName,jdbcType=VARCHAR},
|
|
|
- #{item.weighInstrumentModel,jdbcType=VARCHAR}, #{item.weighInstrumentParam,jdbcType=VARCHAR},
|
|
|
- #{item.moxaIp,jdbcType=VARCHAR}, #{item.moxaPort,jdbcType=VARCHAR}, #{item.validFlag,jdbcType=VARCHAR},
|
|
|
- #{item.lastTime,jdbcType=TIMESTAMP}, #{item.weightTime,jdbcType=TIMESTAMP}, #{item.userNo,jdbcType=VARCHAR},
|
|
|
- #{item.monitorUserNo,jdbcType=VARCHAR}, #{item.weight,jdbcType=DECIMAL}, #{item.collectionCode,jdbcType=VARCHAR},
|
|
|
- #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.spotTypeNo,jdbcType=VARCHAR}, #{item.spotTypeName,jdbcType=VARCHAR}, #{item.weightZero,jdbcType=DECIMAL},
|
|
|
- #{item.monitorUserIp,jdbcType=VARCHAR} from dual
|
|
|
- </foreach> )
|
|
|
+ insert into METER_BASE_SCALE_POINT
|
|
|
+ (SCALE_POINT_NO,
|
|
|
+ SCALE_POINT_NAME, BASE_SPOT_NO, BASE_SPOT_NAME,
|
|
|
+ WEIGH_INSTRUMENT_MODEL, WEIGH_INSTRUMENT_PARAM,
|
|
|
+ MOXA_IP, MOXA_PORT, VALID_FLAG,
|
|
|
+ LAST_TIME, WEIGHT_TIME, USER_NO,
|
|
|
+ MONITOR_USER_NO, WEIGHT, COLLECTION_CODE,
|
|
|
+ CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
+ UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
+ DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
|
|
|
+ SPOT_TYPE_NO, SPOT_TYPE_NAME, WEIGHT_ZERO,
|
|
|
+ MONITOR_USER_IP, IS_HELP, IS_TAKE_OVER,
|
|
|
+ LED_WRITER, RFID_CAR, PHOTO_CAR,
|
|
|
+ WGT_ERR, USER_IP)
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
+ select
|
|
|
+ #{item.scalePointNo,jdbcType=VARCHAR},
|
|
|
+ #{item.scalePointName,jdbcType=VARCHAR}, #{item.baseSpotNo,jdbcType=VARCHAR}, #{item.baseSpotName,jdbcType=VARCHAR},
|
|
|
+ #{item.weighInstrumentModel,jdbcType=VARCHAR}, #{item.weighInstrumentParam,jdbcType=VARCHAR},
|
|
|
+ #{item.moxaIp,jdbcType=VARCHAR}, #{item.moxaPort,jdbcType=VARCHAR}, #{item.validFlag,jdbcType=VARCHAR},
|
|
|
+ #{item.lastTime,jdbcType=TIMESTAMP}, #{item.weightTime,jdbcType=TIMESTAMP}, #{item.userNo,jdbcType=VARCHAR},
|
|
|
+ #{item.monitorUserNo,jdbcType=VARCHAR}, #{item.weight,jdbcType=DECIMAL}, #{item.collectionCode,jdbcType=VARCHAR},
|
|
|
+ #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.spotTypeNo,jdbcType=VARCHAR}, #{item.spotTypeName,jdbcType=VARCHAR}, #{item.weightZero,jdbcType=DECIMAL},
|
|
|
+ #{item.monitorUserIp,jdbcType=VARCHAR}, #{item.isHelp,jdbcType=VARCHAR}, #{item.isTakeOver,jdbcType=VARCHAR},
|
|
|
+ #{item.ledWriter,jdbcType=VARCHAR}, #{item.rfidCar,jdbcType=VARCHAR}, #{item.photoCar,jdbcType=VARCHAR},
|
|
|
+ #{item.wgtErr,jdbcType=VARCHAR}, #{item.userIp,jdbcType=VARCHAR} from dual
|
|
|
+ </foreach> )
|
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
|
- update METER_BASE_SCALE_POINT
|
|
|
- set
|
|
|
- SCALE_POINT_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.scalePointNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,SCALE_POINT_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.scalePointName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,BASE_SPOT_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.baseSpotNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,BASE_SPOT_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.baseSpotName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,WEIGH_INSTRUMENT_MODEL=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.weighInstrumentModel,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,WEIGH_INSTRUMENT_PARAM=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.weighInstrumentParam,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,MOXA_IP=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.moxaIp,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,MOXA_PORT=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.moxaPort,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,VALID_FLAG=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.validFlag,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,LAST_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.lastTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,WEIGHT_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.weightTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,USER_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.userNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,MONITOR_USER_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.monitorUserNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,WEIGHT=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.weight,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,COLLECTION_CODE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.collectionCode,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CREATE_MAN_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CREATE_MAN_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,CREATE_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,UPDATE_MAN_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,UPDATE_MAN_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,UPDATE_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,DELETE_MAN_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,DELETE_MAN_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,DELETE_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,SPOT_TYPE_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.spotTypeNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,SPOT_TYPE_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.spotTypeName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,WEIGHT_ZERO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.weightZero,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,MONITOR_USER_IP=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
- when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.monitorUserIp,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- where SCALE_POINT_NO in
|
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
- #{item.scalePointNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
+ update METER_BASE_SCALE_POINT
|
|
|
+ set
|
|
|
+ SCALE_POINT_NO=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.scalePointNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,SCALE_POINT_NAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.scalePointName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,BASE_SPOT_NO=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.baseSpotNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,BASE_SPOT_NAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.baseSpotName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,WEIGH_INSTRUMENT_MODEL=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.weighInstrumentModel,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,WEIGH_INSTRUMENT_PARAM=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.weighInstrumentParam,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,MOXA_IP=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.moxaIp,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,MOXA_PORT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.moxaPort,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,VALID_FLAG=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.validFlag,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,LAST_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.lastTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,WEIGHT_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.weightTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,USER_NO=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.userNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,MONITOR_USER_NO=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.monitorUserNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,WEIGHT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.weight,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,COLLECTION_CODE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.collectionCode,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CREATE_MAN_NO=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.createManNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CREATE_MAN_NAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.createManName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CREATE_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_MAN_NO=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_MAN_NAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,DELETE_MAN_NO=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,DELETE_MAN_NAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,DELETE_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,SPOT_TYPE_NO=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.spotTypeNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,SPOT_TYPE_NAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.spotTypeName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,WEIGHT_ZERO=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.weightZero,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,MONITOR_USER_IP=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.monitorUserIp,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,IS_HELP=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.isHelp,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,IS_TAKE_OVER=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.isTakeOver,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,LED_WRITER=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.ledWriter,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,RFID_CAR=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.rfidCar,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,PHOTO_CAR=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.photoCar,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,WGT_ERR=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.wgtErr,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,USER_IP=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case SCALE_POINT_NO" close="end">
|
|
|
+ when #{item.scalePointNo,jdbcType=VARCHAR} then #{item.userIp,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ where SCALE_POINT_NO in
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
+ #{item.scalePointNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
</update>
|
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
|
delete from METER_BASE_SCALE_POINT
|
|
|
- where SCALE_POINT_NO in
|
|
|
+ where SCALE_POINT_NO in
|
|
|
<foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
#{id}
|
|
|
</foreach>
|