|
@@ -0,0 +1,829 @@
|
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
+<mapper namespace="com.steerinfo.dil.mapper.OmstruckOrderMapper">
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.OmstruckOrder">
|
|
|
|
+ <id column="ORDER_ID" jdbcType="DECIMAL" property="orderId" />
|
|
|
|
+ <result column="ORDER_PLAN_ID" jdbcType="DECIMAL" property="orderPlanId" />
|
|
|
|
+ <result column="ORDER_NUMBER" jdbcType="VARCHAR" property="orderNumber" />
|
|
|
|
+ <result column="CAPACITY_ID" jdbcType="DECIMAL" property="capacityId" />
|
|
|
|
+ <result column="ORDER_ISSUE_TIME" jdbcType="TIMESTAMP" property="orderIssueTime" />
|
|
|
|
+ <result column="ORDER_RECEIVE_STATUS" jdbcType="DECIMAL" property="orderReceiveStatus" />
|
|
|
|
+ <result column="ORDER_RECEIVE_REFUSE_TIME" jdbcType="TIMESTAMP" property="orderReceiveRefuseTime" />
|
|
|
|
+ <result column="ORDER_COMMUNICATION_DURATION" jdbcType="DECIMAL" property="orderCommunicationDuration" />
|
|
|
|
+ <result column="ORDER_STATUS" jdbcType="DECIMAL" property="orderStatus" />
|
|
|
|
+ <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
|
|
|
|
+ <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
|
|
|
|
+ <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
|
|
|
|
+ <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
+ <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
|
|
|
|
+ <result column="DELETED" jdbcType="DECIMAL" property="deleted" />
|
|
|
|
+ <result column="ORDER_TYPE" jdbcType="DECIMAL" property="orderType" />
|
|
|
|
+ <result column="ORDER_LINE_SEQUENCE" jdbcType="DECIMAL" property="orderLineSequence" />
|
|
|
|
+ <result column="LINE_ID" jdbcType="DECIMAL" property="lineId" />
|
|
|
|
+ <result column="ORDER_ENTRY_TIME" jdbcType="TIMESTAMP" property="orderEntryTime" />
|
|
|
|
+ <result column="UNLOAD_POINT_ID" jdbcType="DECIMAL" property="unloadPointId" />
|
|
|
|
+ <result column="DRIVER_CONFIRMATION" jdbcType="DECIMAL" property="driverConfirmation" />
|
|
|
|
+ <result column="PRICE_ID" jdbcType="DECIMAL" property="priceId" />
|
|
|
|
+ <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" />
|
|
|
|
+ <result column="OPTIONER_CODE" jdbcType="VARCHAR" property="optionerCode" />
|
|
|
|
+ <result column="CAN_WORK" jdbcType="DECIMAL" property="canWork" />
|
|
|
|
+ </resultMap>
|
|
|
|
+ <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, TRIP_ID, ORDER_PRINT_STATUS, DRIVER_TEL, OPTIONER_CODE, CAN_WORK
|
|
|
|
+ </sql>
|
|
|
|
+ <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.TRIP_ID, t.ORDER_PRINT_STATUS,
|
|
|
|
+ t.DRIVER_TEL, t.OPTIONER_CODE, t.CAN_WORK
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="select">
|
|
|
|
+ SELECT <include refid="columns" /> FROM OMSTRUCK_ORDER
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="select_alias">
|
|
|
|
+ SELECT <include refid="columns_alias" /> FROM OMSTRUCK_ORDER t
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="where">
|
|
|
|
+ <where>
|
|
|
|
+ <if test="orderId != null">
|
|
|
|
+ and ORDER_ID = #{orderId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderPlanId != null">
|
|
|
|
+ and ORDER_PLAN_ID = #{orderPlanId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderNumber != null and orderNumber != ''">
|
|
|
|
+ and ORDER_NUMBER = #{orderNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="capacityId != null">
|
|
|
|
+ and CAPACITY_ID = #{capacityId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderIssueTime != null">
|
|
|
|
+ and TO_CHAR(ORDER_ISSUE_TIME,'yyyy-MM-dd') = #{orderIssueTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderReceiveStatus != null">
|
|
|
|
+ and ORDER_RECEIVE_STATUS = #{orderReceiveStatus}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderReceiveRefuseTime != null">
|
|
|
|
+ and TO_CHAR(ORDER_RECEIVE_REFUSE_TIME,'yyyy-MM-dd') = #{orderReceiveRefuseTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderCommunicationDuration != null">
|
|
|
|
+ and ORDER_COMMUNICATION_DURATION = #{orderCommunicationDuration}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderStatus != null">
|
|
|
|
+ and ORDER_STATUS = #{orderStatus}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUsername != null and insertUsername != ''">
|
|
|
|
+ and INSERT_USERNAME = #{insertUsername}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertTime != null">
|
|
|
|
+ and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateUsername != null and updateUsername != ''">
|
|
|
|
+ and UPDATE_USERNAME = #{updateUsername}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
|
|
+ and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="deleted != null">
|
|
|
|
+ and DELETED = #{deleted}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderType != null">
|
|
|
|
+ and ORDER_TYPE = #{orderType}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderLineSequence != null">
|
|
|
|
+ and ORDER_LINE_SEQUENCE = #{orderLineSequence}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lineId != null">
|
|
|
|
+ and LINE_ID = #{lineId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderEntryTime != null">
|
|
|
|
+ and TO_CHAR(ORDER_ENTRY_TIME,'yyyy-MM-dd') = #{orderEntryTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadPointId != null">
|
|
|
|
+ and UNLOAD_POINT_ID = #{unloadPointId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="driverConfirmation != null">
|
|
|
|
+ and DRIVER_CONFIRMATION = #{driverConfirmation}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceId != null">
|
|
|
|
+ and PRICE_ID = #{priceId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ and CARRIER_ID = #{carrierId}
|
|
|
|
+ </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>
|
|
|
|
+ <if test="optionerCode != null and optionerCode != ''">
|
|
|
|
+ and OPTIONER_CODE = #{optionerCode}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="canWork != null">
|
|
|
|
+ and CAN_WORK = #{canWork}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="whereLike">
|
|
|
|
+ <where>
|
|
|
|
+ <if test="orderId != null">
|
|
|
|
+ and ORDER_ID = #{orderId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderPlanId != null">
|
|
|
|
+ and ORDER_PLAN_ID = #{orderPlanId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderNumber != null and orderNumber != ''">
|
|
|
|
+ and ORDER_NUMBER LIKE '%${orderNumber}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="capacityId != null">
|
|
|
|
+ and CAPACITY_ID = #{capacityId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderIssueTime != null">
|
|
|
|
+ and TO_CHAR(ORDER_ISSUE_TIME,'yyyy-MM-dd') = #{orderIssueTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderReceiveStatus != null">
|
|
|
|
+ and ORDER_RECEIVE_STATUS = #{orderReceiveStatus}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderReceiveRefuseTime != null">
|
|
|
|
+ and TO_CHAR(ORDER_RECEIVE_REFUSE_TIME,'yyyy-MM-dd') = #{orderReceiveRefuseTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderCommunicationDuration != null">
|
|
|
|
+ and ORDER_COMMUNICATION_DURATION = #{orderCommunicationDuration}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderStatus != null">
|
|
|
|
+ and ORDER_STATUS = #{orderStatus}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUsername != null and insertUsername != ''">
|
|
|
|
+ and INSERT_USERNAME LIKE '%${insertUsername}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertTime != null">
|
|
|
|
+ and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateUsername != null and updateUsername != ''">
|
|
|
|
+ and UPDATE_USERNAME LIKE '%${updateUsername}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
|
|
+ and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="deleted != null">
|
|
|
|
+ and DELETED = #{deleted}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderType != null">
|
|
|
|
+ and ORDER_TYPE = #{orderType}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderLineSequence != null">
|
|
|
|
+ and ORDER_LINE_SEQUENCE = #{orderLineSequence}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lineId != null">
|
|
|
|
+ and LINE_ID = #{lineId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderEntryTime != null">
|
|
|
|
+ and TO_CHAR(ORDER_ENTRY_TIME,'yyyy-MM-dd') = #{orderEntryTime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadPointId != null">
|
|
|
|
+ and UNLOAD_POINT_ID = #{unloadPointId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="driverConfirmation != null">
|
|
|
|
+ and DRIVER_CONFIRMATION = #{driverConfirmation}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceId != null">
|
|
|
|
+ and PRICE_ID = #{priceId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ and CARRIER_ID = #{carrierId}
|
|
|
|
+ </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>
|
|
|
|
+ <if test="optionerCode != null and optionerCode != ''">
|
|
|
|
+ and OPTIONER_CODE LIKE '%${optionerCode}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="canWork != null">
|
|
|
|
+ and CAN_WORK = #{canWork}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ </sql>
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="DECIMAL">
|
|
|
|
+ delete from OMSTRUCK_ORDER
|
|
|
|
+ where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
|
|
+ </delete>
|
|
|
|
+ <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
|
+ delete from OMSTRUCK_ORDER
|
|
|
|
+ where 1!=1
|
|
|
|
+ <if test="orderPlanId != null">
|
|
|
|
+ or ORDER_PLAN_ID = #{orderPlanId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderNumber != null and orderNumber != ''">
|
|
|
|
+ or ORDER_NUMBER = #{orderNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="capacityId != null">
|
|
|
|
+ or CAPACITY_ID = #{capacityId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderIssueTime != null">
|
|
|
|
+ or TO_CHAR(ORDER_ISSUE_TIME,'yyyy-MM-dd') = '#{orderIssueTime}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderReceiveStatus != null">
|
|
|
|
+ or ORDER_RECEIVE_STATUS = #{orderReceiveStatus}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderReceiveRefuseTime != null">
|
|
|
|
+ or TO_CHAR(ORDER_RECEIVE_REFUSE_TIME,'yyyy-MM-dd') = '#{orderReceiveRefuseTime}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderCommunicationDuration != null">
|
|
|
|
+ or ORDER_COMMUNICATION_DURATION = #{orderCommunicationDuration}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderStatus != null">
|
|
|
|
+ or ORDER_STATUS = #{orderStatus}
|
|
|
|
+ </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="deleted != null">
|
|
|
|
+ or DELETED = #{deleted}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderType != null">
|
|
|
|
+ or ORDER_TYPE = #{orderType}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderLineSequence != null">
|
|
|
|
+ or ORDER_LINE_SEQUENCE = #{orderLineSequence}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lineId != null">
|
|
|
|
+ or LINE_ID = #{lineId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderEntryTime != null">
|
|
|
|
+ or TO_CHAR(ORDER_ENTRY_TIME,'yyyy-MM-dd') = '#{orderEntryTime}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadPointId != null">
|
|
|
|
+ or UNLOAD_POINT_ID = #{unloadPointId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="driverConfirmation != null">
|
|
|
|
+ or DRIVER_CONFIRMATION = #{driverConfirmation}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceId != null">
|
|
|
|
+ or PRICE_ID = #{priceId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ or CARRIER_ID = #{carrierId}
|
|
|
|
+ </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>
|
|
|
|
+ <if test="optionerCode != null and optionerCode != ''">
|
|
|
|
+ or OPTIONER_CODE = #{optionerCode}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="canWork != null">
|
|
|
|
+ or CAN_WORK = #{canWork}
|
|
|
|
+ </if>
|
|
|
|
+ </delete>
|
|
|
|
+ <insert id="insert" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
|
|
+ insert into OMSTRUCK_ORDER (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,
|
|
|
|
+ OPTIONER_CODE, CAN_WORK)
|
|
|
|
+ values (#{orderId,jdbcType=DECIMAL}, #{orderPlanId,jdbcType=DECIMAL}, #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
+ #{capacityId,jdbcType=DECIMAL}, #{orderIssueTime,jdbcType=TIMESTAMP}, #{orderReceiveStatus,jdbcType=DECIMAL},
|
|
|
|
+ #{orderReceiveRefuseTime,jdbcType=TIMESTAMP}, #{orderCommunicationDuration,jdbcType=DECIMAL},
|
|
|
|
+ #{orderStatus,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
+ #{deleted,jdbcType=DECIMAL}, #{orderType,jdbcType=DECIMAL}, #{orderLineSequence,jdbcType=DECIMAL},
|
|
|
|
+ #{lineId,jdbcType=DECIMAL}, #{orderEntryTime,jdbcType=TIMESTAMP}, #{unloadPointId,jdbcType=DECIMAL},
|
|
|
|
+ #{driverConfirmation,jdbcType=DECIMAL}, #{priceId,jdbcType=DECIMAL}, #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ #{tripId,jdbcType=VARCHAR}, #{orderPrintStatus,jdbcType=DECIMAL}, #{driverTel,jdbcType=VARCHAR},
|
|
|
|
+ #{optionerCode,jdbcType=VARCHAR}, #{canWork,jdbcType=DECIMAL})
|
|
|
|
+ </insert>
|
|
|
|
+ <insert id="insertSelective" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
|
|
+ insert into OMSTRUCK_ORDER
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="orderId != null">
|
|
|
|
+ ORDER_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderPlanId != null">
|
|
|
|
+ ORDER_PLAN_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderNumber != null">
|
|
|
|
+ ORDER_NUMBER,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="capacityId != null">
|
|
|
|
+ CAPACITY_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderIssueTime != null">
|
|
|
|
+ ORDER_ISSUE_TIME,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderReceiveStatus != null">
|
|
|
|
+ ORDER_RECEIVE_STATUS,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderReceiveRefuseTime != null">
|
|
|
|
+ ORDER_RECEIVE_REFUSE_TIME,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderCommunicationDuration != null">
|
|
|
|
+ ORDER_COMMUNICATION_DURATION,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderStatus != null">
|
|
|
|
+ ORDER_STATUS,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUsername != null">
|
|
|
|
+ INSERT_USERNAME,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertTime != null">
|
|
|
|
+ INSERT_TIME,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateUsername != null">
|
|
|
|
+ UPDATE_USERNAME,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
+ UPDATE_TIME,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUpdateRemark != null">
|
|
|
|
+ INSERT_UPDATE_REMARK,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="deleted != null">
|
|
|
|
+ DELETED,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderType != null">
|
|
|
|
+ ORDER_TYPE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderLineSequence != null">
|
|
|
|
+ ORDER_LINE_SEQUENCE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lineId != null">
|
|
|
|
+ LINE_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderEntryTime != null">
|
|
|
|
+ ORDER_ENTRY_TIME,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadPointId != null">
|
|
|
|
+ UNLOAD_POINT_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="driverConfirmation != null">
|
|
|
|
+ DRIVER_CONFIRMATION,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceId != null">
|
|
|
|
+ PRICE_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ CARRIER_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="tripId != null">
|
|
|
|
+ TRIP_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderPrintStatus != null">
|
|
|
|
+ ORDER_PRINT_STATUS,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="driverTel != null">
|
|
|
|
+ DRIVER_TEL,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="optionerCode != null">
|
|
|
|
+ OPTIONER_CODE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="canWork != null">
|
|
|
|
+ CAN_WORK,
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="orderId != null">
|
|
|
|
+ #{orderId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderPlanId != null">
|
|
|
|
+ #{orderPlanId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderNumber != null">
|
|
|
|
+ #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="capacityId != null">
|
|
|
|
+ #{capacityId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderIssueTime != null">
|
|
|
|
+ #{orderIssueTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderReceiveStatus != null">
|
|
|
|
+ #{orderReceiveStatus,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderReceiveRefuseTime != null">
|
|
|
|
+ #{orderReceiveRefuseTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderCommunicationDuration != null">
|
|
|
|
+ #{orderCommunicationDuration,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderStatus != null">
|
|
|
|
+ #{orderStatus,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUsername != null">
|
|
|
|
+ #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertTime != null">
|
|
|
|
+ #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateUsername != null">
|
|
|
|
+ #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUpdateRemark != null">
|
|
|
|
+ #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="deleted != null">
|
|
|
|
+ #{deleted,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderType != null">
|
|
|
|
+ #{orderType,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderLineSequence != null">
|
|
|
|
+ #{orderLineSequence,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lineId != null">
|
|
|
|
+ #{lineId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderEntryTime != null">
|
|
|
|
+ #{orderEntryTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadPointId != null">
|
|
|
|
+ #{unloadPointId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="driverConfirmation != null">
|
|
|
|
+ #{driverConfirmation,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceId != null">
|
|
|
|
+ #{priceId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ </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>
|
|
|
|
+ <if test="optionerCode != null">
|
|
|
|
+ #{optionerCode,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="canWork != null">
|
|
|
|
+ #{canWork,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ </insert>
|
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
|
|
+ update OMSTRUCK_ORDER
|
|
|
|
+ set ORDER_PLAN_ID = #{orderPlanId,jdbcType=DECIMAL},
|
|
|
|
+ ORDER_NUMBER = #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
+ CAPACITY_ID = #{capacityId,jdbcType=DECIMAL},
|
|
|
|
+ ORDER_ISSUE_TIME = #{orderIssueTime,jdbcType=TIMESTAMP},
|
|
|
|
+ ORDER_RECEIVE_STATUS = #{orderReceiveStatus,jdbcType=DECIMAL},
|
|
|
|
+ ORDER_RECEIVE_REFUSE_TIME = #{orderReceiveRefuseTime,jdbcType=TIMESTAMP},
|
|
|
|
+ ORDER_COMMUNICATION_DURATION = #{orderCommunicationDuration,jdbcType=DECIMAL},
|
|
|
|
+ ORDER_STATUS = #{orderStatus,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},
|
|
|
|
+ DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
|
+ ORDER_TYPE = #{orderType,jdbcType=DECIMAL},
|
|
|
|
+ ORDER_LINE_SEQUENCE = #{orderLineSequence,jdbcType=DECIMAL},
|
|
|
|
+ LINE_ID = #{lineId,jdbcType=DECIMAL},
|
|
|
|
+ ORDER_ENTRY_TIME = #{orderEntryTime,jdbcType=TIMESTAMP},
|
|
|
|
+ UNLOAD_POINT_ID = #{unloadPointId,jdbcType=DECIMAL},
|
|
|
|
+ DRIVER_CONFIRMATION = #{driverConfirmation,jdbcType=DECIMAL},
|
|
|
|
+ PRICE_ID = #{priceId,jdbcType=DECIMAL},
|
|
|
|
+ CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ TRIP_ID = #{tripId,jdbcType=VARCHAR},
|
|
|
|
+ ORDER_PRINT_STATUS = #{orderPrintStatus,jdbcType=DECIMAL},
|
|
|
|
+ DRIVER_TEL = #{driverTel,jdbcType=VARCHAR},
|
|
|
|
+ OPTIONER_CODE = #{optionerCode,jdbcType=VARCHAR},
|
|
|
|
+ CAN_WORK = #{canWork,jdbcType=DECIMAL}
|
|
|
|
+ where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
|
|
+ </update>
|
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.OmstruckOrder">
|
|
|
|
+ update OMSTRUCK_ORDER
|
|
|
|
+ <set>
|
|
|
|
+ <if test="orderPlanId != null">
|
|
|
|
+ ORDER_PLAN_ID = #{orderPlanId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderNumber != null">
|
|
|
|
+ ORDER_NUMBER = #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="capacityId != null">
|
|
|
|
+ CAPACITY_ID = #{capacityId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderIssueTime != null">
|
|
|
|
+ ORDER_ISSUE_TIME = #{orderIssueTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderReceiveStatus != null">
|
|
|
|
+ ORDER_RECEIVE_STATUS = #{orderReceiveStatus,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderReceiveRefuseTime != null">
|
|
|
|
+ ORDER_RECEIVE_REFUSE_TIME = #{orderReceiveRefuseTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderCommunicationDuration != null">
|
|
|
|
+ ORDER_COMMUNICATION_DURATION = #{orderCommunicationDuration,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderStatus != null">
|
|
|
|
+ ORDER_STATUS = #{orderStatus,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUsername != null">
|
|
|
|
+ INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertTime != null">
|
|
|
|
+ INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateUsername != null">
|
|
|
|
+ UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUpdateRemark != null">
|
|
|
|
+ INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="deleted != null">
|
|
|
|
+ DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderType != null">
|
|
|
|
+ ORDER_TYPE = #{orderType,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderLineSequence != null">
|
|
|
|
+ ORDER_LINE_SEQUENCE = #{orderLineSequence,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lineId != null">
|
|
|
|
+ LINE_ID = #{lineId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="orderEntryTime != null">
|
|
|
|
+ ORDER_ENTRY_TIME = #{orderEntryTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadPointId != null">
|
|
|
|
+ UNLOAD_POINT_ID = #{unloadPointId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="driverConfirmation != null">
|
|
|
|
+ DRIVER_CONFIRMATION = #{driverConfirmation,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceId != null">
|
|
|
|
+ PRICE_ID = #{priceId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ </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>
|
|
|
|
+ <if test="optionerCode != null">
|
|
|
|
+ OPTIONER_CODE = #{optionerCode,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="canWork != null">
|
|
|
|
+ CAN_WORK = #{canWork,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ </set>
|
|
|
|
+ where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
|
|
+ </update>
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="DECIMAL" resultMap="BaseResultMap">
|
|
|
|
+ <include refid="select" />
|
|
|
|
+ where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
|
+ <include refid="select" />
|
|
|
|
+ <include refid="where" />
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
|
+ <include refid="select" />
|
|
|
|
+ <include refid="whereLike" />
|
|
|
|
+ </select>
|
|
|
|
+ <insert id="batchInsert" parameterType="java.util.List">
|
|
|
|
+ insert into OMSTRUCK_ORDER
|
|
|
|
+ (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, OPTIONER_CODE, CAN_WORK
|
|
|
|
+ )
|
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
+ select
|
|
|
|
+ #{item.orderId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.orderPlanId,jdbcType=DECIMAL}, #{item.orderNumber,jdbcType=VARCHAR}, #{item.capacityId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.orderIssueTime,jdbcType=TIMESTAMP}, #{item.orderReceiveStatus,jdbcType=DECIMAL},
|
|
|
|
+ #{item.orderReceiveRefuseTime,jdbcType=TIMESTAMP}, #{item.orderCommunicationDuration,jdbcType=DECIMAL},
|
|
|
|
+ #{item.orderStatus,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR},
|
|
|
|
+ #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
|
|
+ #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
+ #{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.driverConfirmation,jdbcType=DECIMAL}, #{item.priceId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.carrierId,jdbcType=DECIMAL}, #{item.tripId,jdbcType=VARCHAR}, #{item.orderPrintStatus,jdbcType=DECIMAL},
|
|
|
|
+ #{item.driverTel,jdbcType=VARCHAR}, #{item.optionerCode,jdbcType=VARCHAR}, #{item.canWork,jdbcType=DECIMAL}
|
|
|
|
+ from dual
|
|
|
|
+ </foreach> )
|
|
|
|
+ </insert>
|
|
|
|
+ <update id="batchUpdate" parameterType="java.util.List">
|
|
|
|
+ update OMSTRUCK_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_PLAN_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderPlanId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ORDER_NUMBER=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderNumber,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,CAPACITY_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.capacityId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ORDER_ISSUE_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderIssueTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ORDER_RECEIVE_STATUS=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderReceiveStatus,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ORDER_RECEIVE_REFUSE_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderReceiveRefuseTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ORDER_COMMUNICATION_DURATION=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderCommunicationDuration,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ORDER_STATUS=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderStatus,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>
|
|
|
|
+ ,DELETED=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ORDER_TYPE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderType,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ORDER_LINE_SEQUENCE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderLineSequence,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,LINE_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.lineId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ORDER_ENTRY_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderEntryTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UNLOAD_POINT_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.unloadPointId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,DRIVER_CONFIRMATION=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.driverConfirmation,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,PRICE_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.priceId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,CARRIER_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
|
|
|
|
+ </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>
|
|
|
|
+ ,OPTIONER_CODE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ORDER_ID" separator=" ">
|
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.optionerCode,jdbcType=VARCHAR}
|
|
|
|
+ </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
|
|
|
|
+ <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 OMSTRUCK_ORDER
|
|
|
|
+ where ORDER_ID in
|
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
|
+ #{id}
|
|
|
|
+ </foreach>
|
|
|
|
+ </delete>
|
|
|
|
+ <!-- 友情提示!!!-->
|
|
|
|
+ <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
+
|
|
|
|
+ <select id="findCarNumberByOrderId" parameterType="DECIMAL" resultType="java.util.Map" >
|
|
|
|
+ SELECT DISTINCT RC.CAPACITY_NUMBER AS "carNum"
|
|
|
|
+ FROM AMS_SALE_ORDER_MATERIAL ASOM
|
|
|
|
+ LEFT JOIN OMSTRUCK_ORDER OO
|
|
|
|
+ ON ASOM.SALE_ORDER_MATERIAL_ID = OO.ORDER_PLAN_ID
|
|
|
|
+ LEFT JOIN RMS_CAPACITY RC
|
|
|
|
+ ON RC.CAPACITY_ID = OO.CAPACITY_ID
|
|
|
|
+ WHERE ASOM.SALE_ORDER_MATERIAL_ID = #{saleOrderMaterialId}
|
|
|
|
+ AND OO.ORDER_TYPE = 1
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select id="findEntriesByOrderId" parameterType="DECIMAL" resultType="java.util.Map" >
|
|
|
|
+ SELECT ASM.EAS_PRIMARY_ID AS "entryId"
|
|
|
|
+ FROM AMS_SALE_ORDER_MATERIAL ASOM
|
|
|
|
+ LEFT JOIN AMS_SALE_TRUCKNO_MATERIAL ASTM
|
|
|
|
+ ON ASTM.SALE_ORDER_MATERIAL_ID = ASOM.SALE_ORDER_MATERIAL_ID
|
|
|
|
+ LEFT JOIN AMS_SALE_MATERIAL ASM
|
|
|
|
+ ON ASM.SALE_MATERIAL_ID = ASTM.MATERIAL_ID
|
|
|
|
+ WHERE ASOM.SALE_ORDER_MATERIAL_ID = #{saleOrderMaterialId}
|
|
|
|
+ </select>
|
|
|
|
+</mapper>
|