123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953 |
- <?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>
- <!-- 友情提示!!!-->
- <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
- <!--通过运输订单ID查询数据 用于websocket推送数据 如果订单实绩中有卸货点 没有卸货点通过传入的卸货点进行查询-->
- <select id="pushMesToWebsocket" parameterType="java.util.Map" resultType="java.util.Map">
- select OO.ORDER_NUMBER "orderNumber",
- RC.CAPACITY_NUMBER "capacityNumber"
- from OMSTRUCK_ORDER OO
- left join RMS_CAPACITY RC
- on RC.CAPACITY_ID = OO.CAPACITY_ID
- where OO.ORDER_ID = #{orderId}
- and rownum = 1
- </select>
- <select id="selectOrderTypeByOrderId" resultType="java.lang.Integer" parameterType="java.math.BigDecimal">
- select OO.ORDER_TYPE "orderType"
- from OMSTRUCK_ORDER OO
- WHERE OO.ORDER_ID=#{orderId}
- </select>
- <select id="getPriceId" parameterType="java.util.Map" resultType="DECIMAL">
- SELECT ACTP.PRICE_ID AS "priceId"
- FROM AMS_CONTRACT_TRANSPORT_PRICE ACTP
- LEFT JOIN RMS_RECEIVE_PLACE RRP
- ON RRP.PLACE_ID = ACTP.PLACE_ID
- LEFT JOIN RMS_RECEIVE_ADDRESS RRA
- ON RRA.ADDRESS_ID = RRP.ADDRESS_ID
- WHERE RRP.ADDRESS_DELIVERY_ADDRESS = #{place}
- AND RRA.ADDRESS_ID = #{addressId}
- AND ACTP.DELETED = 0
- </select>
- <select id="findMaxPrice" parameterType="Object" resultType="DECIMAL" >
- SELECT
- MAX(ACTP.PRICE_VALUE) AS "priceValue"
- FROM AMS_CONTRACT_TRANSPORT_PRICE ACTP
- LEFT JOIN RMS_RECEIVE_PLACE RRP
- ON RRP.PLACE_ID = ACTP.PLACE_ID
- LEFT JOIN RMS_RECEIVE_ADDRESS RRA
- ON RRA.ADDRESS_ID = RRP.ADDRESS_ID
- WHERE RRA.ADDRESS_ID = #{addressId}
- </select>
- <select id="findMaxPriceId" parameterType="java.util.Map" resultType="java.util.Map" >
- SELECT
- ACTP.PRICE_ID AS "priceId"
- FROM AMS_CONTRACT_TRANSPORT_PRICE ACTP
- LEFT JOIN RMS_RECEIVE_PLACE RRP
- ON RRP.PLACE_ID = ACTP.PLACE_ID
- LEFT JOIN RMS_RECEIVE_ADDRESS RRA
- ON RRA.ADDRESS_ID = RRP.ADDRESS_ID
- WHERE RRA.ADDRESS_ID = #{addressId}
- AND ACTP.PRICE_VALUE = #{priceValue}
- </select>
- <select id="findCarNumberByOrderId" parameterType="DECIMAL" resultType="java.lang.String" >
- SELECT RC.CAPACITY_NUMBER AS "capacityNumber"
- FROM OMSTRUCK_ORDER OO
- LEFT JOIN RMS_CAPACITY RC
- ON RC.CAPACITY_ID = OO.CAPACITY_ID
- WHERE OO.ORDER_ID = #{orderId}
- </select>
- <select id="getOldCapacityId" resultType="java.math.BigDecimal" parameterType="decimal">
- SELECT OO.CAPACITY_ID FROM OMSTRUCK_ORDER OO
- WHERE OO.ORDER_ID = #{orderId}
- </select>
- <select id="getCapacityTel" resultType="java.math.BigDecimal">
- select nvl(RC.CAPACITY_TEL,0) "capacityTel" from RMS_CAPACITY RC
- WHERE RC.CAPACITY_NUMBER=#{capacityNo}
- AND ROWNUM =1
- </select>
- <select id="getSteelIsSpelling" resultType="java.util.Map" parameterType="java.math.BigDecimal">
- select LIST_ID "listId",
- IS_SPELLING "isSpelling",
- RESULT_ID "resultId"
- from QMS_QUEUE_RESULT where RESULT_TOTAL_ID = (select ttr.RESULT_TOTAL_ID from TMSTRUCK_TOTAL_RESULT ttr where ttr.ORDER_ID = #{orderId})
- </select>
- <delete id="deleteWeightResult" parameterType="java.math.BigDecimal">
- delete from TMSTRUCK_WEIGHT_RESULT
- where RESULT_TOTAL_ID = #{resultTotalId}
- </delete>
- <!-- 删除装车实绩 -->
- <delete id="deleteLoadResult" parameterType="java.math.BigDecimal">
- delete from TMSTRUCK_LOAD_RESULT
- where RESULT_TOTAL_ID = #{resultTotalId}
- </delete>
- <!-- 删除出厂实绩-->
- <delete id="deleteLeaveResult" parameterType="java.math.BigDecimal">
- delete from TMSTRUCK_LEAVE_FACTORY_RESULT
- where RESULT_TOTAL_ID = #{resultTotalId}
- </delete>
- <!--删除进厂实绩-->
- <delete id="deleteEnResult" parameterType="java.math.BigDecimal">
- delete from TMSTRUCK_ENFACTORY_RESULT
- where RESULT_TOTAL_ID = #{resultTotalId}
- </delete>
- <delete id="deleteSpellingList" >
- delete from QMS_QUEUE_SPELLING_LIST QQSL
- where QQSL.SPELLING_RESULT_ID = #{listId}
- </delete>
- <delete id="deleteQueuingPerformance">
- delete from QMS_QUEUE_RESULT QQR
- where QQR.RESULT_TOTAL_ID=#{resultTotalId}
- </delete>
- <delete id="deleteQueueList" >
- delete from QMS_QUEUE_LIST QQL
- where qql.LIST_ID = #{listId}
- </delete>
- <select id="getResultCount" resultType="java.lang.Integer" parameterType="java.math.BigDecimal">
- SELECT count(TER.RESULT_ID) FROM TMSTRUCK_TOTAL_RESULT TTR
- LEFT JOIN TMSTRUCK_ENFACTORY_RESULT TER
- ON TER.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
- WHERE TTR.ORDER_ID = #{orderId}
- </select>
- <select id="getOrderStatus" resultType="java.lang.Integer" parameterType="java.math.BigDecimal">
- SELECT ORDER_STATUS FROM OMSTRUCK_ORDER WHERE ORDER_ID = #{orderId}
- </select>
- <select id="getOrderMaterialNum" resultType="java.lang.Integer" parameterType="java.math.BigDecimal">
- SELECT count(oom.ORDER_MATERIAL_ID) FROM OMSTRUCK_ORDER_MATERIAL OOM
- WHERE OOM.ORDER_ID = #{orderId}
- </select>
- <select id="getWeightResultNum" resultType="java.lang.Integer" parameterType="java.math.BigDecimal">
- SELECT COUNT(TWR.WEIGHT_TASK_RESULT_ID) FROM TMSTRUCK_TOTAL_RESULT TTR
- LEFT JOIN TMSTRUCK_WEIGHT_RESULT TWR
- ON TWR.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
- WHERE TTR.ORDER_ID = #{orderId}
- </select>
- <select id="selectNetWeightCount" resultType="java.lang.Integer" parameterType="java.math.BigDecimal">
- SELECT COUNT(TWR.WEIGHT_TASK_RESULT_ID) FROM TMSTRUCK_TOTAL_RESULT TTR
- LEFT JOIN TMSTRUCK_WEIGHT_RESULT TWR
- ON TWR.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
- WHERE
- TWR.RESULT_NET_WEIGHT IS NOT NULL
- AND TTR.ORDER_ID = #{orderId}
- </select>
- <select id="getOrderIdsBySale" resultType="java.math.BigDecimal" parameterType="java.math.BigDecimal">
- SELECT OO.ORDER_ID FROM OMSTRUCK_ORDER OO
- WHERE OO.ORDER_PLAN_ID = #{toSplitSaleOrderMaterialID}
- and OO.ORDER_TYPE = 1
- </select>
- <select id="getOrderCapacityHistory" resultType="java.lang.String" parameterType="java.math.BigDecimal">
- SELECT OO.CAPACITYIDS FROM OMSTRUCK_ORDER OO
- WHERE OO.ORDER_ID = #{orderId}
- </select>
- </mapper>
|