|
@@ -14,16 +14,26 @@
|
|
|
<result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
|
|
<result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
|
|
|
<result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
|
|
<result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
|
|
|
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
+ <result column="VALID_FLAG" jdbcType="VARCHAR" property="validFlag" />
|
|
|
|
|
+ <result column="UPDATE_MAN_NO" jdbcType="OTHER" property="updateManNo" />
|
|
|
|
|
+ <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
|
|
|
|
|
+ <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
+ <result column="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
|
|
|
|
|
+ <result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
|
|
|
|
|
+ <result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
|
|
|
|
|
+ <result column="CALIBRATION_TIME_NO" jdbcType="VARCHAR" property="calibrationTimeNo" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
|
RELATION_NO, BASE_SPOT_NO, BASE_SPOT_NAME, CALIBRATION_TIME_UNIT, START_TIME, END_TIME,
|
|
RELATION_NO, BASE_SPOT_NO, BASE_SPOT_NAME, CALIBRATION_TIME_UNIT, START_TIME, END_TIME,
|
|
|
DAY_NUM, CALIBRATION_TYPE_NO, CALIBRATION_TYPE_NAME, CREATE_MAN_NO, CREATE_MAN_NAME,
|
|
DAY_NUM, CALIBRATION_TYPE_NO, CALIBRATION_TYPE_NAME, CREATE_MAN_NO, CREATE_MAN_NAME,
|
|
|
- CREATE_TIME
|
|
|
|
|
|
|
+ CREATE_TIME, VALID_FLAG, UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO,
|
|
|
|
|
+ DELETE_MAN_NAME, DELETE_TIME, CALIBRATION_TIME_NO
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
|
t.RELATION_NO, t.BASE_SPOT_NO, t.BASE_SPOT_NAME, t.CALIBRATION_TIME_UNIT, t.START_TIME,
|
|
t.RELATION_NO, t.BASE_SPOT_NO, t.BASE_SPOT_NAME, t.CALIBRATION_TIME_UNIT, t.START_TIME,
|
|
|
t.END_TIME, t.DAY_NUM, t.CALIBRATION_TYPE_NO, t.CALIBRATION_TYPE_NAME, t.CREATE_MAN_NO,
|
|
t.END_TIME, t.DAY_NUM, t.CALIBRATION_TYPE_NO, t.CALIBRATION_TYPE_NAME, t.CREATE_MAN_NO,
|
|
|
- t.CREATE_MAN_NAME, t.CREATE_TIME
|
|
|
|
|
|
|
+ t.CREATE_MAN_NAME, t.CREATE_TIME, t.VALID_FLAG, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME,
|
|
|
|
|
+ t.UPDATE_TIME, t.DELETE_MAN_NO, t.DELETE_MAN_NAME, t.DELETE_TIME, t.CALIBRATION_TIME_NO
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="select">
|
|
<sql id="select">
|
|
|
SELECT <include refid="columns"/> FROM METER_BASE_CALIBRA_RELATION
|
|
SELECT <include refid="columns"/> FROM METER_BASE_CALIBRA_RELATION
|
|
@@ -69,6 +79,30 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="validFlag != null and validFlag != ''">
|
|
|
|
|
+ and VALID_FLAG = #{validFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ and UPDATE_MAN_NO = #{updateManNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null and updateManName != ''">
|
|
|
|
|
+ and UPDATE_MAN_NAME = #{updateManName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteManNo != null and deleteManNo != ''">
|
|
|
|
|
+ and DELETE_MAN_NO = #{deleteManNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteManName != null and deleteManName != ''">
|
|
|
|
|
+ and DELETE_MAN_NAME = #{deleteManName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteTime != null">
|
|
|
|
|
+ and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="calibrationTimeNo != null and calibrationTimeNo != ''">
|
|
|
|
|
+ and CALIBRATION_TIME_NO = #{calibrationTimeNo}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -109,6 +143,30 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="validFlag != null and validFlag != ''">
|
|
|
|
|
+ and VALID_FLAG LIKE '%${validFlag}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ and UPDATE_MAN_NO = #{updateManNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null and updateManName != ''">
|
|
|
|
|
+ and UPDATE_MAN_NAME LIKE '%${updateManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteManNo != null and deleteManNo != ''">
|
|
|
|
|
+ and DELETE_MAN_NO LIKE '%${deleteManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteManName != null and deleteManName != ''">
|
|
|
|
|
+ and DELETE_MAN_NAME LIKE '%${deleteManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteTime != null">
|
|
|
|
|
+ and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="calibrationTimeNo != null and calibrationTimeNo != ''">
|
|
|
|
|
+ and CALIBRATION_TIME_NO LIKE '%${calibrationTimeNo}%'
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
@@ -151,17 +209,47 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
|
|
or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="validFlag != null and validFlag != ''">
|
|
|
|
|
+ or VALID_FLAG = #{validFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ 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="calibrationTimeNo != null and calibrationTimeNo != ''">
|
|
|
|
|
+ or CALIBRATION_TIME_NO = #{calibrationTimeNo}
|
|
|
|
|
+ </if>
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasecalibrarelation.model.MeterBaseCalibraRelation">
|
|
<insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasecalibrarelation.model.MeterBaseCalibraRelation">
|
|
|
insert into METER_BASE_CALIBRA_RELATION (RELATION_NO, BASE_SPOT_NO, BASE_SPOT_NAME,
|
|
insert into METER_BASE_CALIBRA_RELATION (RELATION_NO, BASE_SPOT_NO, BASE_SPOT_NAME,
|
|
|
CALIBRATION_TIME_UNIT, START_TIME, END_TIME,
|
|
CALIBRATION_TIME_UNIT, START_TIME, END_TIME,
|
|
|
DAY_NUM, CALIBRATION_TYPE_NO, CALIBRATION_TYPE_NAME,
|
|
DAY_NUM, CALIBRATION_TYPE_NO, CALIBRATION_TYPE_NAME,
|
|
|
- CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME
|
|
|
|
|
|
|
+ CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
|
|
+ VALID_FLAG, UPDATE_MAN_NO, UPDATE_MAN_NAME,
|
|
|
|
|
+ UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME,
|
|
|
|
|
+ DELETE_TIME, CALIBRATION_TIME_NO)
|
|
|
)
|
|
)
|
|
|
values (#{relationNo,jdbcType=VARCHAR}, #{baseSpotNo,jdbcType=VARCHAR}, #{baseSpotName,jdbcType=VARCHAR},
|
|
values (#{relationNo,jdbcType=VARCHAR}, #{baseSpotNo,jdbcType=VARCHAR}, #{baseSpotName,jdbcType=VARCHAR},
|
|
|
#{calibrationTimeUnit,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
|
|
#{calibrationTimeUnit,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
|
|
|
#{dayNum,jdbcType=DECIMAL}, #{calibrationTypeNo,jdbcType=VARCHAR}, #{calibrationTypeName,jdbcType=VARCHAR},
|
|
#{dayNum,jdbcType=DECIMAL}, #{calibrationTypeNo,jdbcType=VARCHAR}, #{calibrationTypeName,jdbcType=VARCHAR},
|
|
|
- #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
|
+ #{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{validFlag,jdbcType=VARCHAR}, #{updateManNo,jdbcType=OTHER}, #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{deleteTime,jdbcType=TIMESTAMP}, #{calibrationTimeNo,jdbcType=VARCHAR})
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasecalibrarelation.model.MeterBaseCalibraRelation">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasecalibrarelation.model.MeterBaseCalibraRelation">
|
|
@@ -203,6 +291,30 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
CREATE_TIME,
|
|
CREATE_TIME,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="validFlag != null">
|
|
|
|
|
+ VALID_FLAG,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ UPDATE_MAN_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null">
|
|
|
|
|
+ UPDATE_MAN_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ UPDATE_TIME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteManNo != null">
|
|
|
|
|
+ DELETE_MAN_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteManName != null">
|
|
|
|
|
+ DELETE_MAN_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteTime != null">
|
|
|
|
|
+ DELETE_TIME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="calibrationTimeNo != null">
|
|
|
|
|
+ CALIBRATION_TIME_NO,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="relationNo != null">
|
|
<if test="relationNo != null">
|
|
@@ -241,6 +353,30 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="validFlag != null">
|
|
|
|
|
+ #{validFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ #{updateManNo,jdbcType=OTHER},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null">
|
|
|
|
|
+ #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteManNo != null">
|
|
|
|
|
+ #{deleteManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteManName != null">
|
|
|
|
|
+ #{deleteManName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteTime != null">
|
|
|
|
|
+ #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="calibrationTimeNo != null">
|
|
|
|
|
+ #{calibrationTimeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasecalibrarelation.model.MeterBaseCalibraRelation">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasecalibrarelation.model.MeterBaseCalibraRelation">
|
|
@@ -255,7 +391,15 @@
|
|
|
CALIBRATION_TYPE_NAME = #{calibrationTypeName,jdbcType=VARCHAR},
|
|
CALIBRATION_TYPE_NAME = #{calibrationTypeName,jdbcType=VARCHAR},
|
|
|
CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
|
CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
|
- CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ VALID_FLAG = #{validFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ UPDATE_MAN_NO = #{updateManNo,jdbcType=OTHER},
|
|
|
|
|
+ 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},
|
|
|
|
|
+ CALIBRATION_TIME_NO = #{calibrationTimeNo,jdbcType=VARCHAR}
|
|
|
where RELATION_NO = #{relationNo,jdbcType=VARCHAR}
|
|
where RELATION_NO = #{relationNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasecalibrarelation.model.MeterBaseCalibraRelation">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasecalibrarelation.model.MeterBaseCalibraRelation">
|
|
@@ -294,6 +438,30 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="validFlag != null">
|
|
|
|
|
+ VALID_FLAG = #{validFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ UPDATE_MAN_NO = #{updateManNo,jdbcType=OTHER},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null">
|
|
|
|
|
+ UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteManNo != null">
|
|
|
|
|
+ DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteManName != null">
|
|
|
|
|
+ DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deleteTime != null">
|
|
|
|
|
+ DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="calibrationTimeNo != null">
|
|
|
|
|
+ CALIBRATION_TIME_NO = #{calibrationTimeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where RELATION_NO = #{relationNo,jdbcType=VARCHAR}
|
|
where RELATION_NO = #{relationNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
@@ -317,7 +485,10 @@
|
|
|
BASE_SPOT_NO, BASE_SPOT_NAME, CALIBRATION_TIME_UNIT,
|
|
BASE_SPOT_NO, BASE_SPOT_NAME, CALIBRATION_TIME_UNIT,
|
|
|
START_TIME, END_TIME, DAY_NUM,
|
|
START_TIME, END_TIME, DAY_NUM,
|
|
|
CALIBRATION_TYPE_NO, CALIBRATION_TYPE_NAME,
|
|
CALIBRATION_TYPE_NO, CALIBRATION_TYPE_NAME,
|
|
|
- CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME
|
|
|
|
|
|
|
+ CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
|
|
+ VALID_FLAG, UPDATE_MAN_NO, UPDATE_MAN_NAME,
|
|
|
|
|
+ UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME,
|
|
|
|
|
+ DELETE_TIME, CALIBRATION_TIME_NO)
|
|
|
)
|
|
)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
select
|
|
@@ -325,7 +496,10 @@
|
|
|
#{item.baseSpotNo,jdbcType=VARCHAR}, #{item.baseSpotName,jdbcType=VARCHAR}, #{item.calibrationTimeUnit,jdbcType=VARCHAR},
|
|
#{item.baseSpotNo,jdbcType=VARCHAR}, #{item.baseSpotName,jdbcType=VARCHAR}, #{item.calibrationTimeUnit,jdbcType=VARCHAR},
|
|
|
#{item.startTime,jdbcType=TIMESTAMP}, #{item.endTime,jdbcType=TIMESTAMP}, #{item.dayNum,jdbcType=DECIMAL},
|
|
#{item.startTime,jdbcType=TIMESTAMP}, #{item.endTime,jdbcType=TIMESTAMP}, #{item.dayNum,jdbcType=DECIMAL},
|
|
|
#{item.calibrationTypeNo,jdbcType=VARCHAR}, #{item.calibrationTypeName,jdbcType=VARCHAR},
|
|
#{item.calibrationTypeNo,jdbcType=VARCHAR}, #{item.calibrationTypeName,jdbcType=VARCHAR},
|
|
|
- #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
|
+ #{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{item.validFlag,jdbcType=VARCHAR}, #{item.updateManNo,jdbcType=OTHER}, #{item.updateManName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.deleteTime,jdbcType=TIMESTAMP, #{item.calibrationTimeNo,jdbcType=VARCHAR}}
|
|
|
from dual
|
|
from dual
|
|
|
</foreach> )
|
|
</foreach> )
|
|
|
</insert>
|
|
</insert>
|
|
@@ -380,6 +554,38 @@
|
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case RELATION_NO" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case RELATION_NO" close="end">
|
|
|
when #{item.relationNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
when #{item.relationNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
+ ,VALID_FLAG=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RELATION_NO" close="end">
|
|
|
|
|
+ when #{item.relationNo,jdbcType=VARCHAR} then #{item.validFlag,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,UPDATE_MAN_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RELATION_NO" close="end">
|
|
|
|
|
+ when #{item.relationNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=OTHER}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,UPDATE_MAN_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RELATION_NO" close="end">
|
|
|
|
|
+ when #{item.relationNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,UPDATE_TIME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RELATION_NO" close="end">
|
|
|
|
|
+ when #{item.relationNo,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,DELETE_MAN_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RELATION_NO" close="end">
|
|
|
|
|
+ when #{item.relationNo,jdbcType=VARCHAR} then #{item.deleteManNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,DELETE_MAN_NAME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RELATION_NO" close="end">
|
|
|
|
|
+ when #{item.relationNo,jdbcType=VARCHAR} then #{item.deleteManName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,DELETE_TIME=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RELATION_NO" close="end">
|
|
|
|
|
+ when #{item.relationNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,CALIBRATION_TIME_NO=
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RELATION_NO" separator=" ">
|
|
|
|
|
+ when #{item.relationNo,jdbcType=VARCHAR} then #{item.calibrationTimeNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
where RELATION_NO in
|
|
where RELATION_NO in
|
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
#{item.relationNo,jdbcType=VARCHAR}
|
|
#{item.relationNo,jdbcType=VARCHAR}
|
|
@@ -432,4 +638,10 @@
|
|
|
'yyyy-MM-dd HH24:mi:ss') or
|
|
'yyyy-MM-dd HH24:mi:ss') or
|
|
|
t2.calibration_time_unit = '0')
|
|
t2.calibration_time_unit = '0')
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+ <select id="selectByCalibTimeNo" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
+ select t2.*
|
|
|
|
|
+ from METER_BASE_CALIBRA_RELATION t2
|
|
|
|
|
+ where t2.calibration_time_no = #{calibrationTimeNo,jdbcType=VARCHAR}
|
|
|
|
|
+ and t2.valid_flag = '1'
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|