|
@@ -5,12 +5,16 @@
|
|
<id column="MEASURE_ID" jdbcType="DECIMAL" property="measureId" />
|
|
<id column="MEASURE_ID" jdbcType="DECIMAL" property="measureId" />
|
|
<result column="MEASURE_TYPE_ID" jdbcType="DECIMAL" property="measureTypeId" />
|
|
<result column="MEASURE_TYPE_ID" jdbcType="DECIMAL" property="measureTypeId" />
|
|
<result column="MEASURE_JSON_DATA" jdbcType="VARCHAR" property="measureJsonData" />
|
|
<result column="MEASURE_JSON_DATA" jdbcType="VARCHAR" property="measureJsonData" />
|
|
|
|
+ <result column="MEASURE_JSON_URL" jdbcType="VARCHAR" property="measureJsonUrl" />
|
|
|
|
+ <result column="ORDER_NUMBER" jdbcType="VARCHAR" property="orderNumber" />
|
|
|
|
+ <result column="WAREHOUSE_NAME" jdbcType="VARCHAR" property="warehouseName" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
- MEASURE_ID, MEASURE_TYPE_ID, MEASURE_JSON_DATA
|
|
|
|
|
|
+ MEASURE_ID, MEASURE_TYPE_ID, MEASURE_JSON_DATA, MEASURE_JSON_URL, ORDER_NUMBER, WAREHOUSE_NAME
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
- t.MEASURE_ID, t.MEASURE_TYPE_ID, t.MEASURE_JSON_DATA
|
|
|
|
|
|
+ t.MEASURE_ID, t.MEASURE_TYPE_ID, t.MEASURE_JSON_DATA, t.MEASURE_JSON_URL, t.ORDER_NUMBER,
|
|
|
|
+ t.WAREHOUSE_NAME
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
SELECT <include refid="columns"/> FROM MEASURE_JSON_DATA
|
|
SELECT <include refid="columns"/> FROM MEASURE_JSON_DATA
|
|
@@ -29,6 +33,15 @@
|
|
<if test="measureJsonData != null and measureJsonData != ''">
|
|
<if test="measureJsonData != null and measureJsonData != ''">
|
|
and MEASURE_JSON_DATA = #{measureJsonData}
|
|
and MEASURE_JSON_DATA = #{measureJsonData}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="measureJsonUrl != null and measureJsonUrl != ''">
|
|
|
|
+ and MEASURE_JSON_URL = #{measureJsonUrl}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderNumber != null and orderNumber != ''">
|
|
|
|
+ and ORDER_NUMBER = #{orderNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="warehouseName != null and warehouseName != ''">
|
|
|
|
+ and WAREHOUSE_NAME = #{warehouseName}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -42,6 +55,15 @@
|
|
<if test="measureJsonData != null and measureJsonData != ''">
|
|
<if test="measureJsonData != null and measureJsonData != ''">
|
|
and MEASURE_JSON_DATA LIKE '%${measureJsonData}%'
|
|
and MEASURE_JSON_DATA LIKE '%${measureJsonData}%'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="measureJsonUrl != null and measureJsonUrl != ''">
|
|
|
|
+ and MEASURE_JSON_URL LIKE '%${measureJsonUrl}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderNumber != null and orderNumber != ''">
|
|
|
|
+ and ORDER_NUMBER LIKE '%${orderNumber}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="warehouseName != null and warehouseName != ''">
|
|
|
|
+ and WAREHOUSE_NAME LIKE '%${warehouseName}%'
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
@@ -57,11 +79,22 @@
|
|
<if test="measureJsonData != null and measureJsonData != ''">
|
|
<if test="measureJsonData != null and measureJsonData != ''">
|
|
or MEASURE_JSON_DATA = #{measureJsonData}
|
|
or MEASURE_JSON_DATA = #{measureJsonData}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="measureJsonUrl != null and measureJsonUrl != ''">
|
|
|
|
+ or MEASURE_JSON_URL = #{measureJsonUrl}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderNumber != null and orderNumber != ''">
|
|
|
|
+ or ORDER_NUMBER = #{orderNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="warehouseName != null and warehouseName != ''">
|
|
|
|
+ or WAREHOUSE_NAME = #{warehouseName}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.MeasureJsonData">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.MeasureJsonData">
|
|
- insert into MEASURE_JSON_DATA (MEASURE_ID, MEASURE_TYPE_ID, MEASURE_JSON_DATA
|
|
|
|
|
|
+ insert into MEASURE_JSON_DATA (MEASURE_ID, MEASURE_TYPE_ID, MEASURE_JSON_DATA,
|
|
|
|
+ MEASURE_JSON_URL, ORDER_NUMBER, WAREHOUSE_NAME
|
|
)
|
|
)
|
|
- values (#{measureId,jdbcType=DECIMAL}, #{measureTypeId,jdbcType=DECIMAL}, #{measureJsonData,jdbcType=VARCHAR}
|
|
|
|
|
|
+ values (#{measureId,jdbcType=DECIMAL}, #{measureTypeId,jdbcType=DECIMAL}, #{measureJsonData,jdbcType=VARCHAR},
|
|
|
|
+ #{measureJsonUrl,jdbcType=VARCHAR}, #{orderNumber,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.MeasureJsonData">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.MeasureJsonData">
|
|
@@ -76,6 +109,15 @@
|
|
<if test="measureJsonData != null">
|
|
<if test="measureJsonData != null">
|
|
MEASURE_JSON_DATA,
|
|
MEASURE_JSON_DATA,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="measureJsonUrl != null">
|
|
|
|
+ MEASURE_JSON_URL,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderNumber != null">
|
|
|
|
+ ORDER_NUMBER,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="warehouseName != null">
|
|
|
|
+ WAREHOUSE_NAME,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="measureId != null">
|
|
<if test="measureId != null">
|
|
@@ -87,12 +129,24 @@
|
|
<if test="measureJsonData != null">
|
|
<if test="measureJsonData != null">
|
|
#{measureJsonData,jdbcType=VARCHAR},
|
|
#{measureJsonData,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="measureJsonUrl != null">
|
|
|
|
+ #{measureJsonUrl,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderNumber != null">
|
|
|
|
+ #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="warehouseName != null">
|
|
|
|
+ #{warehouseName,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.MeasureJsonData">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.MeasureJsonData">
|
|
update MEASURE_JSON_DATA
|
|
update MEASURE_JSON_DATA
|
|
set MEASURE_TYPE_ID = #{measureTypeId,jdbcType=DECIMAL},
|
|
set MEASURE_TYPE_ID = #{measureTypeId,jdbcType=DECIMAL},
|
|
- MEASURE_JSON_DATA = #{measureJsonData,jdbcType=VARCHAR}
|
|
|
|
|
|
+ MEASURE_JSON_DATA = #{measureJsonData,jdbcType=VARCHAR},
|
|
|
|
+ MEASURE_JSON_URL = #{measureJsonUrl,jdbcType=VARCHAR},
|
|
|
|
+ ORDER_NUMBER = #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
+ WAREHOUSE_NAME = #{warehouseName,jdbcType=VARCHAR}
|
|
where MEASURE_ID = #{measureId,jdbcType=DECIMAL}
|
|
where MEASURE_ID = #{measureId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.MeasureJsonData">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.MeasureJsonData">
|
|
@@ -104,6 +158,15 @@
|
|
<if test="measureJsonData != null">
|
|
<if test="measureJsonData != null">
|
|
MEASURE_JSON_DATA = #{measureJsonData,jdbcType=VARCHAR},
|
|
MEASURE_JSON_DATA = #{measureJsonData,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="measureJsonUrl != null">
|
|
|
|
+ MEASURE_JSON_URL = #{measureJsonUrl,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderNumber != null">
|
|
|
|
+ ORDER_NUMBER = #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="warehouseName != null">
|
|
|
|
+ WAREHOUSE_NAME = #{warehouseName,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where MEASURE_ID = #{measureId,jdbcType=DECIMAL}
|
|
where MEASURE_ID = #{measureId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
@@ -122,13 +185,15 @@
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
insert into MEASURE_JSON_DATA
|
|
insert into MEASURE_JSON_DATA
|
|
(MEASURE_ID,
|
|
(MEASURE_ID,
|
|
- MEASURE_TYPE_ID, MEASURE_JSON_DATA
|
|
|
|
- )
|
|
|
|
|
|
+ MEASURE_TYPE_ID, MEASURE_JSON_DATA,
|
|
|
|
+ MEASURE_JSON_URL, ORDER_NUMBER,
|
|
|
|
+ WAREHOUSE_NAME)
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
#{item.measureId,jdbcType=DECIMAL},
|
|
#{item.measureId,jdbcType=DECIMAL},
|
|
- #{item.measureTypeId,jdbcType=DECIMAL}, #{item.measureJsonData,jdbcType=VARCHAR}
|
|
|
|
- from dual
|
|
|
|
|
|
+ #{item.measureTypeId,jdbcType=DECIMAL}, #{item.measureJsonData,jdbcType=VARCHAR},
|
|
|
|
+ #{item.measureJsonUrl,jdbcType=VARCHAR}, #{item.orderNumber,jdbcType=VARCHAR},
|
|
|
|
+ #{item.warehouseName,jdbcType=VARCHAR} from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -146,6 +211,18 @@
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case MEASURE_ID" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case MEASURE_ID" close="end">
|
|
when #{item.measureId,jdbcType=DECIMAL} then #{item.measureJsonData,jdbcType=VARCHAR}
|
|
when #{item.measureId,jdbcType=DECIMAL} then #{item.measureJsonData,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,MEASURE_JSON_URL=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case MEASURE_ID" close="end">
|
|
|
|
+ when #{item.measureId,jdbcType=DECIMAL} then #{item.measureJsonUrl,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ORDER_NUMBER=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case MEASURE_ID" close="end">
|
|
|
|
+ when #{item.measureId,jdbcType=DECIMAL} then #{item.orderNumber,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,WAREHOUSE_NAME=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case MEASURE_ID" close="end">
|
|
|
|
+ when #{item.measureId,jdbcType=DECIMAL} then #{item.warehouseName,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
where MEASURE_ID in
|
|
where MEASURE_ID in
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
#{item.measureId,jdbcType=DECIMAL}
|
|
#{item.measureId,jdbcType=DECIMAL}
|