|
@@ -18,17 +18,18 @@
|
|
|
<result column="WAREHOUSE_ID" jdbcType="DECIMAL" property="warehouseId" />
|
|
|
<result column="STRAWMATS" jdbcType="DECIMAL" property="strawmats" />
|
|
|
<result column="IS_ACCEPT_TIME" jdbcType="TIMESTAMP" property="isAcceptTime" />
|
|
|
+ <result column="ACCEPT_REMARK" jdbcType="VARCHAR" property="acceptRemark" />
|
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
|
- ORDER_ID, ORDER_NO, ORDER_WAGON_NO, ORDER_WAGON_WEIGHT, INSERT_USERNAME, INSERT_TIME,
|
|
|
- UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, ENSTATION_TIME, OUTSTATION_TIME,
|
|
|
- BILLING_WEIGHT, IS_ACCEPT, WAREHOUSE_ID, STRAWMATS, IS_ACCEPT_TIME
|
|
|
+ ORDER_ID, ORDER_NO, ORDER_WAGON_NO, ORDER_WAGON_WEIGHT, INSERT_USERNAME, INSERT_TIME,
|
|
|
+ UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, ENSTATION_TIME, OUTSTATION_TIME,
|
|
|
+ BILLING_WEIGHT, "IS_ACCEPT ", WAREHOUSE_ID, STRAWMATS, IS_ACCEPT_TIME, ACCEPT_REMARK
|
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
|
- t.ORDER_ID, t.ORDER_NO, t.ORDER_WAGON_NO, t.ORDER_WAGON_WEIGHT, t.INSERT_USERNAME,
|
|
|
- t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.ENSTATION_TIME,
|
|
|
- t.OUTSTATION_TIME, t.BILLING_WEIGHT, t.IS_ACCEPT, t.WAREHOUSE_ID, t.STRAWMATS,
|
|
|
- t.IS_ACCEPT_TIME
|
|
|
+ t.ORDER_ID, t.ORDER_NO, t.ORDER_WAGON_NO, t.ORDER_WAGON_WEIGHT, t.INSERT_USERNAME,
|
|
|
+ t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.ENSTATION_TIME,
|
|
|
+ t.OUTSTATION_TIME, t.BILLING_WEIGHT, t."IS_ACCEPT ", t.WAREHOUSE_ID, t.STRAWMATS,
|
|
|
+ t.IS_ACCEPT_TIME, t.ACCEPT_REMARK
|
|
|
</sql>
|
|
|
<sql id="select">
|
|
|
SELECT <include refid="columns" /> FROM OMSTRAIN_ORDER
|
|
@@ -37,7 +38,7 @@
|
|
|
SELECT <include refid="columns_alias" /> FROM OMSTRAIN_ORDER t
|
|
|
</sql>
|
|
|
<sql id="where">
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="orderId != null">
|
|
|
and ORDER_ID = #{orderId}
|
|
|
</if>
|
|
@@ -86,10 +87,13 @@
|
|
|
<if test="isAcceptTime != null">
|
|
|
and TO_CHAR(IS_ACCEPT_TIME,'yyyy-MM-dd') = #{isAcceptTime}
|
|
|
</if>
|
|
|
+ <if test="acceptRemark != null and acceptRemark != ''">
|
|
|
+ and ACCEPT_REMARK = #{acceptRemark}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="orderId != null">
|
|
|
and ORDER_ID = #{orderId}
|
|
|
</if>
|
|
@@ -127,7 +131,7 @@
|
|
|
and BILLING_WEIGHT = #{billingWeight}
|
|
|
</if>
|
|
|
<if test="isAccept != null">
|
|
|
- and IS_ACCEPT = #{isAccept}
|
|
|
+ and IS_ACCEPT = #{isAccept}
|
|
|
</if>
|
|
|
<if test="warehouseId != null">
|
|
|
and WAREHOUSE_ID = #{warehouseId}
|
|
@@ -138,6 +142,9 @@
|
|
|
<if test="isAcceptTime != null">
|
|
|
and TO_CHAR(IS_ACCEPT_TIME,'yyyy-MM-dd') = #{isAcceptTime}
|
|
|
</if>
|
|
|
+ <if test="acceptRemark != null and acceptRemark != ''">
|
|
|
+ and ACCEPT_REMARK LIKE '%${acceptRemark}%'
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
@@ -146,66 +153,69 @@
|
|
|
</delete>
|
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
delete from OMSTRAIN_ORDER
|
|
|
- where 1!=1
|
|
|
- <if test="orderNo != null and orderNo != ''">
|
|
|
- or ORDER_NO = #{orderNo}
|
|
|
- </if>
|
|
|
- <if test="orderWagonNo != null and orderWagonNo != ''">
|
|
|
- or ORDER_WAGON_NO = #{orderWagonNo}
|
|
|
- </if>
|
|
|
- <if test="orderWagonWeight != null">
|
|
|
- or ORDER_WAGON_WEIGHT = #{orderWagonWeight}
|
|
|
- </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="enstationTime != null">
|
|
|
- or TO_CHAR(ENSTATION_TIME,'yyyy-MM-dd') = '#{enstationTime}'
|
|
|
- </if>
|
|
|
- <if test="outstationTime != null">
|
|
|
- or TO_CHAR(OUTSTATION_TIME,'yyyy-MM-dd') = '#{outstationTime}'
|
|
|
- </if>
|
|
|
- <if test="billingWeight != null">
|
|
|
- or BILLING_WEIGHT = #{billingWeight}
|
|
|
- </if>
|
|
|
- <if test="isAccept != null">
|
|
|
- or IS_ACCEPT = #{isAccept}
|
|
|
- </if>
|
|
|
- <if test="warehouseId != null">
|
|
|
- or WAREHOUSE_ID = #{warehouseId}
|
|
|
- </if>
|
|
|
- <if test="strawmats != null">
|
|
|
- or STRAWMATS = #{strawmats}
|
|
|
- </if>
|
|
|
- <if test="isAcceptTime != null">
|
|
|
- or TO_CHAR(IS_ACCEPT_TIME,'yyyy-MM-dd') = '#{isAcceptTime}'
|
|
|
- </if>
|
|
|
+ where 1!=1
|
|
|
+ <if test="orderNo != null and orderNo != ''">
|
|
|
+ or ORDER_NO = #{orderNo}
|
|
|
+ </if>
|
|
|
+ <if test="orderWagonNo != null and orderWagonNo != ''">
|
|
|
+ or ORDER_WAGON_NO = #{orderWagonNo}
|
|
|
+ </if>
|
|
|
+ <if test="orderWagonWeight != null">
|
|
|
+ or ORDER_WAGON_WEIGHT = #{orderWagonWeight}
|
|
|
+ </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="enstationTime != null">
|
|
|
+ or TO_CHAR(ENSTATION_TIME,'yyyy-MM-dd') = '#{enstationTime}'
|
|
|
+ </if>
|
|
|
+ <if test="outstationTime != null">
|
|
|
+ or TO_CHAR(OUTSTATION_TIME,'yyyy-MM-dd') = '#{outstationTime}'
|
|
|
+ </if>
|
|
|
+ <if test="billingWeight != null">
|
|
|
+ or BILLING_WEIGHT = #{billingWeight}
|
|
|
+ </if>
|
|
|
+ <if test="isAccept != null">
|
|
|
+ or IS_ACCEPT = #{isAccept}
|
|
|
+ </if>
|
|
|
+ <if test="warehouseId != null">
|
|
|
+ or WAREHOUSE_ID = #{warehouseId}
|
|
|
+ </if>
|
|
|
+ <if test="strawmats != null">
|
|
|
+ or STRAWMATS = #{strawmats}
|
|
|
+ </if>
|
|
|
+ <if test="isAcceptTime != null">
|
|
|
+ or TO_CHAR(IS_ACCEPT_TIME,'yyyy-MM-dd') = '#{isAcceptTime}'
|
|
|
+ </if>
|
|
|
+ <if test="acceptRemark != null and acceptRemark != ''">
|
|
|
+ or ACCEPT_REMARK = #{acceptRemark}
|
|
|
+ </if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.OmstrainOrder">
|
|
|
- insert into OMSTRAIN_ORDER (ORDER_ID, ORDER_NO, ORDER_WAGON_NO,
|
|
|
- ORDER_WAGON_WEIGHT, INSERT_USERNAME, INSERT_TIME,
|
|
|
- UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
- ENSTATION_TIME, OUTSTATION_TIME, BILLING_WEIGHT,
|
|
|
- IS_ACCEPT, WAREHOUSE_ID, STRAWMATS,
|
|
|
- IS_ACCEPT_TIME)
|
|
|
- values (#{orderId,jdbcType=DECIMAL}, #{orderNo,jdbcType=VARCHAR}, #{orderWagonNo,jdbcType=VARCHAR},
|
|
|
- #{orderWagonWeight,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
- #{enstationTime,jdbcType=TIMESTAMP}, #{outstationTime,jdbcType=TIMESTAMP}, #{billingWeight,jdbcType=DECIMAL},
|
|
|
- #{isAccept,jdbcType=DECIMAL}, #{warehouseId,jdbcType=DECIMAL}, #{strawmats,jdbcType=DECIMAL},
|
|
|
- #{isAcceptTime,jdbcType=TIMESTAMP})
|
|
|
+ insert into OMSTRAIN_ORDER (ORDER_ID, ORDER_NO, ORDER_WAGON_NO,
|
|
|
+ ORDER_WAGON_WEIGHT, INSERT_USERNAME, INSERT_TIME,
|
|
|
+ UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
+ ENSTATION_TIME, OUTSTATION_TIME, BILLING_WEIGHT,
|
|
|
+ "IS_ACCEPT ", WAREHOUSE_ID, STRAWMATS,
|
|
|
+ IS_ACCEPT_TIME, ACCEPT_REMARK)
|
|
|
+ values (#{orderId,jdbcType=DECIMAL}, #{orderNo,jdbcType=VARCHAR}, #{orderWagonNo,jdbcType=VARCHAR},
|
|
|
+ #{orderWagonWeight,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
+ #{enstationTime,jdbcType=TIMESTAMP}, #{outstationTime,jdbcType=TIMESTAMP}, #{billingWeight,jdbcType=DECIMAL},
|
|
|
+ #{isAccept,jdbcType=DECIMAL}, #{warehouseId,jdbcType=DECIMAL}, #{strawmats,jdbcType=DECIMAL},
|
|
|
+ #{isAcceptTime,jdbcType=TIMESTAMP}, #{acceptRemark,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.OmstrainOrder">
|
|
|
insert into OMSTRAIN_ORDER
|
|
@@ -258,6 +268,9 @@
|
|
|
<if test="isAcceptTime != null">
|
|
|
IS_ACCEPT_TIME,
|
|
|
</if>
|
|
|
+ <if test="acceptRemark != null">
|
|
|
+ ACCEPT_REMARK,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="orderId != null">
|
|
@@ -308,25 +321,29 @@
|
|
|
<if test="isAcceptTime != null">
|
|
|
#{isAcceptTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="acceptRemark != null">
|
|
|
+ #{acceptRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.OmstrainOrder">
|
|
|
update OMSTRAIN_ORDER
|
|
|
set ORDER_NO = #{orderNo,jdbcType=VARCHAR},
|
|
|
- ORDER_WAGON_NO = #{orderWagonNo,jdbcType=VARCHAR},
|
|
|
- ORDER_WAGON_WEIGHT = #{orderWagonWeight,jdbcType=DECIMAL},
|
|
|
- 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},
|
|
|
- ENSTATION_TIME = #{enstationTime,jdbcType=TIMESTAMP},
|
|
|
- OUTSTATION_TIME = #{outstationTime,jdbcType=TIMESTAMP},
|
|
|
- BILLING_WEIGHT = #{billingWeight,jdbcType=DECIMAL},
|
|
|
- IS_ACCEPT = #{isAccept,jdbcType=DECIMAL},
|
|
|
- WAREHOUSE_ID = #{warehouseId,jdbcType=DECIMAL},
|
|
|
- STRAWMATS = #{strawmats,jdbcType=DECIMAL},
|
|
|
- IS_ACCEPT_TIME = #{isAcceptTime,jdbcType=TIMESTAMP}
|
|
|
+ ORDER_WAGON_NO = #{orderWagonNo,jdbcType=VARCHAR},
|
|
|
+ ORDER_WAGON_WEIGHT = #{orderWagonWeight,jdbcType=DECIMAL},
|
|
|
+ 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},
|
|
|
+ ENSTATION_TIME = #{enstationTime,jdbcType=TIMESTAMP},
|
|
|
+ OUTSTATION_TIME = #{outstationTime,jdbcType=TIMESTAMP},
|
|
|
+ BILLING_WEIGHT = #{billingWeight,jdbcType=DECIMAL},
|
|
|
+ "IS_ACCEPT " = #{isAccept,jdbcType=DECIMAL},
|
|
|
+ WAREHOUSE_ID = #{warehouseId,jdbcType=DECIMAL},
|
|
|
+ STRAWMATS = #{strawmats,jdbcType=DECIMAL},
|
|
|
+ IS_ACCEPT_TIME = #{isAcceptTime,jdbcType=TIMESTAMP},
|
|
|
+ ACCEPT_REMARK = #{acceptRemark,jdbcType=VARCHAR}
|
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.OmstrainOrder">
|
|
@@ -377,6 +394,9 @@
|
|
|
<if test="isAcceptTime != null">
|
|
|
IS_ACCEPT_TIME = #{isAcceptTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="acceptRemark != null">
|
|
|
+ ACCEPT_REMARK = #{acceptRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
@@ -392,104 +412,107 @@
|
|
|
<include refid="select" />
|
|
|
<include refid="whereLike" />
|
|
|
</select>
|
|
|
-
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
- insert into OMSTRAIN_ORDER
|
|
|
- (ORDER_ID,
|
|
|
- ORDER_NO, ORDER_WAGON_NO, ORDER_WAGON_WEIGHT,
|
|
|
- INSERT_USERNAME, INSERT_TIME,
|
|
|
- UPDATE_USERNAME, UPDATE_TIME,
|
|
|
- INSERT_UPDATE_REMARK, ENSTATION_TIME,
|
|
|
- OUTSTATION_TIME, BILLING_WEIGHT,
|
|
|
- IS_ACCEPT, WAREHOUSE_ID, STRAWMATS,
|
|
|
- IS_ACCEPT_TIME)
|
|
|
- ( <foreach collection="list" item="item" separator="union all">
|
|
|
- select
|
|
|
- #{item.orderId,jdbcType=DECIMAL},
|
|
|
- #{item.orderNo,jdbcType=VARCHAR}, #{item.orderWagonNo,jdbcType=VARCHAR}, #{item.orderWagonWeight,jdbcType=DECIMAL},
|
|
|
- #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.enstationTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.outstationTime,jdbcType=TIMESTAMP}, #{item.billingWeight,jdbcType=DECIMAL},
|
|
|
- #{item.isAccept,jdbcType=DECIMAL}, #{item.warehouseId,jdbcType=DECIMAL}, #{item.strawmats,jdbcType=DECIMAL},
|
|
|
- #{item.isAcceptTime,jdbcType=TIMESTAMP} from dual
|
|
|
- </foreach> )
|
|
|
+ insert into OMSTRAIN_ORDER
|
|
|
+ (ORDER_ID,
|
|
|
+ ORDER_NO, ORDER_WAGON_NO, ORDER_WAGON_WEIGHT,
|
|
|
+ INSERT_USERNAME, INSERT_TIME,
|
|
|
+ UPDATE_USERNAME, UPDATE_TIME,
|
|
|
+ INSERT_UPDATE_REMARK, ENSTATION_TIME,
|
|
|
+ OUTSTATION_TIME, BILLING_WEIGHT,
|
|
|
+ "IS_ACCEPT ", WAREHOUSE_ID, STRAWMATS,
|
|
|
+ IS_ACCEPT_TIME, ACCEPT_REMARK)
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
+ select
|
|
|
+ #{item.orderId,jdbcType=DECIMAL},
|
|
|
+ #{item.orderNo,jdbcType=VARCHAR}, #{item.orderWagonNo,jdbcType=VARCHAR}, #{item.orderWagonWeight,jdbcType=DECIMAL},
|
|
|
+ #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.enstationTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.outstationTime,jdbcType=TIMESTAMP}, #{item.billingWeight,jdbcType=DECIMAL},
|
|
|
+ #{item.isAccept,jdbcType=DECIMAL}, #{item.warehouseId,jdbcType=DECIMAL}, #{item.strawmats,jdbcType=DECIMAL},
|
|
|
+ #{item.isAcceptTime,jdbcType=TIMESTAMP}, #{item.acceptRemark,jdbcType=VARCHAR} from dual
|
|
|
+ </foreach> )
|
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
|
- update OMSTRAIN_ORDER
|
|
|
- set
|
|
|
- ORDER_ID=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.orderId,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,ORDER_NO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.orderNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,ORDER_WAGON_NO=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.orderWagonNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,ORDER_WAGON_WEIGHT=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.orderWagonWeight,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,INSERT_USERNAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,INSERT_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,UPDATE_USERNAME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,UPDATE_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,INSERT_UPDATE_REMARK=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,ENSTATION_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.enstationTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,OUTSTATION_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.outstationTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- ,BILLING_WEIGHT=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.billingWeight,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,"IS_ACCEPT "=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.isAccept,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,WAREHOUSE_ID=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.warehouseId,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,STRAWMATS=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.strawmats,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
- ,IS_ACCEPT_TIME=
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
- when #{item.orderId,jdbcType=DECIMAL} then #{item.isAcceptTime,jdbcType=TIMESTAMP}
|
|
|
- </foreach>
|
|
|
- where ORDER_ID in
|
|
|
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
- #{item.orderId,jdbcType=DECIMAL}
|
|
|
- </foreach>
|
|
|
+ update OMSTRAIN_ORDER
|
|
|
+ set
|
|
|
+ ORDER_ID=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,ORDER_NO=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,ORDER_WAGON_NO=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderWagonNo,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,ORDER_WAGON_WEIGHT=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderWagonWeight,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_USERNAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_USERNAME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_UPDATE_REMARK=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,ENSTATION_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.enstationTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,OUTSTATION_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.outstationTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,BILLING_WEIGHT=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.billingWeight,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,"IS_ACCEPT "=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.isAccept,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,WAREHOUSE_ID=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.warehouseId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,STRAWMATS=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.strawmats,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,IS_ACCEPT_TIME=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.isAcceptTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,ACCEPT_REMARK=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.acceptRemark,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ where ORDER_ID in
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
+ #{item.orderId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
</update>
|
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
|
delete from OMSTRAIN_ORDER
|
|
|
- where ORDER_ID in
|
|
|
+ where ORDER_ID in
|
|
|
<foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
#{id}
|
|
|
</foreach>
|
|
@@ -501,7 +524,7 @@
|
|
|
from OMSTRAIN_ORDER oo
|
|
|
where oo.ORDER_NO =#{orderNumber}
|
|
|
</select>
|
|
|
-<!-- 根据车皮号和运输订单号查找运输订单id-->
|
|
|
+ <!-- 根据车皮号和运输订单号查找运输订单id-->
|
|
|
<select id="selectOrderIdBywagonNoAndOrderNumber" resultType="java.math.BigDecimal" parameterType="java.util.Map">
|
|
|
select oo.ORDER_ID "orderId"
|
|
|
from OMSTRAIN_ORDER oo
|