|
@@ -13,22 +13,23 @@
|
|
<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="MATERIAL_DIRECTION" jdbcType="DECIMAL" property="materialDirection" />
|
|
<result column="MATERIAL_DIRECTION" jdbcType="DECIMAL" property="materialDirection" />
|
|
|
|
+ <result column="MATERIAL_PRIORITY" jdbcType="DECIMAL" property="materialPriority" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
- ORDER_MATERIAL_ID, ORDER_ID, MATERIAL_ID, ORDER_MATERIAL_NUMBER, ORDER_MATERIAL_WEIGHT,
|
|
|
|
- INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
|
- MATERIAL_DIRECTION
|
|
|
|
|
|
+ ORDER_MATERIAL_ID, ORDER_ID, MATERIAL_ID, ORDER_MATERIAL_NUMBER, ORDER_MATERIAL_WEIGHT,
|
|
|
|
+ INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
|
+ MATERIAL_DIRECTION, MATERIAL_PRIORITY
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
- t.ORDER_MATERIAL_ID, t.ORDER_ID, t.MATERIAL_ID, t.ORDER_MATERIAL_NUMBER, t.ORDER_MATERIAL_WEIGHT,
|
|
|
|
- t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK,
|
|
|
|
- t.MATERIAL_DIRECTION
|
|
|
|
|
|
+ t.ORDER_MATERIAL_ID, t.ORDER_ID, t.MATERIAL_ID, t.ORDER_MATERIAL_NUMBER, t.ORDER_MATERIAL_WEIGHT,
|
|
|
|
+ t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK,
|
|
|
|
+ t.MATERIAL_DIRECTION, t.MATERIAL_PRIORITY
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
- SELECT <include refid="columns"/> FROM OMSTRUCK_ORDER_MATERIAL
|
|
|
|
|
|
+ SELECT <include refid="columns" /> FROM OMSTRUCK_ORDER_MATERIAL
|
|
</sql>
|
|
</sql>
|
|
<sql id="select_alias">
|
|
<sql id="select_alias">
|
|
- SELECT <include refid="columns_alias"/> FROM OMSTRUCK_ORDER_MATERIAL t
|
|
|
|
|
|
+ SELECT <include refid="columns_alias" /> FROM OMSTRUCK_ORDER_MATERIAL t
|
|
</sql>
|
|
</sql>
|
|
<sql id="where">
|
|
<sql id="where">
|
|
<where>
|
|
<where>
|
|
@@ -65,6 +66,9 @@
|
|
<if test="materialDirection != null">
|
|
<if test="materialDirection != null">
|
|
and MATERIAL_DIRECTION = #{materialDirection}
|
|
and MATERIAL_DIRECTION = #{materialDirection}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="materialPriority != null">
|
|
|
|
+ and MATERIAL_PRIORITY = #{materialPriority}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -102,9 +106,12 @@
|
|
<if test="materialDirection != null">
|
|
<if test="materialDirection != null">
|
|
and MATERIAL_DIRECTION = #{materialDirection}
|
|
and MATERIAL_DIRECTION = #{materialDirection}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="materialPriority != null">
|
|
|
|
+ and MATERIAL_PRIORITY = #{materialPriority}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
delete from OMSTRUCK_ORDER_MATERIAL
|
|
delete from OMSTRUCK_ORDER_MATERIAL
|
|
where ORDER_MATERIAL_ID = #{orderMaterialId,jdbcType=DECIMAL}
|
|
where ORDER_MATERIAL_ID = #{orderMaterialId,jdbcType=DECIMAL}
|
|
</delete>
|
|
</delete>
|
|
@@ -141,18 +148,21 @@
|
|
<if test="materialDirection != null">
|
|
<if test="materialDirection != null">
|
|
or MATERIAL_DIRECTION = #{materialDirection}
|
|
or MATERIAL_DIRECTION = #{materialDirection}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="materialPriority != null">
|
|
|
|
+ or MATERIAL_PRIORITY = #{materialPriority}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.OmstruckOrderMaterial">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.OmstruckOrderMaterial">
|
|
insert into OMSTRUCK_ORDER_MATERIAL (ORDER_MATERIAL_ID, ORDER_ID, MATERIAL_ID,
|
|
insert into OMSTRUCK_ORDER_MATERIAL (ORDER_MATERIAL_ID, ORDER_ID, MATERIAL_ID,
|
|
ORDER_MATERIAL_NUMBER, ORDER_MATERIAL_WEIGHT,
|
|
ORDER_MATERIAL_NUMBER, ORDER_MATERIAL_WEIGHT,
|
|
INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
- UPDATE_TIME, INSERT_UPDATE_REMARK, MATERIAL_DIRECTION
|
|
|
|
- )
|
|
|
|
|
|
+ UPDATE_TIME, INSERT_UPDATE_REMARK, MATERIAL_DIRECTION,
|
|
|
|
+ MATERIAL_PRIORITY)
|
|
values (#{orderMaterialId,jdbcType=DECIMAL}, #{orderId,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL},
|
|
values (#{orderMaterialId,jdbcType=DECIMAL}, #{orderId,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL},
|
|
#{orderMaterialNumber,jdbcType=DECIMAL}, #{orderMaterialWeight,jdbcType=DECIMAL},
|
|
#{orderMaterialNumber,jdbcType=DECIMAL}, #{orderMaterialWeight,jdbcType=DECIMAL},
|
|
#{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
|
|
#{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
|
|
- #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{materialDirection,jdbcType=DECIMAL}
|
|
|
|
- )
|
|
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{materialDirection,jdbcType=DECIMAL},
|
|
|
|
+ #{materialPriority,jdbcType=DECIMAL})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.OmstruckOrderMaterial">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.OmstruckOrderMaterial">
|
|
insert into OMSTRUCK_ORDER_MATERIAL
|
|
insert into OMSTRUCK_ORDER_MATERIAL
|
|
@@ -190,6 +200,9 @@
|
|
<if test="materialDirection != null">
|
|
<if test="materialDirection != null">
|
|
MATERIAL_DIRECTION,
|
|
MATERIAL_DIRECTION,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="materialPriority != null">
|
|
|
|
+ MATERIAL_PRIORITY,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="orderMaterialId != null">
|
|
<if test="orderMaterialId != null">
|
|
@@ -225,6 +238,9 @@
|
|
<if test="materialDirection != null">
|
|
<if test="materialDirection != null">
|
|
#{materialDirection,jdbcType=DECIMAL},
|
|
#{materialDirection,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="materialPriority != null">
|
|
|
|
+ #{materialPriority,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.OmstruckOrderMaterial">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.OmstruckOrderMaterial">
|
|
@@ -238,7 +254,8 @@
|
|
UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
- MATERIAL_DIRECTION = #{materialDirection,jdbcType=DECIMAL}
|
|
|
|
|
|
+ MATERIAL_DIRECTION = #{materialDirection,jdbcType=DECIMAL},
|
|
|
|
+ MATERIAL_PRIORITY = #{materialPriority,jdbcType=DECIMAL}
|
|
where ORDER_MATERIAL_ID = #{orderMaterialId,jdbcType=DECIMAL}
|
|
where ORDER_MATERIAL_ID = #{orderMaterialId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.OmstruckOrderMaterial">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.OmstruckOrderMaterial">
|
|
@@ -274,20 +291,23 @@
|
|
<if test="materialDirection != null">
|
|
<if test="materialDirection != null">
|
|
MATERIAL_DIRECTION = #{materialDirection,jdbcType=DECIMAL},
|
|
MATERIAL_DIRECTION = #{materialDirection,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="materialPriority != null">
|
|
|
|
+ MATERIAL_PRIORITY = #{materialPriority,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where ORDER_MATERIAL_ID = #{orderMaterialId,jdbcType=DECIMAL}
|
|
where ORDER_MATERIAL_ID = #{orderMaterialId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
|
- <include refid="select"/>
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
|
|
+ <include refid="select" />
|
|
where ORDER_MATERIAL_ID = #{orderMaterialId,jdbcType=DECIMAL}
|
|
where ORDER_MATERIAL_ID = #{orderMaterialId,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 OMSTRUCK_ORDER_MATERIAL
|
|
insert into OMSTRUCK_ORDER_MATERIAL
|
|
@@ -296,7 +316,8 @@
|
|
ORDER_MATERIAL_WEIGHT, INSERT_USERNAME,
|
|
ORDER_MATERIAL_WEIGHT, INSERT_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
- MATERIAL_DIRECTION)
|
|
|
|
|
|
+ MATERIAL_DIRECTION, MATERIAL_PRIORITY
|
|
|
|
+ )
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
#{item.orderMaterialId,jdbcType=DECIMAL},
|
|
#{item.orderMaterialId,jdbcType=DECIMAL},
|
|
@@ -304,69 +325,73 @@
|
|
#{item.orderMaterialWeight,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR},
|
|
#{item.orderMaterialWeight,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR},
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
- #{item.materialDirection,jdbcType=DECIMAL} from dual
|
|
|
|
|
|
+ #{item.materialDirection,jdbcType=DECIMAL}, #{item.materialPriority,jdbcType=DECIMAL}
|
|
|
|
+ from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
update OMSTRUCK_ORDER_MATERIAL
|
|
update OMSTRUCK_ORDER_MATERIAL
|
|
set
|
|
set
|
|
ORDER_MATERIAL_ID=
|
|
ORDER_MATERIAL_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_MATERIAL_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_MATERIAL_ID" separator=" ">
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.orderMaterialId,jdbcType=DECIMAL}
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.orderMaterialId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,ORDER_ID=
|
|
,ORDER_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_MATERIAL_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_MATERIAL_ID" separator=" ">
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.orderId,jdbcType=DECIMAL}
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.orderId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,MATERIAL_ID=
|
|
,MATERIAL_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_MATERIAL_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_MATERIAL_ID" separator=" ">
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.materialId,jdbcType=DECIMAL}
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.materialId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,ORDER_MATERIAL_NUMBER=
|
|
,ORDER_MATERIAL_NUMBER=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_MATERIAL_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_MATERIAL_ID" separator=" ">
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.orderMaterialNumber,jdbcType=DECIMAL}
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.orderMaterialNumber,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,ORDER_MATERIAL_WEIGHT=
|
|
,ORDER_MATERIAL_WEIGHT=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_MATERIAL_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_MATERIAL_ID" separator=" ">
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.orderMaterialWeight,jdbcType=DECIMAL}
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.orderMaterialWeight,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_USERNAME=
|
|
,INSERT_USERNAME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_MATERIAL_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_MATERIAL_ID" separator=" ">
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_TIME=
|
|
,INSERT_TIME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_MATERIAL_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_MATERIAL_ID" separator=" ">
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATE_USERNAME=
|
|
,UPDATE_USERNAME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_MATERIAL_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_MATERIAL_ID" separator=" ">
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATE_TIME=
|
|
,UPDATE_TIME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_MATERIAL_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_MATERIAL_ID" separator=" ">
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_UPDATE_REMARK=
|
|
,INSERT_UPDATE_REMARK=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_MATERIAL_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_MATERIAL_ID" separator=" ">
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,MATERIAL_DIRECTION=
|
|
,MATERIAL_DIRECTION=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_MATERIAL_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_MATERIAL_ID" separator=" ">
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.materialDirection,jdbcType=DECIMAL}
|
|
when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.materialDirection,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,MATERIAL_PRIORITY=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_MATERIAL_ID" separator=" ">
|
|
|
|
+ when #{item.orderMaterialId,jdbcType=DECIMAL} then #{item.materialPriority,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
where ORDER_MATERIAL_ID in
|
|
where ORDER_MATERIAL_ID in
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
#{item.orderMaterialId,jdbcType=DECIMAL}
|
|
#{item.orderMaterialId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
delete from OMSTRUCK_ORDER_MATERIAL
|
|
delete from OMSTRUCK_ORDER_MATERIAL
|
|
where ORDER_MATERIAL_ID in
|
|
where ORDER_MATERIAL_ID in
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
-
|
|
|
|
<!-- 友情提示!!!-->
|
|
<!-- 友情提示!!!-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
|