|
@@ -25,20 +25,24 @@
|
|
<result column="DRIVER_CONFIRMATION" jdbcType="DECIMAL" property="driverConfirmation" />
|
|
<result column="DRIVER_CONFIRMATION" jdbcType="DECIMAL" property="driverConfirmation" />
|
|
<result column="PRICE_ID" jdbcType="DECIMAL" property="priceId" />
|
|
<result column="PRICE_ID" jdbcType="DECIMAL" property="priceId" />
|
|
<result column="CARRIER_ID" jdbcType="DECIMAL" property="carrierId" />
|
|
<result column="CARRIER_ID" jdbcType="DECIMAL" property="carrierId" />
|
|
|
|
+ <result column="TRIP_ID" jdbcType="VARCHAR" property="tripId" />
|
|
|
|
+ <result column="ORDER_PRINT_STATUS" jdbcType="DECIMAL" property="orderPrintStatus" />
|
|
|
|
+ <result column="DRIVER_TEL" jdbcType="VARCHAR" property="driverTel" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
- ORDER_ID, ORDER_PLAN_ID, ORDER_NUMBER, CAPACITY_ID, ORDER_ISSUE_TIME, ORDER_RECEIVE_STATUS,
|
|
|
|
- ORDER_RECEIVE_REFUSE_TIME, ORDER_COMMUNICATION_DURATION, ORDER_STATUS, INSERT_USERNAME,
|
|
|
|
- INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, ORDER_TYPE,
|
|
|
|
- ORDER_LINE_SEQUENCE, LINE_ID, ORDER_ENTRY_TIME, UNLOAD_POINT_ID, DRIVER_CONFIRMATION,
|
|
|
|
- PRICE_ID, CARRIER_ID
|
|
|
|
|
|
+ ORDER_ID, ORDER_PLAN_ID, ORDER_NUMBER, CAPACITY_ID, ORDER_ISSUE_TIME, ORDER_RECEIVE_STATUS,
|
|
|
|
+ ORDER_RECEIVE_REFUSE_TIME, ORDER_COMMUNICATION_DURATION, ORDER_STATUS, INSERT_USERNAME,
|
|
|
|
+ INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, ORDER_TYPE,
|
|
|
|
+ ORDER_LINE_SEQUENCE, LINE_ID, ORDER_ENTRY_TIME, UNLOAD_POINT_ID, DRIVER_CONFIRMATION,
|
|
|
|
+ PRICE_ID, CARRIER_ID, TRIP_ID, ORDER_PRINT_STATUS, DRIVER_TEL
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
- t.ORDER_ID, t.ORDER_PLAN_ID, t.ORDER_NUMBER, t.CAPACITY_ID, t.ORDER_ISSUE_TIME, t.ORDER_RECEIVE_STATUS,
|
|
|
|
- t.ORDER_RECEIVE_REFUSE_TIME, t.ORDER_COMMUNICATION_DURATION, t.ORDER_STATUS, t.INSERT_USERNAME,
|
|
|
|
- t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED,
|
|
|
|
- t.ORDER_TYPE, t.ORDER_LINE_SEQUENCE, t.LINE_ID, t.ORDER_ENTRY_TIME, t.UNLOAD_POINT_ID,
|
|
|
|
- t.DRIVER_CONFIRMATION, t.PRICE_ID, t.CARRIER_ID
|
|
|
|
|
|
+ t.ORDER_ID, t.ORDER_PLAN_ID, t.ORDER_NUMBER, t.CAPACITY_ID, t.ORDER_ISSUE_TIME, t.ORDER_RECEIVE_STATUS,
|
|
|
|
+ t.ORDER_RECEIVE_REFUSE_TIME, t.ORDER_COMMUNICATION_DURATION, t.ORDER_STATUS, t.INSERT_USERNAME,
|
|
|
|
+ t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED,
|
|
|
|
+ t.ORDER_TYPE, t.ORDER_LINE_SEQUENCE, t.LINE_ID, t.ORDER_ENTRY_TIME, t.UNLOAD_POINT_ID,
|
|
|
|
+ t.DRIVER_CONFIRMATION, t.PRICE_ID, t.CARRIER_ID, t.TRIP_ID, t.ORDER_PRINT_STATUS,
|
|
|
|
+ t.DRIVER_TEL
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
SELECT <include refid="columns" /> FROM OMSTRUCK_ORDER
|
|
SELECT <include refid="columns" /> FROM OMSTRUCK_ORDER
|
|
@@ -117,6 +121,15 @@
|
|
<if test="carrierId != null">
|
|
<if test="carrierId != null">
|
|
and CARRIER_ID = #{carrierId}
|
|
and CARRIER_ID = #{carrierId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="tripId != null and tripId != ''">
|
|
|
|
+ and TRIP_ID = #{tripId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderPrintStatus != null">
|
|
|
|
+ and ORDER_PRINT_STATUS = #{orderPrintStatus}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="driverTel != null and driverTel != ''">
|
|
|
|
+ and DRIVER_TEL = #{driverTel}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -190,6 +203,15 @@
|
|
<if test="carrierId != null">
|
|
<if test="carrierId != null">
|
|
and CARRIER_ID = #{carrierId}
|
|
and CARRIER_ID = #{carrierId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="tripId != null and tripId != ''">
|
|
|
|
+ and TRIP_ID LIKE '%${tripId}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderPrintStatus != null">
|
|
|
|
+ and ORDER_PRINT_STATUS = #{orderPrintStatus}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="driverTel != null and driverTel != ''">
|
|
|
|
+ and DRIVER_TEL LIKE '%${driverTel}%'
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
@@ -265,6 +287,15 @@
|
|
<if test="carrierId != null">
|
|
<if test="carrierId != null">
|
|
or CARRIER_ID = #{carrierId}
|
|
or CARRIER_ID = #{carrierId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="tripId != null and tripId != ''">
|
|
|
|
+ or TRIP_ID = #{tripId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderPrintStatus != null">
|
|
|
|
+ or ORDER_PRINT_STATUS = #{orderPrintStatus}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="driverTel != null and driverTel != ''">
|
|
|
|
+ or DRIVER_TEL = #{driverTel}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
insert into OMSTRUCK_ORDER (ORDER_ID, ORDER_PLAN_ID, ORDER_NUMBER,
|
|
insert into OMSTRUCK_ORDER (ORDER_ID, ORDER_PLAN_ID, ORDER_NUMBER,
|
|
@@ -274,7 +305,8 @@
|
|
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
DELETED, ORDER_TYPE, ORDER_LINE_SEQUENCE,
|
|
DELETED, ORDER_TYPE, ORDER_LINE_SEQUENCE,
|
|
LINE_ID, ORDER_ENTRY_TIME, UNLOAD_POINT_ID,
|
|
LINE_ID, ORDER_ENTRY_TIME, UNLOAD_POINT_ID,
|
|
- DRIVER_CONFIRMATION, PRICE_ID, CARRIER_ID
|
|
|
|
|
|
+ DRIVER_CONFIRMATION, PRICE_ID, CARRIER_ID,
|
|
|
|
+ TRIP_ID, ORDER_PRINT_STATUS, DRIVER_TEL
|
|
)
|
|
)
|
|
values (#{orderId,jdbcType=DECIMAL}, #{orderPlanId,jdbcType=DECIMAL}, #{orderNumber,jdbcType=VARCHAR},
|
|
values (#{orderId,jdbcType=DECIMAL}, #{orderPlanId,jdbcType=DECIMAL}, #{orderNumber,jdbcType=VARCHAR},
|
|
#{capacityId,jdbcType=DECIMAL}, #{orderIssueTime,jdbcType=TIMESTAMP}, #{orderReceiveStatus,jdbcType=DECIMAL},
|
|
#{capacityId,jdbcType=DECIMAL}, #{orderIssueTime,jdbcType=TIMESTAMP}, #{orderReceiveStatus,jdbcType=DECIMAL},
|
|
@@ -283,7 +315,8 @@
|
|
#{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{deleted,jdbcType=DECIMAL}, #{orderType,jdbcType=DECIMAL}, #{orderLineSequence,jdbcType=DECIMAL},
|
|
#{deleted,jdbcType=DECIMAL}, #{orderType,jdbcType=DECIMAL}, #{orderLineSequence,jdbcType=DECIMAL},
|
|
#{lineId,jdbcType=DECIMAL}, #{orderEntryTime,jdbcType=TIMESTAMP}, #{unloadPointId,jdbcType=DECIMAL},
|
|
#{lineId,jdbcType=DECIMAL}, #{orderEntryTime,jdbcType=TIMESTAMP}, #{unloadPointId,jdbcType=DECIMAL},
|
|
- #{driverConfirmation,jdbcType=DECIMAL}, #{priceId,jdbcType=DECIMAL}, #{carrierId,jdbcType=DECIMAL}
|
|
|
|
|
|
+ #{driverConfirmation,jdbcType=DECIMAL}, #{priceId,jdbcType=DECIMAL}, #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ #{tripId,jdbcType=VARCHAR}, #{orderPrintStatus,jdbcType=DECIMAL}, #{driverTel,jdbcType=VARCHAR}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
@@ -358,6 +391,15 @@
|
|
<if test="carrierId != null">
|
|
<if test="carrierId != null">
|
|
CARRIER_ID,
|
|
CARRIER_ID,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="tripId != null">
|
|
|
|
+ TRIP_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderPrintStatus != null">
|
|
|
|
+ ORDER_PRINT_STATUS,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="driverTel != null">
|
|
|
|
+ DRIVER_TEL,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="orderId != null">
|
|
<if test="orderId != null">
|
|
@@ -429,6 +471,15 @@
|
|
<if test="carrierId != null">
|
|
<if test="carrierId != null">
|
|
#{carrierId,jdbcType=DECIMAL},
|
|
#{carrierId,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="tripId != null">
|
|
|
|
+ #{tripId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderPrintStatus != null">
|
|
|
|
+ #{orderPrintStatus,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="driverTel != null">
|
|
|
|
+ #{driverTel,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
@@ -454,7 +505,10 @@
|
|
UNLOAD_POINT_ID = #{unloadPointId,jdbcType=DECIMAL},
|
|
UNLOAD_POINT_ID = #{unloadPointId,jdbcType=DECIMAL},
|
|
DRIVER_CONFIRMATION = #{driverConfirmation,jdbcType=DECIMAL},
|
|
DRIVER_CONFIRMATION = #{driverConfirmation,jdbcType=DECIMAL},
|
|
PRICE_ID = #{priceId,jdbcType=DECIMAL},
|
|
PRICE_ID = #{priceId,jdbcType=DECIMAL},
|
|
- CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
|
|
|
|
|
|
+ CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ TRIP_ID = #{tripId,jdbcType=VARCHAR},
|
|
|
|
+ ORDER_PRINT_STATUS = #{orderPrintStatus,jdbcType=DECIMAL},
|
|
|
|
+ DRIVER_TEL = #{driverTel,jdbcType=VARCHAR}
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
@@ -526,10 +580,19 @@
|
|
<if test="carrierId != null">
|
|
<if test="carrierId != null">
|
|
CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
|
|
CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="tripId != null">
|
|
|
|
+ TRIP_ID = #{tripId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderPrintStatus != null">
|
|
|
|
+ ORDER_PRINT_STATUS = #{orderPrintStatus,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="driverTel != null">
|
|
|
|
+ DRIVER_TEL = #{driverTel,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
<include refid="select" />
|
|
<include refid="select" />
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
</select>
|
|
</select>
|
|
@@ -553,7 +616,8 @@
|
|
DELETED, ORDER_TYPE, ORDER_LINE_SEQUENCE,
|
|
DELETED, ORDER_TYPE, ORDER_LINE_SEQUENCE,
|
|
LINE_ID, ORDER_ENTRY_TIME, UNLOAD_POINT_ID,
|
|
LINE_ID, ORDER_ENTRY_TIME, UNLOAD_POINT_ID,
|
|
DRIVER_CONFIRMATION, PRICE_ID,
|
|
DRIVER_CONFIRMATION, PRICE_ID,
|
|
- CARRIER_ID)
|
|
|
|
|
|
+ CARRIER_ID, TRIP_ID, ORDER_PRINT_STATUS,
|
|
|
|
+ DRIVER_TEL)
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
#{item.orderId,jdbcType=DECIMAL},
|
|
#{item.orderId,jdbcType=DECIMAL},
|
|
@@ -566,7 +630,8 @@
|
|
#{item.deleted,jdbcType=DECIMAL}, #{item.orderType,jdbcType=DECIMAL}, #{item.orderLineSequence,jdbcType=DECIMAL},
|
|
#{item.deleted,jdbcType=DECIMAL}, #{item.orderType,jdbcType=DECIMAL}, #{item.orderLineSequence,jdbcType=DECIMAL},
|
|
#{item.lineId,jdbcType=DECIMAL}, #{item.orderEntryTime,jdbcType=TIMESTAMP}, #{item.unloadPointId,jdbcType=DECIMAL},
|
|
#{item.lineId,jdbcType=DECIMAL}, #{item.orderEntryTime,jdbcType=TIMESTAMP}, #{item.unloadPointId,jdbcType=DECIMAL},
|
|
#{item.driverConfirmation,jdbcType=DECIMAL}, #{item.priceId,jdbcType=DECIMAL},
|
|
#{item.driverConfirmation,jdbcType=DECIMAL}, #{item.priceId,jdbcType=DECIMAL},
|
|
- #{item.carrierId,jdbcType=DECIMAL} from dual
|
|
|
|
|
|
+ #{item.carrierId,jdbcType=DECIMAL}, #{item.tripId,jdbcType=VARCHAR}, #{item.orderPrintStatus,jdbcType=DECIMAL},
|
|
|
|
+ #{item.driverTel,jdbcType=VARCHAR} from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -664,6 +729,18 @@
|
|
<foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
<foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
when #{item.orderId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
|
|
when #{item.orderId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,TRIP_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.tripId,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ORDER_PRINT_STATUS=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderPrintStatus,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,DRIVER_TEL=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.driverTel,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
where ORDER_ID in
|
|
where ORDER_ID in
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
#{item.orderId,jdbcType=DECIMAL}
|
|
#{item.orderId,jdbcType=DECIMAL}
|
|
@@ -1776,7 +1853,11 @@
|
|
and RC3.CARRIER_ID = #{carrierId}
|
|
and RC3.CARRIER_ID = #{carrierId}
|
|
</if>
|
|
</if>
|
|
<if test="orderTypee!=null">
|
|
<if test="orderTypee!=null">
|
|
- and OO.ORDER_TYPE in (1, 2)
|
|
|
|
|
|
+ and OO.ORDER_TYPE = #{orderTypee}
|
|
|
|
+ </if>
|
|
|
|
+
|
|
|
|
+ <if test="shipperId!=null">
|
|
|
|
+ and ASO.SHIPPER_ID = #{shipperId}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
) RRC
|
|
) RRC
|