|
@@ -21,18 +21,33 @@
|
|
|
<result column="WEIGHT_DATE4" jdbcType="TIMESTAMP" property="weightDate4" />
|
|
<result column="WEIGHT_DATE4" jdbcType="TIMESTAMP" property="weightDate4" />
|
|
|
<result column="WEIGHT_NUM5" jdbcType="DECIMAL" property="weightNum5" />
|
|
<result column="WEIGHT_NUM5" jdbcType="DECIMAL" property="weightNum5" />
|
|
|
<result column="WEIGHT_DATE5" jdbcType="TIMESTAMP" property="weightDate5" />
|
|
<result column="WEIGHT_DATE5" jdbcType="TIMESTAMP" property="weightDate5" />
|
|
|
|
|
+ <result column="BASE_SPOT_NO1" jdbcType="VARCHAR" property="baseSpotNo1" />
|
|
|
|
|
+ <result column="BASE_SPOT_NAME1" jdbcType="VARCHAR" property="baseSpotName1" />
|
|
|
|
|
+ <result column="BASE_SPOT_NO2" jdbcType="VARCHAR" property="baseSpotNo2" />
|
|
|
|
|
+ <result column="BASE_SPOT_NAME2" jdbcType="VARCHAR" property="baseSpotName2" />
|
|
|
|
|
+ <result column="BASE_SPOT_NO3" jdbcType="VARCHAR" property="baseSpotNo3" />
|
|
|
|
|
+ <result column="BASE_SPOT_NAME3" jdbcType="VARCHAR" property="baseSpotName3" />
|
|
|
|
|
+ <result column="BASE_SPOT_NO4" jdbcType="VARCHAR" property="baseSpotNo4" />
|
|
|
|
|
+ <result column="BASE_SPOT_NAME4" jdbcType="VARCHAR" property="baseSpotName4" />
|
|
|
|
|
+ <result column="BASE_SPOT_NO5" jdbcType="VARCHAR" property="baseSpotNo5" />
|
|
|
|
|
+ <result column="BASE_SPOT_NAME5" jdbcType="VARCHAR" property="baseSpotName5" />
|
|
|
|
|
+ <result column="COMPARE_TYPE" jdbcType="VARCHAR" property="compareType" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
|
COMPARE_SPOT_ID, VALUE_FLAG, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
COMPARE_SPOT_ID, VALUE_FLAG, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
CREATE_MAN_PHONE, UPDATE_MAN_PHONE, CAR_NO, WEIGHT_NUM1, WEIGHT_DATE1, WEIGHT_NUM2,
|
|
CREATE_MAN_PHONE, UPDATE_MAN_PHONE, CAR_NO, WEIGHT_NUM1, WEIGHT_DATE1, WEIGHT_NUM2,
|
|
|
WEIGHT_DATE2, WEIGHT_NUM3, WEIGHT_DATE3, WEIGHT_NUM4, WEIGHT_DATE4, WEIGHT_NUM5,
|
|
WEIGHT_DATE2, WEIGHT_NUM3, WEIGHT_DATE3, WEIGHT_NUM4, WEIGHT_DATE4, WEIGHT_NUM5,
|
|
|
- WEIGHT_DATE5
|
|
|
|
|
|
|
+ WEIGHT_DATE5, BASE_SPOT_NO1, BASE_SPOT_NAME1, BASE_SPOT_NO2, BASE_SPOT_NAME2, BASE_SPOT_NO3,
|
|
|
|
|
+ BASE_SPOT_NAME3, BASE_SPOT_NO4, BASE_SPOT_NAME4, BASE_SPOT_NO5, BASE_SPOT_NAME5,
|
|
|
|
|
+ COMPARE_TYPE
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
|
t.COMPARE_SPOT_ID, t.VALUE_FLAG, t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NAME,
|
|
t.COMPARE_SPOT_ID, t.VALUE_FLAG, t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NAME,
|
|
|
t.UPDATE_TIME, t.CREATE_MAN_PHONE, t.UPDATE_MAN_PHONE, t.CAR_NO, t.WEIGHT_NUM1, t.WEIGHT_DATE1,
|
|
t.UPDATE_TIME, t.CREATE_MAN_PHONE, t.UPDATE_MAN_PHONE, t.CAR_NO, t.WEIGHT_NUM1, t.WEIGHT_DATE1,
|
|
|
t.WEIGHT_NUM2, t.WEIGHT_DATE2, t.WEIGHT_NUM3, t.WEIGHT_DATE3, t.WEIGHT_NUM4, t.WEIGHT_DATE4,
|
|
t.WEIGHT_NUM2, t.WEIGHT_DATE2, t.WEIGHT_NUM3, t.WEIGHT_DATE3, t.WEIGHT_NUM4, t.WEIGHT_DATE4,
|
|
|
- t.WEIGHT_NUM5, t.WEIGHT_DATE5
|
|
|
|
|
|
|
+ t.WEIGHT_NUM5, t.WEIGHT_DATE5, t.BASE_SPOT_NO1, t.BASE_SPOT_NAME1, t.BASE_SPOT_NO2,
|
|
|
|
|
+ t.BASE_SPOT_NAME2, t.BASE_SPOT_NO3, t.BASE_SPOT_NAME3, t.BASE_SPOT_NO4, t.BASE_SPOT_NAME4,
|
|
|
|
|
+ t.BASE_SPOT_NO5, t.BASE_SPOT_NAME5, t.COMPARE_TYPE
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="select">
|
|
<sql id="select">
|
|
|
SELECT <include refid="columns"/> FROM METER_WORK_COMPARE_SPOT
|
|
SELECT <include refid="columns"/> FROM METER_WORK_COMPARE_SPOT
|
|
@@ -99,6 +114,39 @@
|
|
|
<if test="weightDate5 != null">
|
|
<if test="weightDate5 != null">
|
|
|
and TO_CHAR(WEIGHT_DATE5,'yyyy-MM-dd') = #{weightDate5}
|
|
and TO_CHAR(WEIGHT_DATE5,'yyyy-MM-dd') = #{weightDate5}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="baseSpotNo1 != null and baseSpotNo1 != ''">
|
|
|
|
|
+ and BASE_SPOT_NO1 = #{baseSpotNo1}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName1 != null and baseSpotName1 != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME1 = #{baseSpotName1}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo2 != null and baseSpotNo2 != ''">
|
|
|
|
|
+ and BASE_SPOT_NO2 = #{baseSpotNo2}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName2 != null and baseSpotName2 != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME2 = #{baseSpotName2}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo3 != null and baseSpotNo3 != ''">
|
|
|
|
|
+ and BASE_SPOT_NO3 = #{baseSpotNo3}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName3 != null and baseSpotName3 != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME3 = #{baseSpotName3}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo4 != null and baseSpotNo4 != ''">
|
|
|
|
|
+ and BASE_SPOT_NO4 = #{baseSpotNo4}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName4 != null and baseSpotName4 != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME4 = #{baseSpotName4}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo5 != null and baseSpotNo5 != ''">
|
|
|
|
|
+ and BASE_SPOT_NO5 = #{baseSpotNo5}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName5 != null and baseSpotName5 != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME5 = #{baseSpotName5}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="compareType != null and compareType != ''">
|
|
|
|
|
+ and COMPARE_TYPE = #{compareType}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -160,6 +208,39 @@
|
|
|
<if test="weightDate5 != null">
|
|
<if test="weightDate5 != null">
|
|
|
and TO_CHAR(WEIGHT_DATE5,'yyyy-MM-dd') = #{weightDate5}
|
|
and TO_CHAR(WEIGHT_DATE5,'yyyy-MM-dd') = #{weightDate5}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="baseSpotNo1 != null and baseSpotNo1 != ''">
|
|
|
|
|
+ and BASE_SPOT_NO1 LIKE '%${baseSpotNo1}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName1 != null and baseSpotName1 != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME1 LIKE '%${baseSpotName1}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo2 != null and baseSpotNo2 != ''">
|
|
|
|
|
+ and BASE_SPOT_NO2 LIKE '%${baseSpotNo2}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName2 != null and baseSpotName2 != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME2 LIKE '%${baseSpotName2}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo3 != null and baseSpotNo3 != ''">
|
|
|
|
|
+ and BASE_SPOT_NO3 LIKE '%${baseSpotNo3}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName3 != null and baseSpotName3 != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME3 LIKE '%${baseSpotName3}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo4 != null and baseSpotNo4 != ''">
|
|
|
|
|
+ and BASE_SPOT_NO4 LIKE '%${baseSpotNo4}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName4 != null and baseSpotName4 != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME4 LIKE '%${baseSpotName4}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo5 != null and baseSpotNo5 != ''">
|
|
|
|
|
+ and BASE_SPOT_NO5 LIKE '%${baseSpotNo5}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName5 != null and baseSpotName5 != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME5 LIKE '%${baseSpotName5}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="compareType != null and compareType != ''">
|
|
|
|
|
+ and COMPARE_TYPE LIKE '%${compareType}%'
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
@@ -223,6 +304,39 @@
|
|
|
<if test="weightDate5 != null">
|
|
<if test="weightDate5 != null">
|
|
|
or TO_CHAR(WEIGHT_DATE5,'yyyy-MM-dd') = '#{weightDate5}'
|
|
or TO_CHAR(WEIGHT_DATE5,'yyyy-MM-dd') = '#{weightDate5}'
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="baseSpotNo1 != null and baseSpotNo1 != ''">
|
|
|
|
|
+ or BASE_SPOT_NO1 = #{baseSpotNo1}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName1 != null and baseSpotName1 != ''">
|
|
|
|
|
+ or BASE_SPOT_NAME1 = #{baseSpotName1}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo2 != null and baseSpotNo2 != ''">
|
|
|
|
|
+ or BASE_SPOT_NO2 = #{baseSpotNo2}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName2 != null and baseSpotName2 != ''">
|
|
|
|
|
+ or BASE_SPOT_NAME2 = #{baseSpotName2}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo3 != null and baseSpotNo3 != ''">
|
|
|
|
|
+ or BASE_SPOT_NO3 = #{baseSpotNo3}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName3 != null and baseSpotName3 != ''">
|
|
|
|
|
+ or BASE_SPOT_NAME3 = #{baseSpotName3}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo4 != null and baseSpotNo4 != ''">
|
|
|
|
|
+ or BASE_SPOT_NO4 = #{baseSpotNo4}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName4 != null and baseSpotName4 != ''">
|
|
|
|
|
+ or BASE_SPOT_NAME4 = #{baseSpotName4}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo5 != null and baseSpotNo5 != ''">
|
|
|
|
|
+ or BASE_SPOT_NO5 = #{baseSpotNo5}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName5 != null and baseSpotName5 != ''">
|
|
|
|
|
+ or BASE_SPOT_NAME5 = #{baseSpotName5}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="compareType != null and compareType != ''">
|
|
|
|
|
+ or COMPARE_TYPE = #{compareType}
|
|
|
|
|
+ </if>
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.meterwork.meterworkcomparespot.model.MeterWorkCompareSpot">
|
|
<insert id="insert" parameterType="com.steerinfo.meterwork.meterworkcomparespot.model.MeterWorkCompareSpot">
|
|
|
insert into METER_WORK_COMPARE_SPOT (COMPARE_SPOT_ID, VALUE_FLAG, CREATE_MAN_NAME,
|
|
insert into METER_WORK_COMPARE_SPOT (COMPARE_SPOT_ID, VALUE_FLAG, CREATE_MAN_NAME,
|
|
@@ -231,14 +345,22 @@
|
|
|
WEIGHT_NUM1, WEIGHT_DATE1, WEIGHT_NUM2,
|
|
WEIGHT_NUM1, WEIGHT_DATE1, WEIGHT_NUM2,
|
|
|
WEIGHT_DATE2, WEIGHT_NUM3, WEIGHT_DATE3,
|
|
WEIGHT_DATE2, WEIGHT_NUM3, WEIGHT_DATE3,
|
|
|
WEIGHT_NUM4, WEIGHT_DATE4, WEIGHT_NUM5,
|
|
WEIGHT_NUM4, WEIGHT_DATE4, WEIGHT_NUM5,
|
|
|
- WEIGHT_DATE5)
|
|
|
|
|
|
|
+ WEIGHT_DATE5, BASE_SPOT_NO1, BASE_SPOT_NAME1,
|
|
|
|
|
+ BASE_SPOT_NO2, BASE_SPOT_NAME2, BASE_SPOT_NO3,
|
|
|
|
|
+ BASE_SPOT_NAME3, BASE_SPOT_NO4, BASE_SPOT_NAME4,
|
|
|
|
|
+ BASE_SPOT_NO5, BASE_SPOT_NAME5, COMPARE_TYPE
|
|
|
|
|
+ )
|
|
|
values (#{compareSpotId,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR},
|
|
values (#{compareSpotId,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
#{createManPhone,jdbcType=VARCHAR}, #{updateManPhone,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR},
|
|
#{createManPhone,jdbcType=VARCHAR}, #{updateManPhone,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR},
|
|
|
#{weightNum1,jdbcType=DECIMAL}, #{weightDate1,jdbcType=TIMESTAMP}, #{weightNum2,jdbcType=DECIMAL},
|
|
#{weightNum1,jdbcType=DECIMAL}, #{weightDate1,jdbcType=TIMESTAMP}, #{weightNum2,jdbcType=DECIMAL},
|
|
|
#{weightDate2,jdbcType=TIMESTAMP}, #{weightNum3,jdbcType=DECIMAL}, #{weightDate3,jdbcType=TIMESTAMP},
|
|
#{weightDate2,jdbcType=TIMESTAMP}, #{weightNum3,jdbcType=DECIMAL}, #{weightDate3,jdbcType=TIMESTAMP},
|
|
|
#{weightNum4,jdbcType=DECIMAL}, #{weightDate4,jdbcType=TIMESTAMP}, #{weightNum5,jdbcType=DECIMAL},
|
|
#{weightNum4,jdbcType=DECIMAL}, #{weightDate4,jdbcType=TIMESTAMP}, #{weightNum5,jdbcType=DECIMAL},
|
|
|
- #{weightDate5,jdbcType=TIMESTAMP})
|
|
|
|
|
|
|
+ #{weightDate5,jdbcType=TIMESTAMP}, #{baseSpotNo1,jdbcType=VARCHAR}, #{baseSpotName1,jdbcType=VARCHAR},
|
|
|
|
|
+ #{baseSpotNo2,jdbcType=VARCHAR}, #{baseSpotName2,jdbcType=VARCHAR}, #{baseSpotNo3,jdbcType=VARCHAR},
|
|
|
|
|
+ #{baseSpotName3,jdbcType=VARCHAR}, #{baseSpotNo4,jdbcType=VARCHAR}, #{baseSpotName4,jdbcType=VARCHAR},
|
|
|
|
|
+ #{baseSpotNo5,jdbcType=VARCHAR}, #{baseSpotName5,jdbcType=VARCHAR}, #{compareType,jdbcType=VARCHAR}
|
|
|
|
|
+ )
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkcomparespot.model.MeterWorkCompareSpot">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkcomparespot.model.MeterWorkCompareSpot">
|
|
|
insert into METER_WORK_COMPARE_SPOT
|
|
insert into METER_WORK_COMPARE_SPOT
|
|
@@ -300,6 +422,39 @@
|
|
|
<if test="weightDate5 != null">
|
|
<if test="weightDate5 != null">
|
|
|
WEIGHT_DATE5,
|
|
WEIGHT_DATE5,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="baseSpotNo1 != null">
|
|
|
|
|
+ BASE_SPOT_NO1,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName1 != null">
|
|
|
|
|
+ BASE_SPOT_NAME1,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo2 != null">
|
|
|
|
|
+ BASE_SPOT_NO2,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName2 != null">
|
|
|
|
|
+ BASE_SPOT_NAME2,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo3 != null">
|
|
|
|
|
+ BASE_SPOT_NO3,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName3 != null">
|
|
|
|
|
+ BASE_SPOT_NAME3,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo4 != null">
|
|
|
|
|
+ BASE_SPOT_NO4,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName4 != null">
|
|
|
|
|
+ BASE_SPOT_NAME4,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo5 != null">
|
|
|
|
|
+ BASE_SPOT_NO5,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName5 != null">
|
|
|
|
|
+ BASE_SPOT_NAME5,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="compareType != null">
|
|
|
|
|
+ COMPARE_TYPE,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="compareSpotId != null">
|
|
<if test="compareSpotId != null">
|
|
@@ -359,6 +514,39 @@
|
|
|
<if test="weightDate5 != null">
|
|
<if test="weightDate5 != null">
|
|
|
#{weightDate5,jdbcType=TIMESTAMP},
|
|
#{weightDate5,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="baseSpotNo1 != null">
|
|
|
|
|
+ #{baseSpotNo1,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName1 != null">
|
|
|
|
|
+ #{baseSpotName1,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo2 != null">
|
|
|
|
|
+ #{baseSpotNo2,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName2 != null">
|
|
|
|
|
+ #{baseSpotName2,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo3 != null">
|
|
|
|
|
+ #{baseSpotNo3,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName3 != null">
|
|
|
|
|
+ #{baseSpotName3,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo4 != null">
|
|
|
|
|
+ #{baseSpotNo4,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName4 != null">
|
|
|
|
|
+ #{baseSpotName4,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo5 != null">
|
|
|
|
|
+ #{baseSpotNo5,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName5 != null">
|
|
|
|
|
+ #{baseSpotName5,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="compareType != null">
|
|
|
|
|
+ #{compareType,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkcomparespot.model.MeterWorkCompareSpot">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkcomparespot.model.MeterWorkCompareSpot">
|
|
@@ -380,7 +568,18 @@
|
|
|
WEIGHT_NUM4 = #{weightNum4,jdbcType=DECIMAL},
|
|
WEIGHT_NUM4 = #{weightNum4,jdbcType=DECIMAL},
|
|
|
WEIGHT_DATE4 = #{weightDate4,jdbcType=TIMESTAMP},
|
|
WEIGHT_DATE4 = #{weightDate4,jdbcType=TIMESTAMP},
|
|
|
WEIGHT_NUM5 = #{weightNum5,jdbcType=DECIMAL},
|
|
WEIGHT_NUM5 = #{weightNum5,jdbcType=DECIMAL},
|
|
|
- WEIGHT_DATE5 = #{weightDate5,jdbcType=TIMESTAMP}
|
|
|
|
|
|
|
+ WEIGHT_DATE5 = #{weightDate5,jdbcType=TIMESTAMP},
|
|
|
|
|
+ BASE_SPOT_NO1 = #{baseSpotNo1,jdbcType=VARCHAR},
|
|
|
|
|
+ BASE_SPOT_NAME1 = #{baseSpotName1,jdbcType=VARCHAR},
|
|
|
|
|
+ BASE_SPOT_NO2 = #{baseSpotNo2,jdbcType=VARCHAR},
|
|
|
|
|
+ BASE_SPOT_NAME2 = #{baseSpotName2,jdbcType=VARCHAR},
|
|
|
|
|
+ BASE_SPOT_NO3 = #{baseSpotNo3,jdbcType=VARCHAR},
|
|
|
|
|
+ BASE_SPOT_NAME3 = #{baseSpotName3,jdbcType=VARCHAR},
|
|
|
|
|
+ BASE_SPOT_NO4 = #{baseSpotNo4,jdbcType=VARCHAR},
|
|
|
|
|
+ BASE_SPOT_NAME4 = #{baseSpotName4,jdbcType=VARCHAR},
|
|
|
|
|
+ BASE_SPOT_NO5 = #{baseSpotNo5,jdbcType=VARCHAR},
|
|
|
|
|
+ BASE_SPOT_NAME5 = #{baseSpotName5,jdbcType=VARCHAR},
|
|
|
|
|
+ COMPARE_TYPE = #{compareType,jdbcType=VARCHAR}
|
|
|
where COMPARE_SPOT_ID = #{compareSpotId,jdbcType=VARCHAR}
|
|
where COMPARE_SPOT_ID = #{compareSpotId,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkcomparespot.model.MeterWorkCompareSpot">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkcomparespot.model.MeterWorkCompareSpot">
|
|
@@ -440,6 +639,39 @@
|
|
|
<if test="weightDate5 != null">
|
|
<if test="weightDate5 != null">
|
|
|
WEIGHT_DATE5 = #{weightDate5,jdbcType=TIMESTAMP},
|
|
WEIGHT_DATE5 = #{weightDate5,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="baseSpotNo1 != null">
|
|
|
|
|
+ BASE_SPOT_NO1 = #{baseSpotNo1,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName1 != null">
|
|
|
|
|
+ BASE_SPOT_NAME1 = #{baseSpotName1,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo2 != null">
|
|
|
|
|
+ BASE_SPOT_NO2 = #{baseSpotNo2,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName2 != null">
|
|
|
|
|
+ BASE_SPOT_NAME2 = #{baseSpotName2,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo3 != null">
|
|
|
|
|
+ BASE_SPOT_NO3 = #{baseSpotNo3,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName3 != null">
|
|
|
|
|
+ BASE_SPOT_NAME3 = #{baseSpotName3,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo4 != null">
|
|
|
|
|
+ BASE_SPOT_NO4 = #{baseSpotNo4,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName4 != null">
|
|
|
|
|
+ BASE_SPOT_NAME4 = #{baseSpotName4,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo5 != null">
|
|
|
|
|
+ BASE_SPOT_NO5 = #{baseSpotNo5,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName5 != null">
|
|
|
|
|
+ BASE_SPOT_NAME5 = #{baseSpotName5,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="compareType != null">
|
|
|
|
|
+ COMPARE_TYPE = #{compareType,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where COMPARE_SPOT_ID = #{compareSpotId,jdbcType=VARCHAR}
|
|
where COMPARE_SPOT_ID = #{compareSpotId,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
@@ -464,7 +696,11 @@
|
|
|
CAR_NO, WEIGHT_NUM1, WEIGHT_DATE1,
|
|
CAR_NO, WEIGHT_NUM1, WEIGHT_DATE1,
|
|
|
WEIGHT_NUM2, WEIGHT_DATE2, WEIGHT_NUM3,
|
|
WEIGHT_NUM2, WEIGHT_DATE2, WEIGHT_NUM3,
|
|
|
WEIGHT_DATE3, WEIGHT_NUM4, WEIGHT_DATE4,
|
|
WEIGHT_DATE3, WEIGHT_NUM4, WEIGHT_DATE4,
|
|
|
- WEIGHT_NUM5, WEIGHT_DATE5)
|
|
|
|
|
|
|
+ WEIGHT_NUM5, WEIGHT_DATE5, BASE_SPOT_NO1,
|
|
|
|
|
+ BASE_SPOT_NAME1, BASE_SPOT_NO2, BASE_SPOT_NAME2,
|
|
|
|
|
+ BASE_SPOT_NO3, BASE_SPOT_NAME3, BASE_SPOT_NO4,
|
|
|
|
|
+ BASE_SPOT_NAME4, BASE_SPOT_NO5, BASE_SPOT_NAME5,
|
|
|
|
|
+ COMPARE_TYPE)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
select
|
|
|
#{item.compareSpotId,jdbcType=VARCHAR},
|
|
#{item.compareSpotId,jdbcType=VARCHAR},
|
|
@@ -474,7 +710,11 @@
|
|
|
#{item.carNo,jdbcType=VARCHAR}, #{item.weightNum1,jdbcType=DECIMAL}, #{item.weightDate1,jdbcType=TIMESTAMP},
|
|
#{item.carNo,jdbcType=VARCHAR}, #{item.weightNum1,jdbcType=DECIMAL}, #{item.weightDate1,jdbcType=TIMESTAMP},
|
|
|
#{item.weightNum2,jdbcType=DECIMAL}, #{item.weightDate2,jdbcType=TIMESTAMP}, #{item.weightNum3,jdbcType=DECIMAL},
|
|
#{item.weightNum2,jdbcType=DECIMAL}, #{item.weightDate2,jdbcType=TIMESTAMP}, #{item.weightNum3,jdbcType=DECIMAL},
|
|
|
#{item.weightDate3,jdbcType=TIMESTAMP}, #{item.weightNum4,jdbcType=DECIMAL}, #{item.weightDate4,jdbcType=TIMESTAMP},
|
|
#{item.weightDate3,jdbcType=TIMESTAMP}, #{item.weightNum4,jdbcType=DECIMAL}, #{item.weightDate4,jdbcType=TIMESTAMP},
|
|
|
- #{item.weightNum5,jdbcType=DECIMAL}, #{item.weightDate5,jdbcType=TIMESTAMP} from dual
|
|
|
|
|
|
|
+ #{item.weightNum5,jdbcType=DECIMAL}, #{item.weightDate5,jdbcType=TIMESTAMP}, #{item.baseSpotNo1,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.baseSpotName1,jdbcType=VARCHAR}, #{item.baseSpotNo2,jdbcType=VARCHAR}, #{item.baseSpotName2,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.baseSpotNo3,jdbcType=VARCHAR}, #{item.baseSpotName3,jdbcType=VARCHAR}, #{item.baseSpotNo4,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.baseSpotName4,jdbcType=VARCHAR}, #{item.baseSpotNo5,jdbcType=VARCHAR}, #{item.baseSpotName5,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.compareType,jdbcType=VARCHAR} from dual
|
|
|
</foreach> )
|
|
</foreach> )
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -556,6 +796,50 @@
|
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case COMPARE_SPOT_ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case COMPARE_SPOT_ID" close="end">
|
|
|
when #{item.compareSpotId,jdbcType=VARCHAR} then #{item.weightDate5,jdbcType=TIMESTAMP}
|
|
when #{item.compareSpotId,jdbcType=VARCHAR} then #{item.weightDate5,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
+ ,BASE_SPOT_NO1=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case COMPARE_SPOT_ID" close="end">
|
|
|
|
|
+ when #{item.compareSpotId,jdbcType=VARCHAR} then #{item.baseSpotNo1,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BASE_SPOT_NAME1=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case COMPARE_SPOT_ID" close="end">
|
|
|
|
|
+ when #{item.compareSpotId,jdbcType=VARCHAR} then #{item.baseSpotName1,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BASE_SPOT_NO2=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case COMPARE_SPOT_ID" close="end">
|
|
|
|
|
+ when #{item.compareSpotId,jdbcType=VARCHAR} then #{item.baseSpotNo2,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BASE_SPOT_NAME2=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case COMPARE_SPOT_ID" close="end">
|
|
|
|
|
+ when #{item.compareSpotId,jdbcType=VARCHAR} then #{item.baseSpotName2,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BASE_SPOT_NO3=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case COMPARE_SPOT_ID" close="end">
|
|
|
|
|
+ when #{item.compareSpotId,jdbcType=VARCHAR} then #{item.baseSpotNo3,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BASE_SPOT_NAME3=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case COMPARE_SPOT_ID" close="end">
|
|
|
|
|
+ when #{item.compareSpotId,jdbcType=VARCHAR} then #{item.baseSpotName3,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BASE_SPOT_NO4=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case COMPARE_SPOT_ID" close="end">
|
|
|
|
|
+ when #{item.compareSpotId,jdbcType=VARCHAR} then #{item.baseSpotNo4,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BASE_SPOT_NAME4=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case COMPARE_SPOT_ID" close="end">
|
|
|
|
|
+ when #{item.compareSpotId,jdbcType=VARCHAR} then #{item.baseSpotName4,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BASE_SPOT_NO5=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case COMPARE_SPOT_ID" close="end">
|
|
|
|
|
+ when #{item.compareSpotId,jdbcType=VARCHAR} then #{item.baseSpotNo5,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,BASE_SPOT_NAME5=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case COMPARE_SPOT_ID" close="end">
|
|
|
|
|
+ when #{item.compareSpotId,jdbcType=VARCHAR} then #{item.baseSpotName5,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,COMPARE_TYPE=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case COMPARE_SPOT_ID" close="end">
|
|
|
|
|
+ when #{item.compareSpotId,jdbcType=VARCHAR} then #{item.compareType,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
where COMPARE_SPOT_ID in
|
|
where COMPARE_SPOT_ID in
|
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
#{item.compareSpotId,jdbcType=VARCHAR}
|
|
#{item.compareSpotId,jdbcType=VARCHAR}
|