|
@@ -29,13 +29,14 @@
|
|
<result column="ORDER_PRINT_STATUS" jdbcType="DECIMAL" property="orderPrintStatus" />
|
|
<result column="ORDER_PRINT_STATUS" jdbcType="DECIMAL" property="orderPrintStatus" />
|
|
<result column="DRIVER_TEL" jdbcType="VARCHAR" property="driverTel" />
|
|
<result column="DRIVER_TEL" jdbcType="VARCHAR" property="driverTel" />
|
|
<result column="OPTIONER_CODE" jdbcType="VARCHAR" property="optionerCode" />
|
|
<result column="OPTIONER_CODE" jdbcType="VARCHAR" property="optionerCode" />
|
|
|
|
+ <result column="CAN_WORK" jdbcType="DECIMAL" property="canWork" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
ORDER_ID, ORDER_PLAN_ID, ORDER_NUMBER, CAPACITY_ID, ORDER_ISSUE_TIME, ORDER_RECEIVE_STATUS,
|
|
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,
|
|
ORDER_RECEIVE_REFUSE_TIME, ORDER_COMMUNICATION_DURATION, ORDER_STATUS, INSERT_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, ORDER_TYPE,
|
|
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,
|
|
ORDER_LINE_SEQUENCE, LINE_ID, ORDER_ENTRY_TIME, UNLOAD_POINT_ID, DRIVER_CONFIRMATION,
|
|
- PRICE_ID, CARRIER_ID, TRIP_ID, ORDER_PRINT_STATUS, DRIVER_TEL, OPTIONER_CODE
|
|
|
|
|
|
+ PRICE_ID, CARRIER_ID, TRIP_ID, ORDER_PRINT_STATUS, DRIVER_TEL, OPTIONER_CODE, CAN_WORK
|
|
</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_ID, t.ORDER_PLAN_ID, t.ORDER_NUMBER, t.CAPACITY_ID, t.ORDER_ISSUE_TIME, t.ORDER_RECEIVE_STATUS,
|
|
@@ -43,7 +44,7 @@
|
|
t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED,
|
|
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.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_CONFIRMATION, t.PRICE_ID, t.CARRIER_ID, t.TRIP_ID, t.ORDER_PRINT_STATUS,
|
|
- t.DRIVER_TEL, t.OPTIONER_CODE
|
|
|
|
|
|
+ t.DRIVER_TEL, t.OPTIONER_CODE, t.CAN_WORK
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
SELECT <include refid="columns" /> FROM OMSTRUCK_ORDER
|
|
SELECT <include refid="columns" /> FROM OMSTRUCK_ORDER
|
|
@@ -134,6 +135,9 @@
|
|
<if test="optionerCode != null and optionerCode != ''">
|
|
<if test="optionerCode != null and optionerCode != ''">
|
|
and OPTIONER_CODE = #{optionerCode}
|
|
and OPTIONER_CODE = #{optionerCode}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="canWork != null">
|
|
|
|
+ and CAN_WORK = #{canWork}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -219,9 +223,12 @@
|
|
<if test="optionerCode != null and optionerCode != ''">
|
|
<if test="optionerCode != null and optionerCode != ''">
|
|
and OPTIONER_CODE LIKE '%${optionerCode}%'
|
|
and OPTIONER_CODE LIKE '%${optionerCode}%'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="canWork != null">
|
|
|
|
+ and CAN_WORK = #{canWork}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="DECIMAL">
|
|
delete from OMSTRUCK_ORDER
|
|
delete from OMSTRUCK_ORDER
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
</delete>
|
|
</delete>
|
|
@@ -306,6 +313,9 @@
|
|
<if test="optionerCode != null and optionerCode != ''">
|
|
<if test="optionerCode != null and optionerCode != ''">
|
|
or OPTIONER_CODE = #{optionerCode}
|
|
or OPTIONER_CODE = #{optionerCode}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="canWork != null">
|
|
|
|
+ or CAN_WORK = #{canWork}
|
|
|
|
+ </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,
|
|
@@ -317,7 +327,7 @@
|
|
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,
|
|
TRIP_ID, ORDER_PRINT_STATUS, DRIVER_TEL,
|
|
- OPTIONER_CODE)
|
|
|
|
|
|
+ OPTIONER_CODE, CAN_WORK)
|
|
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},
|
|
#{orderReceiveRefuseTime,jdbcType=TIMESTAMP}, #{orderCommunicationDuration,jdbcType=DECIMAL},
|
|
#{orderReceiveRefuseTime,jdbcType=TIMESTAMP}, #{orderCommunicationDuration,jdbcType=DECIMAL},
|
|
@@ -327,7 +337,7 @@
|
|
#{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},
|
|
#{tripId,jdbcType=VARCHAR}, #{orderPrintStatus,jdbcType=DECIMAL}, #{driverTel,jdbcType=VARCHAR},
|
|
- #{optionerCode,jdbcType=VARCHAR})
|
|
|
|
|
|
+ #{optionerCode,jdbcType=VARCHAR}, #{canWork,jdbcType=DECIMAL})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
insert into OMSTRUCK_ORDER
|
|
insert into OMSTRUCK_ORDER
|
|
@@ -413,6 +423,9 @@
|
|
<if test="optionerCode != null">
|
|
<if test="optionerCode != null">
|
|
OPTIONER_CODE,
|
|
OPTIONER_CODE,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="canWork != null">
|
|
|
|
+ CAN_WORK,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="orderId != null">
|
|
<if test="orderId != null">
|
|
@@ -496,6 +509,9 @@
|
|
<if test="optionerCode != null">
|
|
<if test="optionerCode != null">
|
|
#{optionerCode,jdbcType=VARCHAR},
|
|
#{optionerCode,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="canWork != null">
|
|
|
|
+ #{canWork,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
@@ -525,7 +541,8 @@
|
|
TRIP_ID = #{tripId,jdbcType=VARCHAR},
|
|
TRIP_ID = #{tripId,jdbcType=VARCHAR},
|
|
ORDER_PRINT_STATUS = #{orderPrintStatus,jdbcType=DECIMAL},
|
|
ORDER_PRINT_STATUS = #{orderPrintStatus,jdbcType=DECIMAL},
|
|
DRIVER_TEL = #{driverTel,jdbcType=VARCHAR},
|
|
DRIVER_TEL = #{driverTel,jdbcType=VARCHAR},
|
|
- OPTIONER_CODE = #{optionerCode,jdbcType=VARCHAR}
|
|
|
|
|
|
+ OPTIONER_CODE = #{optionerCode,jdbcType=VARCHAR},
|
|
|
|
+ CAN_WORK = #{canWork,jdbcType=DECIMAL}
|
|
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">
|
|
@@ -609,10 +626,13 @@
|
|
<if test="optionerCode != null">
|
|
<if test="optionerCode != null">
|
|
OPTIONER_CODE = #{optionerCode,jdbcType=VARCHAR},
|
|
OPTIONER_CODE = #{optionerCode,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="canWork != null">
|
|
|
|
+ CAN_WORK = #{canWork,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="DECIMAL" resultMap="BaseResultMap">
|
|
<include refid="select" />
|
|
<include refid="select" />
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
</select>
|
|
</select>
|
|
@@ -637,7 +657,8 @@
|
|
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, TRIP_ID, ORDER_PRINT_STATUS,
|
|
CARRIER_ID, TRIP_ID, ORDER_PRINT_STATUS,
|
|
- DRIVER_TEL, OPTIONER_CODE)
|
|
|
|
|
|
+ DRIVER_TEL, OPTIONER_CODE, CAN_WORK
|
|
|
|
+ )
|
|
( <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},
|
|
@@ -651,7 +672,8 @@
|
|
#{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}, #{item.tripId,jdbcType=VARCHAR}, #{item.orderPrintStatus,jdbcType=DECIMAL},
|
|
#{item.carrierId,jdbcType=DECIMAL}, #{item.tripId,jdbcType=VARCHAR}, #{item.orderPrintStatus,jdbcType=DECIMAL},
|
|
- #{item.driverTel,jdbcType=VARCHAR}, #{item.optionerCode,jdbcType=VARCHAR} from dual
|
|
|
|
|
|
+ #{item.driverTel,jdbcType=VARCHAR}, #{item.optionerCode,jdbcType=VARCHAR}, #{item.canWork,jdbcType=DECIMAL}
|
|
|
|
+ from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -765,6 +787,10 @@
|
|
<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.optionerCode,jdbcType=VARCHAR}
|
|
when #{item.orderId,jdbcType=DECIMAL} then #{item.optionerCode,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,CAN_WORK=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.canWork,jdbcType=DECIMAL}
|
|
|
|
+ </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}
|