|
@@ -9,23 +9,24 @@
|
|
<result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
|
|
<result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
|
|
<result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
|
|
<result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
|
|
|
|
+ <result column="VERSION_TYPE" jdbcType="DECIMAL" property="versionType" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
VERSION_ID, VERSION_VALUE, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
VERSION_ID, VERSION_VALUE, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
- INSERT_UPDATE_REMARK
|
|
|
|
|
|
+ INSERT_UPDATE_REMARK, VERSION_TYPE
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
t.VERSION_ID, t.VERSION_VALUE, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME,
|
|
t.VERSION_ID, t.VERSION_VALUE, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME,
|
|
- t.UPDATE_TIME, t.INSERT_UPDATE_REMARK
|
|
|
|
|
|
+ t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.VERSION_TYPE
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
- SELECT <include refid="columns"/> FROM DIL_VERSION
|
|
|
|
|
|
+ SELECT <include refid="columns" /> FROM DIL_VERSION
|
|
</sql>
|
|
</sql>
|
|
<sql id="select_alias">
|
|
<sql id="select_alias">
|
|
- SELECT <include refid="columns_alias"/> FROM DIL_VERSION t
|
|
|
|
|
|
+ SELECT <include refid="columns_alias" /> FROM DIL_VERSION t
|
|
</sql>
|
|
</sql>
|
|
<sql id="where">
|
|
<sql id="where">
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
<if test="versionId != null">
|
|
<if test="versionId != null">
|
|
and VERSION_ID = #{versionId}
|
|
and VERSION_ID = #{versionId}
|
|
</if>
|
|
</if>
|
|
@@ -47,10 +48,13 @@
|
|
<if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
<if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
|
|
and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="versionType != null">
|
|
|
|
+ and VERSION_TYPE = #{versionType}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
<if test="versionId != null">
|
|
<if test="versionId != null">
|
|
and VERSION_ID = #{versionId}
|
|
and VERSION_ID = #{versionId}
|
|
</if>
|
|
</if>
|
|
@@ -72,6 +76,9 @@
|
|
<if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
<if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
|
|
and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="versionType != null">
|
|
|
|
+ and VERSION_TYPE = #{versionType}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
@@ -80,33 +87,36 @@
|
|
</delete>
|
|
</delete>
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
delete from DIL_VERSION
|
|
delete from DIL_VERSION
|
|
- where 1!=1
|
|
|
|
- <if test="versionValue != null and versionValue != ''">
|
|
|
|
- or VERSION_VALUE = #{versionValue}
|
|
|
|
- </if>
|
|
|
|
- <if test="insertUsername != null and insertUsername != ''">
|
|
|
|
- or INSERT_USERNAME = #{insertUsername}
|
|
|
|
- </if>
|
|
|
|
- <if test="insertTime != null">
|
|
|
|
- or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
|
|
|
|
- </if>
|
|
|
|
- <if test="updateUsername != null and updateUsername != ''">
|
|
|
|
- or UPDATE_USERNAME = #{updateUsername}
|
|
|
|
- </if>
|
|
|
|
- <if test="updateTime != null">
|
|
|
|
- or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
|
|
|
|
- </if>
|
|
|
|
- <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
|
|
- or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
|
|
|
|
- </if>
|
|
|
|
|
|
+ where 1!=1
|
|
|
|
+ <if test="versionValue != null and versionValue != ''">
|
|
|
|
+ or VERSION_VALUE = #{versionValue}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUsername != null and insertUsername != ''">
|
|
|
|
+ or INSERT_USERNAME = #{insertUsername}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertTime != null">
|
|
|
|
+ or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateUsername != null and updateUsername != ''">
|
|
|
|
+ or UPDATE_USERNAME = #{updateUsername}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
+ or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
|
|
+ or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="versionType != null">
|
|
|
|
+ or VERSION_TYPE = #{versionType}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.DilVersion">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.DilVersion">
|
|
- insert into DIL_VERSION (VERSION_ID, VERSION_VALUE, INSERT_USERNAME,
|
|
|
|
- INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
|
- INSERT_UPDATE_REMARK)
|
|
|
|
- values (#{versionId,jdbcType=DECIMAL}, #{versionValue,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
- #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{insertUpdateRemark,jdbcType=VARCHAR})
|
|
|
|
|
|
+ insert into DIL_VERSION (VERSION_ID, VERSION_VALUE, INSERT_USERNAME,
|
|
|
|
+ INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
|
+ INSERT_UPDATE_REMARK, VERSION_TYPE)
|
|
|
|
+ values (#{versionId,jdbcType=DECIMAL}, #{versionValue,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
+ #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{insertUpdateRemark,jdbcType=VARCHAR}, #{versionType,jdbcType=DECIMAL})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.DilVersion">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.DilVersion">
|
|
insert into DIL_VERSION
|
|
insert into DIL_VERSION
|
|
@@ -132,6 +142,9 @@
|
|
<if test="insertUpdateRemark != null">
|
|
<if test="insertUpdateRemark != null">
|
|
INSERT_UPDATE_REMARK,
|
|
INSERT_UPDATE_REMARK,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="versionType != null">
|
|
|
|
+ VERSION_TYPE,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="versionId != null">
|
|
<if test="versionId != null">
|
|
@@ -155,16 +168,20 @@
|
|
<if test="insertUpdateRemark != null">
|
|
<if test="insertUpdateRemark != null">
|
|
#{insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{insertUpdateRemark,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="versionType != null">
|
|
|
|
+ #{versionType,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.DilVersion">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.DilVersion">
|
|
update DIL_VERSION
|
|
update DIL_VERSION
|
|
set VERSION_VALUE = #{versionValue,jdbcType=VARCHAR},
|
|
set VERSION_VALUE = #{versionValue,jdbcType=VARCHAR},
|
|
- INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
- INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
- UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
- UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
- INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
|
|
|
+ INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
+ INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
+ VERSION_TYPE = #{versionType,jdbcType=DECIMAL}
|
|
where VERSION_ID = #{versionId,jdbcType=DECIMAL}
|
|
where VERSION_ID = #{versionId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.DilVersion">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.DilVersion">
|
|
@@ -188,88 +205,95 @@
|
|
<if test="insertUpdateRemark != null">
|
|
<if test="insertUpdateRemark != null">
|
|
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="versionType != null">
|
|
|
|
+ VERSION_TYPE = #{versionType,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where VERSION_ID = #{versionId,jdbcType=DECIMAL}
|
|
where VERSION_ID = #{versionId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
- <include refid="select"/>
|
|
|
|
|
|
+ <include refid="select" />
|
|
where VERSION_ID = #{versionId,jdbcType=DECIMAL}
|
|
where VERSION_ID = #{versionId,jdbcType=DECIMAL}
|
|
</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 DIL_VERSION
|
|
|
|
- (VERSION_ID,
|
|
|
|
- VERSION_VALUE, INSERT_USERNAME,
|
|
|
|
- INSERT_TIME, UPDATE_USERNAME,
|
|
|
|
- UPDATE_TIME, INSERT_UPDATE_REMARK
|
|
|
|
- )
|
|
|
|
- ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
- select
|
|
|
|
- #{item.versionId,jdbcType=DECIMAL},
|
|
|
|
- #{item.versionValue,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR},
|
|
|
|
- #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
|
|
- #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
|
- from dual
|
|
|
|
- </foreach> )
|
|
|
|
|
|
+ insert into DIL_VERSION
|
|
|
|
+ (VERSION_ID,
|
|
|
|
+ VERSION_VALUE, INSERT_USERNAME,
|
|
|
|
+ INSERT_TIME, UPDATE_USERNAME,
|
|
|
|
+ UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
|
+ VERSION_TYPE)
|
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
+ select
|
|
|
|
+ #{item.versionId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.versionValue,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR},
|
|
|
|
+ #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
|
|
+ #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
+ #{item.versionType,jdbcType=DECIMAL} from dual
|
|
|
|
+ </foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
- update DIL_VERSION
|
|
|
|
- set
|
|
|
|
- VERSION_ID=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
|
|
|
|
- when #{item.versionId,jdbcType=DECIMAL} then #{item.versionId,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- ,VERSION_VALUE=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
|
|
|
|
- when #{item.versionId,jdbcType=DECIMAL} then #{item.versionValue,jdbcType=VARCHAR}
|
|
|
|
- </foreach>
|
|
|
|
- ,INSERT_USERNAME=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
|
|
|
|
- when #{item.versionId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
|
- </foreach>
|
|
|
|
- ,INSERT_TIME=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
|
|
|
|
- when #{item.versionId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
|
- </foreach>
|
|
|
|
- ,UPDATE_USERNAME=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
|
|
|
|
- when #{item.versionId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
|
- </foreach>
|
|
|
|
- ,UPDATE_TIME=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
|
|
|
|
- when #{item.versionId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
- </foreach>
|
|
|
|
- ,INSERT_UPDATE_REMARK=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case VERSION_ID" close="end">
|
|
|
|
- when #{item.versionId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
|
- </foreach>
|
|
|
|
- where VERSION_ID in
|
|
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
- #{item.versionId,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
|
|
+ update DIL_VERSION
|
|
|
|
+ set
|
|
|
|
+ VERSION_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
|
|
|
|
+ when #{item.versionId,jdbcType=DECIMAL} then #{item.versionId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,VERSION_VALUE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
|
|
|
|
+ when #{item.versionId,jdbcType=DECIMAL} then #{item.versionValue,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_USERNAME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
|
|
|
|
+ when #{item.versionId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
|
|
|
|
+ when #{item.versionId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UPDATE_USERNAME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
|
|
|
|
+ when #{item.versionId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UPDATE_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
|
|
|
|
+ when #{item.versionId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_UPDATE_REMARK=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
|
|
|
|
+ when #{item.versionId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,VERSION_TYPE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case VERSION_ID" separator=" ">
|
|
|
|
+ when #{item.versionId,jdbcType=DECIMAL} then #{item.versionType,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ where VERSION_ID in
|
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
|
+ #{item.versionId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
</update>
|
|
</update>
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
delete from DIL_VERSION
|
|
delete from DIL_VERSION
|
|
- where VERSION_ID in
|
|
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
|
|
+ where VERSION_ID in
|
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
<!-- 友情提示!!!-->
|
|
<!-- 友情提示!!!-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
-
|
|
|
|
- <select id="compareVersion" resultType="string">
|
|
|
|
|
|
+ <select id="getAppVersion" resultType="string">
|
|
select *
|
|
select *
|
|
from (
|
|
from (
|
|
select DV.VERSION_VALUE
|
|
select DV.VERSION_VALUE
|
|
from DIL_VERSION DV
|
|
from DIL_VERSION DV
|
|
|
|
+ where DV.VERSION_TYPE = 0
|
|
order by DV.VERSION_ID desc
|
|
order by DV.VERSION_ID desc
|
|
)
|
|
)
|
|
where ROWNUM = 1
|
|
where ROWNUM = 1
|
|
@@ -281,4 +305,16 @@
|
|
where DV.VERSION_VALUE = #{versionValue}
|
|
where DV.VERSION_VALUE = #{versionValue}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+
|
|
|
|
+ <select id="getPDAVersion" resultType="java.lang.String">
|
|
|
|
+ select *
|
|
|
|
+ from (
|
|
|
|
+ select DV.VERSION_VALUE
|
|
|
|
+ from DIL_VERSION DV
|
|
|
|
+ where DV.VERSION_TYPE = 1
|
|
|
|
+ order by DV.VERSION_ID desc
|
|
|
|
+ )
|
|
|
|
+ where ROWNUM = 1
|
|
|
|
+ </select>
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|