|
|
@@ -0,0 +1,629 @@
|
|
|
+<?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" />
|
|
|
+ </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
|
|
|
+ </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
|
|
|
+ </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>
|
|
|
+ </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>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
+ 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>
|
|
|
+ </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)
|
|
|
+ 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})
|
|
|
+ </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>
|
|
|
+ </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>
|
|
|
+ </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}
|
|
|
+ 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>
|
|
|
+ </set>
|
|
|
+ where ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
|
+ </update>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" 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)
|
|
|
+ ( <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} from dual
|
|
|
+ </foreach> )
|
|
|
+ </insert>
|
|
|
+ <update id="batchUpdate" parameterType="java.util.List">
|
|
|
+ update OMSTRUCK_ORDER
|
|
|
+ set
|
|
|
+ ORDER_ID=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,ORDER_PLAN_ID=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderPlanId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,ORDER_NUMBER=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderNumber,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CAPACITY_ID=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.capacityId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,ORDER_ISSUE_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderIssueTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,ORDER_RECEIVE_STATUS=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderReceiveStatus,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,ORDER_RECEIVE_REFUSE_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderReceiveRefuseTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,ORDER_COMMUNICATION_DURATION=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderCommunicationDuration,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,ORDER_STATUS=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderStatus,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_USERNAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_USERNAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_UPDATE_REMARK=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,DELETED=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,ORDER_TYPE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderType,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,ORDER_LINE_SEQUENCE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderLineSequence,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,LINE_ID=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.lineId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,ORDER_ENTRY_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.orderEntryTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,UNLOAD_POINT_ID=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.unloadPointId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,DRIVER_CONFIRMATION=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case ORDER_ID" close="end">
|
|
|
+ when #{item.orderId,jdbcType=DECIMAL} then #{item.driverConfirmation,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ where ORDER_ID in
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
+ #{item.orderId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+ <delete id="batchDelete" parameterType="java.util.List">
|
|
|
+ delete from OMSTRUCK_ORDER
|
|
|
+ where ORDER_ID in
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+ <!-- 友情提示!!!-->
|
|
|
+ <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
+
|
|
|
+</mapper>
|