123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980 |
- <?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.AmsshipDeliveryNoticeMapper">
- <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.AmsshipDeliveryNotice">
- <id column="NOTICE_ID" jdbcType="DECIMAL" property="noticeId" />
- <result column="REQUESTER_GROUP_ID" jdbcType="DECIMAL" property="requesterGroupId" />
- <result column="CARRIER_ID" jdbcType="DECIMAL" property="carrierId" />
- <result column="NOTICE_COMMERCE_METHOD" jdbcType="VARCHAR" property="noticeCommerceMethod" />
- <result column="NOTICE_HANDOVER_METHOD" jdbcType="VARCHAR" property="noticeHandoverMethod" />
- <result column="PORT_ID" jdbcType="DECIMAL" property="portId" />
- <result column="NOTICE_PORT_CONSTRUCTION_FEE" jdbcType="DECIMAL" property="noticePortConstructionFee" />
- <result column="NOTICE_DELIVERY_TIME" jdbcType="TIMESTAMP" property="noticeDeliveryTime" />
- <result column="NOTICE_PILE_FREE_DAYS" jdbcType="DECIMAL" property="noticePileFreeDays" />
- <result column="DELETE_NAME" jdbcType="VARCHAR" property="deleteName" />
- <result column="DELETE_TIME" jdbcType="VARCHAR" property="deleteTime" />
- <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="NOTICE_DISTRIBUTION_STATUS" jdbcType="VARCHAR" property="noticeDistributionStatus" />
- <result column="DELETED" jdbcType="DECIMAL" property="deleted" />
- <result column="BATCH_ID" jdbcType="DECIMAL" property="batchId" />
- <result column="PURCHASE_CONTRACT_UNIT_PRICE" jdbcType="DECIMAL" property="purchaseContractUnitPrice" />
- <result column="PURCHASE_CONTRACT_MOISTURE" jdbcType="VARCHAR" property="purchaseContractMoisture" />
- <result column="TFE_CONTENT" jdbcType="DECIMAL" property="tfeContent" />
- <result column="SILICA_CONTENT" jdbcType="DECIMAL" property="silicaContent" />
- <result column="ALUMINA_CONTENT" jdbcType="DECIMAL" property="aluminaContent" />
- <result column="PHOSPHORUS_CONTENT" jdbcType="DECIMAL" property="phosphorusContent" />
- <result column="MANGANESE_CONTENT" jdbcType="DECIMAL" property="manganeseContent" />
- </resultMap>
- <sql id="columns">
- NOTICE_ID, REQUESTER_GROUP_ID, CARRIER_ID, NOTICE_COMMERCE_METHOD, NOTICE_HANDOVER_METHOD,
- PORT_ID, NOTICE_PORT_CONSTRUCTION_FEE, NOTICE_DELIVERY_TIME, NOTICE_PILE_FREE_DAYS,
- DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
- INSERT_UPDATE_REMARK, NOTICE_DISTRIBUTION_STATUS, DELETED, BATCH_ID, PURCHASE_CONTRACT_UNIT_PRICE,
- PURCHASE_CONTRACT_MOISTURE, TFE_CONTENT, SILICA_CONTENT,
- ALUMINA_CONTENT, PHOSPHORUS_CONTENT, MANGANESE_CONTENT
- </sql>
- <sql id="columns_alias">
- t.NOTICE_ID, t.REQUESTER_GROUP_ID, t.CARRIER_ID, t.NOTICE_COMMERCE_METHOD, t.NOTICE_HANDOVER_METHOD,
- t.PORT_ID, t.NOTICE_PORT_CONSTRUCTION_FEE, t.NOTICE_DELIVERY_TIME, t.NOTICE_PILE_FREE_DAYS,
- t.DELETE_NAME, t.DELETE_TIME, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME,
- t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.NOTICE_DISTRIBUTION_STATUS, t.DELETED, t.BATCH_ID,
- t.PURCHASE_CONTRACT_UNIT_PRICE, t.PURCHASE_CONTRACT_MOISTURE, t.PURCHASE_CONTRACT_QUALITYINDEX,
- t.TFE_CONTENT, t.SILICA_CONTENT, t.ALUMINA_CONTENT, t.PHOSPHORUS_CONTENT, t.MANGANESE_CONTENT
- </sql>
- <sql id="select">
- SELECT <include refid="columns" /> FROM AMSSHIP_DELIVERY_NOTICE
- </sql>
- <sql id="select_alias">
- SELECT <include refid="columns_alias" /> FROM AMSSHIP_DELIVERY_NOTICE t
- </sql>
- <sql id="where">
- <where>
- <if test="noticeId != null">
- and NOTICE_ID = #{noticeId}
- </if>
- <if test="requesterGroupId != null">
- and REQUESTER_GROUP_ID = #{requesterGroupId}
- </if>
- <if test="carrierId != null">
- and CARRIER_ID = #{carrierId}
- </if>
- <if test="noticeCommerceMethod != null and noticeCommerceMethod != ''">
- and NOTICE_COMMERCE_METHOD = #{noticeCommerceMethod}
- </if>
- <if test="noticeHandoverMethod != null and noticeHandoverMethod != ''">
- and NOTICE_HANDOVER_METHOD = #{noticeHandoverMethod}
- </if>
- <if test="portId != null">
- and PORT_ID = #{portId}
- </if>
- <if test="noticePortConstructionFee != null">
- and NOTICE_PORT_CONSTRUCTION_FEE = #{noticePortConstructionFee}
- </if>
- <if test="noticeDeliveryTime != null">
- and TO_CHAR(NOTICE_DELIVERY_TIME,'yyyy-MM-dd') = #{noticeDeliveryTime}
- </if>
- <if test="noticePileFreeDays != null">
- and NOTICE_PILE_FREE_DAYS = #{noticePileFreeDays}
- </if>
- <if test="deleteName != null and deleteName != ''">
- and DELETE_NAME = #{deleteName}
- </if>
- <if test="deleteTime != null and deleteTime != ''">
- and DELETE_TIME = #{deleteTime}
- </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="noticeDistributionStatus != null and noticeDistributionStatus != ''">
- and NOTICE_DISTRIBUTION_STATUS = #{noticeDistributionStatus}
- </if>
- <if test="deleted != null">
- and DELETED = #{deleted}
- </if>
- <if test="batchId != null">
- and BATCH_ID = #{batchId}
- </if>
- <if test="purchaseContractUnitPrice != null">
- and PURCHASE_CONTRACT_UNIT_PRICE = #{purchaseContractUnitPrice}
- </if>
- <if test="purchaseContractMoisture != null and purchaseContractMoisture != ''">
- and PURCHASE_CONTRACT_MOISTURE = #{purchaseContractMoisture}
- </if>
- <if test="purchaseContractQualityindex != null and purchaseContractQualityindex != ''">
- and PURCHASE_CONTRACT_QUALITYINDEX = #{purchaseContractQualityindex}
- </if>
- <if test="tfeContent != null">
- and TFE_CONTENT = #{tfeContent}
- </if>
- <if test="silicaContent != null">
- and SILICA_CONTENT = #{silicaContent}
- </if>
- <if test="aluminaContent != null">
- and ALUMINA_CONTENT = #{aluminaContent}
- </if>
- <if test="phosphorusContent != null">
- and PHOSPHORUS_CONTENT = #{phosphorusContent}
- </if>
- <if test="manganeseContent != null">
- and MANGANESE_CONTENT = #{manganeseContent}
- </if>
- </where>
- </sql>
- <sql id="whereLike">
- <where>
- <if test="noticeId != null">
- and NOTICE_ID = #{noticeId}
- </if>
- <if test="requesterGroupId != null">
- and REQUESTER_GROUP_ID = #{requesterGroupId}
- </if>
- <if test="carrierId != null">
- and CARRIER_ID = #{carrierId}
- </if>
- <if test="noticeCommerceMethod != null and noticeCommerceMethod != ''">
- and NOTICE_COMMERCE_METHOD LIKE '%${noticeCommerceMethod}%'
- </if>
- <if test="noticeHandoverMethod != null and noticeHandoverMethod != ''">
- and NOTICE_HANDOVER_METHOD LIKE '%${noticeHandoverMethod}%'
- </if>
- <if test="portId != null">
- and PORT_ID = #{portId}
- </if>
- <if test="noticePortConstructionFee != null">
- and NOTICE_PORT_CONSTRUCTION_FEE = #{noticePortConstructionFee}
- </if>
- <if test="noticeDeliveryTime != null">
- and TO_CHAR(NOTICE_DELIVERY_TIME,'yyyy-MM-dd') = #{noticeDeliveryTime}
- </if>
- <if test="noticePileFreeDays != null">
- and NOTICE_PILE_FREE_DAYS = #{noticePileFreeDays}
- </if>
- <if test="deleteName != null and deleteName != ''">
- and DELETE_NAME LIKE '%${deleteName}%'
- </if>
- <if test="deleteTime != null and deleteTime != ''">
- and DELETE_TIME LIKE '%${deleteTime}%'
- </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="noticeDistributionStatus != null and noticeDistributionStatus != ''">
- and NOTICE_DISTRIBUTION_STATUS LIKE '%${noticeDistributionStatus}%'
- </if>
- <if test="deleted != null">
- and DELETED = #{deleted}
- </if>
- <if test="batchId != null">
- and BATCH_ID = #{batchId}
- </if>
- <if test="purchaseContractUnitPrice != null">
- and PURCHASE_CONTRACT_UNIT_PRICE = #{purchaseContractUnitPrice}
- </if>
- <if test="purchaseContractMoisture != null and purchaseContractMoisture != ''">
- and PURCHASE_CONTRACT_MOISTURE LIKE '%${purchaseContractMoisture}%'
- </if>
- <if test="purchaseContractQualityindex != null and purchaseContractQualityindex != ''">
- and PURCHASE_CONTRACT_QUALITYINDEX LIKE '%${purchaseContractQualityindex}%'
- </if>
- <if test="tfeContent != null">
- and TFE_CONTENT = #{tfeContent}
- </if>
- <if test="silicaContent != null">
- and SILICA_CONTENT = #{silicaContent}
- </if>
- <if test="aluminaContent != null">
- and ALUMINA_CONTENT = #{aluminaContent}
- </if>
- <if test="phosphorusContent != null">
- and PHOSPHORUS_CONTENT = #{phosphorusContent}
- </if>
- <if test="manganeseContent != null">
- and MANGANESE_CONTENT = #{manganeseContent}
- </if>
- </where>
- </sql>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
- delete from AMSSHIP_DELIVERY_NOTICE
- where NOTICE_ID = #{noticeId,jdbcType=DECIMAL}
- </delete>
- <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
- delete from AMSSHIP_DELIVERY_NOTICE
- where 1!=1
- <if test="requesterGroupId != null">
- or REQUESTER_GROUP_ID = #{requesterGroupId}
- </if>
- <if test="carrierId != null">
- or CARRIER_ID = #{carrierId}
- </if>
- <if test="noticeCommerceMethod != null and noticeCommerceMethod != ''">
- or NOTICE_COMMERCE_METHOD = #{noticeCommerceMethod}
- </if>
- <if test="noticeHandoverMethod != null and noticeHandoverMethod != ''">
- or NOTICE_HANDOVER_METHOD = #{noticeHandoverMethod}
- </if>
- <if test="portId != null">
- or PORT_ID = #{portId}
- </if>
- <if test="noticePortConstructionFee != null">
- or NOTICE_PORT_CONSTRUCTION_FEE = #{noticePortConstructionFee}
- </if>
- <if test="noticeDeliveryTime != null">
- or TO_CHAR(NOTICE_DELIVERY_TIME,'yyyy-MM-dd') = '#{noticeDeliveryTime}'
- </if>
- <if test="noticePileFreeDays != null">
- or NOTICE_PILE_FREE_DAYS = #{noticePileFreeDays}
- </if>
- <if test="deleteName != null and deleteName != ''">
- or DELETE_NAME = #{deleteName}
- </if>
- <if test="deleteTime != null and deleteTime != ''">
- or DELETE_TIME = #{deleteTime}
- </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="noticeDistributionStatus != null and noticeDistributionStatus != ''">
- or NOTICE_DISTRIBUTION_STATUS = #{noticeDistributionStatus}
- </if>
- <if test="deleted != null">
- or DELETED = #{deleted}
- </if>
- <if test="batchId != null">
- or BATCH_ID = #{batchId}
- </if>
- <if test="purchaseContractUnitPrice != null">
- or PURCHASE_CONTRACT_UNIT_PRICE = #{purchaseContractUnitPrice}
- </if>
- <if test="purchaseContractMoisture != null and purchaseContractMoisture != ''">
- or PURCHASE_CONTRACT_MOISTURE = #{purchaseContractMoisture}
- </if>
- <if test="purchaseContractQualityindex != null and purchaseContractQualityindex != ''">
- or PURCHASE_CONTRACT_QUALITYINDEX = #{purchaseContractQualityindex}
- </if>
- <if test="tfeContent != null">
- or TFE_CONTENT = #{tfeContent}
- </if>
- <if test="silicaContent != null">
- or SILICA_CONTENT = #{silicaContent}
- </if>
- <if test="aluminaContent != null">
- or ALUMINA_CONTENT = #{aluminaContent}
- </if>
- <if test="phosphorusContent != null">
- or PHOSPHORUS_CONTENT = #{phosphorusContent}
- </if>
- <if test="manganeseContent != null">
- or MANGANESE_CONTENT = #{manganeseContent}
- </if>
- </delete>
- <insert id="insert" parameterType="com.steerinfo.dil.model.AmsshipDeliveryNotice">
- insert into AMSSHIP_DELIVERY_NOTICE (NOTICE_ID, REQUESTER_GROUP_ID, CARRIER_ID,
- NOTICE_COMMERCE_METHOD, NOTICE_HANDOVER_METHOD,
- PORT_ID, NOTICE_PORT_CONSTRUCTION_FEE, NOTICE_DELIVERY_TIME,
- NOTICE_PILE_FREE_DAYS, DELETE_NAME, DELETE_TIME,
- INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
- UPDATE_TIME, INSERT_UPDATE_REMARK, NOTICE_DISTRIBUTION_STATUS,
- DELETED, BATCH_ID, PURCHASE_CONTRACT_UNIT_PRICE,
- PURCHASE_CONTRACT_MOISTURE, PURCHASE_CONTRACT_QUALITYINDEX,
- TFE_CONTENT, "SILICA_CONTENT", ALUMINA_CONTENT,
- PHOSPHORUS_CONTENT, MANGANESE_CONTENT)
- values (#{noticeId,jdbcType=DECIMAL}, #{requesterGroupId,jdbcType=DECIMAL}, #{carrierId,jdbcType=DECIMAL},
- #{noticeCommerceMethod,jdbcType=VARCHAR}, #{noticeHandoverMethod,jdbcType=VARCHAR},
- #{portId,jdbcType=DECIMAL}, #{noticePortConstructionFee,jdbcType=DECIMAL}, #{noticeDeliveryTime,jdbcType=TIMESTAMP},
- #{noticePileFreeDays,jdbcType=DECIMAL}, #{deleteName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=VARCHAR},
- #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
- #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{noticeDistributionStatus,jdbcType=VARCHAR},
- #{deleted,jdbcType=DECIMAL}, #{batchId,jdbcType=DECIMAL}, #{purchaseContractUnitPrice,jdbcType=DECIMAL},
- #{purchaseContractMoisture,jdbcType=VARCHAR}, #{purchaseContractQualityindex,jdbcType=VARCHAR},
- #{tfeContent,jdbcType=DECIMAL}, #{silicaContent,jdbcType=DECIMAL}, #{aluminaContent,jdbcType=DECIMAL},
- #{phosphorusContent,jdbcType=DECIMAL}, #{manganeseContent,jdbcType=DECIMAL})
- </insert>
- <insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmsshipDeliveryNotice">
- insert into AMSSHIP_DELIVERY_NOTICE
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="noticeId != null">
- NOTICE_ID,
- </if>
- <if test="requesterGroupId != null">
- REQUESTER_GROUP_ID,
- </if>
- <if test="carrierId != null">
- CARRIER_ID,
- </if>
- <if test="noticeCommerceMethod != null">
- NOTICE_COMMERCE_METHOD,
- </if>
- <if test="noticeHandoverMethod != null">
- NOTICE_HANDOVER_METHOD,
- </if>
- <if test="portId != null">
- PORT_ID,
- </if>
- <if test="noticePortConstructionFee != null">
- NOTICE_PORT_CONSTRUCTION_FEE,
- </if>
- <if test="noticeDeliveryTime != null">
- NOTICE_DELIVERY_TIME,
- </if>
- <if test="noticePileFreeDays != null">
- NOTICE_PILE_FREE_DAYS,
- </if>
- <if test="deleteName != null">
- DELETE_NAME,
- </if>
- <if test="deleteTime != null">
- DELETE_TIME,
- </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="noticeDistributionStatus != null">
- NOTICE_DISTRIBUTION_STATUS,
- </if>
- <if test="deleted != null">
- DELETED,
- </if>
- <if test="batchId != null">
- BATCH_ID,
- </if>
- <if test="purchaseContractUnitPrice != null">
- PURCHASE_CONTRACT_UNIT_PRICE,
- </if>
- <if test="purchaseContractMoisture != null">
- PURCHASE_CONTRACT_MOISTURE,
- </if>
- <if test="purchaseContractQualityindex != null">
- PURCHASE_CONTRACT_QUALITYINDEX,
- </if>
- <if test="tfeContent != null">
- TFE_CONTENT,
- </if>
- <if test="silicaContent != null">
- "SILICA_CONTENT",
- </if>
- <if test="aluminaContent != null">
- ALUMINA_CONTENT,
- </if>
- <if test="phosphorusContent != null">
- PHOSPHORUS_CONTENT,
- </if>
- <if test="manganeseContent != null">
- MANGANESE_CONTENT,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="noticeId != null">
- #{noticeId,jdbcType=DECIMAL},
- </if>
- <if test="requesterGroupId != null">
- #{requesterGroupId,jdbcType=DECIMAL},
- </if>
- <if test="carrierId != null">
- #{carrierId,jdbcType=DECIMAL},
- </if>
- <if test="noticeCommerceMethod != null">
- #{noticeCommerceMethod,jdbcType=VARCHAR},
- </if>
- <if test="noticeHandoverMethod != null">
- #{noticeHandoverMethod,jdbcType=VARCHAR},
- </if>
- <if test="portId != null">
- #{portId,jdbcType=DECIMAL},
- </if>
- <if test="noticePortConstructionFee != null">
- #{noticePortConstructionFee,jdbcType=DECIMAL},
- </if>
- <if test="noticeDeliveryTime != null">
- #{noticeDeliveryTime,jdbcType=TIMESTAMP},
- </if>
- <if test="noticePileFreeDays != null">
- #{noticePileFreeDays,jdbcType=DECIMAL},
- </if>
- <if test="deleteName != null">
- #{deleteName,jdbcType=VARCHAR},
- </if>
- <if test="deleteTime != null">
- #{deleteTime,jdbcType=VARCHAR},
- </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="noticeDistributionStatus != null">
- #{noticeDistributionStatus,jdbcType=VARCHAR},
- </if>
- <if test="deleted != null">
- #{deleted,jdbcType=DECIMAL},
- </if>
- <if test="batchId != null">
- #{batchId,jdbcType=DECIMAL},
- </if>
- <if test="purchaseContractUnitPrice != null">
- #{purchaseContractUnitPrice,jdbcType=DECIMAL},
- </if>
- <if test="purchaseContractMoisture != null">
- #{purchaseContractMoisture,jdbcType=VARCHAR},
- </if>
- <if test="purchaseContractQualityindex != null">
- #{purchaseContractQualityindex,jdbcType=VARCHAR},
- </if>
- <if test="tfeContent != null">
- #{tfeContent,jdbcType=DECIMAL},
- </if>
- <if test="silicaContent != null">
- #{silicaContent,jdbcType=DECIMAL},
- </if>
- <if test="aluminaContent != null">
- #{aluminaContent,jdbcType=DECIMAL},
- </if>
- <if test="phosphorusContent != null">
- #{phosphorusContent,jdbcType=DECIMAL},
- </if>
- <if test="manganeseContent != null">
- #{manganeseContent,jdbcType=DECIMAL},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmsshipDeliveryNotice">
- update AMSSHIP_DELIVERY_NOTICE
- set REQUESTER_GROUP_ID = #{requesterGroupId,jdbcType=DECIMAL},
- CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
- NOTICE_COMMERCE_METHOD = #{noticeCommerceMethod,jdbcType=VARCHAR},
- NOTICE_HANDOVER_METHOD = #{noticeHandoverMethod,jdbcType=VARCHAR},
- PORT_ID = #{portId,jdbcType=DECIMAL},
- NOTICE_PORT_CONSTRUCTION_FEE = #{noticePortConstructionFee,jdbcType=DECIMAL},
- NOTICE_DELIVERY_TIME = #{noticeDeliveryTime,jdbcType=TIMESTAMP},
- NOTICE_PILE_FREE_DAYS = #{noticePileFreeDays,jdbcType=DECIMAL},
- DELETE_NAME = #{deleteName,jdbcType=VARCHAR},
- DELETE_TIME = #{deleteTime,jdbcType=VARCHAR},
- 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},
- NOTICE_DISTRIBUTION_STATUS = #{noticeDistributionStatus,jdbcType=VARCHAR},
- DELETED = #{deleted,jdbcType=DECIMAL},
- BATCH_ID = #{batchId,jdbcType=DECIMAL},
- PURCHASE_CONTRACT_UNIT_PRICE = #{purchaseContractUnitPrice,jdbcType=DECIMAL},
- PURCHASE_CONTRACT_MOISTURE = #{purchaseContractMoisture,jdbcType=VARCHAR},
- PURCHASE_CONTRACT_QUALITYINDEX = #{purchaseContractQualityindex,jdbcType=VARCHAR},
- TFE_CONTENT = #{tfeContent,jdbcType=DECIMAL},
- SILICA_CONTENT = #{silicaContent,jdbcType=DECIMAL},
- ALUMINA_CONTENT = #{aluminaContent,jdbcType=DECIMAL},
- PHOSPHORUS_CONTENT = #{phosphorusContent,jdbcType=DECIMAL},
- MANGANESE_CONTENT = #{manganeseContent,jdbcType=DECIMAL}
- where NOTICE_ID = #{noticeId,jdbcType=DECIMAL}
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmsshipDeliveryNotice">
- update AMSSHIP_DELIVERY_NOTICE
- <set>
- <if test="requesterGroupId != null">
- REQUESTER_GROUP_ID = #{requesterGroupId,jdbcType=DECIMAL},
- </if>
- <if test="carrierId != null">
- CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
- </if>
- <if test="noticeCommerceMethod != null">
- NOTICE_COMMERCE_METHOD = #{noticeCommerceMethod,jdbcType=VARCHAR},
- </if>
- <if test="noticeHandoverMethod != null">
- NOTICE_HANDOVER_METHOD = #{noticeHandoverMethod,jdbcType=VARCHAR},
- </if>
- <if test="portId != null">
- PORT_ID = #{portId,jdbcType=DECIMAL},
- </if>
- <if test="noticePortConstructionFee != null">
- NOTICE_PORT_CONSTRUCTION_FEE = #{noticePortConstructionFee,jdbcType=DECIMAL},
- </if>
- <if test="noticeDeliveryTime != null">
- NOTICE_DELIVERY_TIME = #{noticeDeliveryTime,jdbcType=TIMESTAMP},
- </if>
- <if test="noticePileFreeDays != null">
- NOTICE_PILE_FREE_DAYS = #{noticePileFreeDays,jdbcType=DECIMAL},
- </if>
- <if test="deleteName != null">
- DELETE_NAME = #{deleteName,jdbcType=VARCHAR},
- </if>
- <if test="deleteTime != null">
- DELETE_TIME = #{deleteTime,jdbcType=VARCHAR},
- </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="noticeDistributionStatus != null">
- NOTICE_DISTRIBUTION_STATUS = #{noticeDistributionStatus,jdbcType=VARCHAR},
- </if>
- <if test="deleted != null">
- DELETED = #{deleted,jdbcType=DECIMAL},
- </if>
- <if test="batchId != null">
- BATCH_ID = #{batchId,jdbcType=DECIMAL},
- </if>
- <if test="purchaseContractUnitPrice != null">
- PURCHASE_CONTRACT_UNIT_PRICE = #{purchaseContractUnitPrice,jdbcType=DECIMAL},
- </if>
- <if test="purchaseContractMoisture != null">
- PURCHASE_CONTRACT_MOISTURE = #{purchaseContractMoisture,jdbcType=VARCHAR},
- </if>
- <if test="purchaseContractQualityindex != null">
- PURCHASE_CONTRACT_QUALITYINDEX = #{purchaseContractQualityindex,jdbcType=VARCHAR},
- </if>
- <if test="tfeContent != null">
- TFE_CONTENT = #{tfeContent,jdbcType=DECIMAL},
- </if>
- <if test="silicaContent != null">
- SILICA_CONTENT = #{silicaContent,jdbcType=DECIMAL},
- </if>
- <if test="aluminaContent != null">
- ALUMINA_CONTENT = #{aluminaContent,jdbcType=DECIMAL},
- </if>
- <if test="phosphorusContent != null">
- PHOSPHORUS_CONTENT = #{phosphorusContent,jdbcType=DECIMAL},
- </if>
- <if test="manganeseContent != null">
- MANGANESE_CONTENT = #{manganeseContent,jdbcType=DECIMAL},
- </if>
- </set>
- where NOTICE_ID = #{noticeId,jdbcType=DECIMAL}
- </update>
- <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
- <include refid="select" />
- where NOTICE_ID = #{noticeId,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 AMSSHIP_DELIVERY_NOTICE
- (NOTICE_ID,
- REQUESTER_GROUP_ID, CARRIER_ID,
- NOTICE_COMMERCE_METHOD, NOTICE_HANDOVER_METHOD,
- PORT_ID, NOTICE_PORT_CONSTRUCTION_FEE,
- NOTICE_DELIVERY_TIME, NOTICE_PILE_FREE_DAYS,
- DELETE_NAME, DELETE_TIME, INSERT_USERNAME,
- INSERT_TIME, UPDATE_USERNAME,
- UPDATE_TIME, INSERT_UPDATE_REMARK,
- NOTICE_DISTRIBUTION_STATUS, DELETED,
- BATCH_ID, PURCHASE_CONTRACT_UNIT_PRICE,
- PURCHASE_CONTRACT_MOISTURE, PURCHASE_CONTRACT_QUALITYINDEX,
- TFE_CONTENT, SILICA_CONTENT, ALUMINA_CONTENT,
- PHOSPHORUS_CONTENT, MANGANESE_CONTENT
- )
- ( <foreach collection="list" item="item" separator="union all">
- select
- #{item.noticeId,jdbcType=DECIMAL},
- #{item.requesterGroupId,jdbcType=DECIMAL}, #{item.carrierId,jdbcType=DECIMAL},
- #{item.noticeCommerceMethod,jdbcType=VARCHAR}, #{item.noticeHandoverMethod,jdbcType=VARCHAR},
- #{item.portId,jdbcType=DECIMAL}, #{item.noticePortConstructionFee,jdbcType=DECIMAL},
- #{item.noticeDeliveryTime,jdbcType=TIMESTAMP}, #{item.noticePileFreeDays,jdbcType=DECIMAL},
- #{item.deleteName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR},
- #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
- #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
- #{item.noticeDistributionStatus,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL},
- #{item.batchId,jdbcType=DECIMAL}, #{item.purchaseContractUnitPrice,jdbcType=DECIMAL},
- #{item.purchaseContractMoisture,jdbcType=VARCHAR}, #{item.purchaseContractQualityindex,jdbcType=VARCHAR},
- #{item.tfeContent,jdbcType=DECIMAL}, #{item.silicaContent,jdbcType=DECIMAL}, #{item.aluminaContent,jdbcType=DECIMAL},
- #{item.phosphorusContent,jdbcType=DECIMAL}, #{item.manganeseContent,jdbcType=DECIMAL}
- from dual
- </foreach> )
- </insert>
- <update id="batchUpdate" parameterType="java.util.List">
- update AMSSHIP_DELIVERY_NOTICE
- set
- NOTICE_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.noticeId,jdbcType=DECIMAL}
- </foreach>
- ,REQUESTER_GROUP_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.requesterGroupId,jdbcType=DECIMAL}
- </foreach>
- ,CARRIER_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
- </foreach>
- ,NOTICE_COMMERCE_METHOD=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.noticeCommerceMethod,jdbcType=VARCHAR}
- </foreach>
- ,NOTICE_HANDOVER_METHOD=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.noticeHandoverMethod,jdbcType=VARCHAR}
- </foreach>
- ,PORT_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.portId,jdbcType=DECIMAL}
- </foreach>
- ,NOTICE_PORT_CONSTRUCTION_FEE=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.noticePortConstructionFee,jdbcType=DECIMAL}
- </foreach>
- ,NOTICE_DELIVERY_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.noticeDeliveryTime,jdbcType=TIMESTAMP}
- </foreach>
- ,NOTICE_PILE_FREE_DAYS=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.noticePileFreeDays,jdbcType=DECIMAL}
- </foreach>
- ,DELETE_NAME=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.deleteName,jdbcType=VARCHAR}
- </foreach>
- ,DELETE_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=VARCHAR}
- </foreach>
- ,INSERT_USERNAME=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
- </foreach>
- ,INSERT_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
- </foreach>
- ,UPDATE_USERNAME=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
- </foreach>
- ,UPDATE_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
- </foreach>
- ,INSERT_UPDATE_REMARK=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
- </foreach>
- ,NOTICE_DISTRIBUTION_STATUS=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.noticeDistributionStatus,jdbcType=VARCHAR}
- </foreach>
- ,DELETED=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
- </foreach>
- ,BATCH_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL}
- </foreach>
- ,PURCHASE_CONTRACT_UNIT_PRICE=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.purchaseContractUnitPrice,jdbcType=DECIMAL}
- </foreach>
- ,PURCHASE_CONTRACT_MOISTURE=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.purchaseContractMoisture,jdbcType=VARCHAR}
- </foreach>
- ,PURCHASE_CONTRACT_QUALITYINDEX=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.purchaseContractQualityindex,jdbcType=VARCHAR}
- </foreach>
- ,TFE_CONTENT=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.tfeContent,jdbcType=DECIMAL}
- </foreach>
- ,SILICA_CONTENT=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.silicaContent,jdbcType=DECIMAL}
- </foreach>
- ,ALUMINA_CONTENT=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.aluminaContent,jdbcType=DECIMAL}
- </foreach>
- ,PHOSPHORUS_CONTENT=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.phosphorusContent,jdbcType=DECIMAL}
- </foreach>
- ,MANGANESE_CONTENT=
- <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
- when #{item.noticeId,jdbcType=DECIMAL} then #{item.manganeseContent,jdbcType=DECIMAL}
- </foreach>
- where NOTICE_ID in
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
- #{item.noticeId,jdbcType=DECIMAL}
- </foreach>
- </update>
- <delete id="batchDelete" parameterType="java.util.List">
- delete from AMSSHIP_DELIVERY_NOTICE
- where NOTICE_ID in
- <foreach close=")" collection="list" item="id" open="(" separator=",">
- #{id}
- </foreach>
- </delete>
- <!-- 友情提示!!!-->
- <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
- <!--展示提货委托通知 -->
- <select id="selectShipDeliveryNotice" resultType="java.util.Map">
- select *
- from
- (
- select
- t3.SHIPPER_NAME "shipperName",
- t4.CARRIER_NAME "carrierName",
- t1.NOTICE_COMMERCE_METHOD "noticeCommerceMethod",
- t1.NOTICE_HANDOVER_METHOD "noticeHandoverMethod",
- t1.NOTICE_PORT_CONSTRUCTION_FEE "noticePortConstructionFee",
- t1.NOTICE_DELIVERY_TIME "noticeDeliveryTime",
- t1.NOTICE_PILE_FREE_DAYS "noticePileFreeDays",
- t1.PURCHASE_CONTRACT_UNIT_PRICE "purchaseContractUnitPrice",
- t1.PURCHASE_CONTRACT_MOISTURE "purchaseContractMoisture",
- t1.TFE_CONTENT "tfeContent",
- t1.PHOSPHORUS_CONTENT "phosphorusContent",
- t1.ALUMINA_CONTENT "aluminaContent",
- t1.MANGANESE_CONTENT "manganeseContent",
- t1.SILICA_CONTENT "silicaContent",
- t8.MATERIAL_NAME "materialName",
- t7.RESULT_FOREIGN_SHIP_NAME "resultForeignShipName",
- t5.RESULT_NUMBER_OF_LOANS "resultNumberOfLoans",
- t6.PORT_NAME "portName",
- t1.NOTICE_ID "noticeId",
- t1.BATCH_ID "batchId",
- t1.INSERT_TIME "insertTime"
- from AMSSHIP_DELIVERY_NOTICE t1
- left join RMS_SHIPPER t3
- on t1.REQUESTER_GROUP_ID=t3.SHIPPER_ID
- left join RMS_CARRIER t4
- on t1.CARRIER_ID=t4.CARRIER_ID
- left join AMSSHIP_CARGO_TRANSFER_RESULT t5
- on t1.BATCH_ID=t5.BATCH_ID
- left join RMS_PORT t6
- on t1.PORT_ID=t6.PORT_ID
- left join DIL_BATCH t7
- on t1.BATCH_ID=t7.BATCH_ID
- left join RMS_MATERIAL t8
- on t7.MATERIAL_ID=t8.MATERIAL_ID
- where t1.deleted = 0 and t1.NOTICE_DISTRIBUTION_STATUS=#{status}
- )
- <where>
- <if test="materialCapacityName!= null">
- and t1.MATERIAL_CAPACITY_NAME in
- <foreach close=")" collection="resultNumber" item="item" open="(" separator=",">
- #{item}
- </foreach>
- </if>
- </where>
- <where>
- <if test="noticeCommerceMethod!= null">
- and t1.NOTICE_COMMERCE_METHOD in
- <foreach close=")" collection="resultNumber" item="item" open="(" separator=",">
- #{item}
- </foreach>
- </if>
- </where>
- <where>
- <if test="noticeHandoverMethod!= null">
- and t1.NOTICE_HANDOVER_METHOD in
- <foreach close=")" collection="resultNumber" item="item" open="(" separator=",">
- #{item}
- </foreach>
- </if>
- </where>
- <where>
- <if test="noticePortConstructionFee!= null">
- and t1.NOTICE_PORT_CONSTRUCTION_FEE in
- <foreach close=")" collection="resultNumber" item="item" open="(" separator=",">
- #{item}
- </foreach>
- </if>
- </where>
- <where>
- <if test="noticeDeliveryTime!= null">
- and t1.NOTICE_DELIVERY_TIME in
- <foreach close=")" collection="resultNumber" item="item" open="(" separator=",">
- #{item}
- </foreach>
- </if>
- </where>
- <where>
- <if test="noticePileFreeDays!= null">
- and t1.NOTICE_PILE_FREE_DAYS in
- <foreach close=")" collection="resultNumber" item="item" open="(" separator=",">
- #{item}
- </foreach>
- </if>
- </where>
- <where>
- <if test="shipperName!= null">
- and t3.SHIPPER_NAME in
- <foreach close=")" collection="resultNumber" item="item" open="(" separator=",">
- #{item}
- </foreach>
- </if>
- </where>
- <where>
- <if test="carrierName!= null">
- and t4.CARRIER_NAME in
- <foreach close=")" collection="resultNumber" item="item" open="(" separator=",">
- #{item}
- </foreach>
- </if>
- </where>
- <where>
- <if test="resultNumberOfLoans!= null">
- and t5.RESULT_NUMBER_OF_LOANS in
- <foreach close=")" collection="resultNumber" item="item" open="(" separator=",">
- #{item}
- </foreach>
- </if>
- </where>
- <where>
- <if test="portName!= null">
- and t6.PORT_NAME in
- <foreach close=")" collection="resultNumber" item="item" open="(" separator=",">
- #{item}
- </foreach>
- </if>
- </where>
- <include refid="orderByInsertTime" />
- </select>
- <sql id="orderByInsertTime">
- <if test="orderField != null and orderField != ''">
- order by "${orderField}"
- <if test="orderType != null and orderType != ''">
- ${orderType}
- </if>
- </if>
- <if test="orderField == null ">
- order by "insertTime" desc
- </if>
- </sql>
- <!-- 自动生成id-->
- <select id="selectMaxId" resultType="DECIMAL">
- SELECT MAX(NOTICE_ID)+1 FROM AMSSHIP_DELIVERY_NOTICE
- </select>
- <!-- 下拉框中获取货权转移编号 -->
- <select id="getResultNumber" resultType="java.util.LinkedHashMap">
- select
- CARGO.CARGO_TRANSFER_RESULT_ID "id",
- CARGO.CARGO_TRANSFER_RESULT_ID "value",
- CARGO.RESULT_NUMBER "label"
- from
- AMSSHIP_CARGO_TRANSFER_RESULT CARGO
- </select>
- <!-- 下拉框中获取承运单位 -->
- <select id="getcarrier" resultType="java.util.LinkedHashMap">
- select
- RC.CARRIER_ID "id",
- RC.CARRIER_ID "value",
- RC.CARRIER_NAME "label"
- from
- RMS_CARRIER RC
- </select>
- <!-- 下拉框中获取托运单位 -->
- <select id="getShipper" resultType="java.util.LinkedHashMap">
- select
- RS.SHIPPER_ID "id",
- RS.SHIPPER_ID "value",
- RS.SHIPPER_NAME "label"
- from
- RMS_SHIPPER RS
- </select>
- <!--渲染数据-->
- <select id="selectByNoticeId" resultType="java.util.Map">
- select
- t1.BATCH_ID "batchId",
- t1.REQUESTER_GROUP_ID "requesterGroupId",
- t1.CARRIER_ID "carrierId",
- t1.NOTICE_COMMERCE_METHOD "noticeCommerceMethod",
- t1.NOTICE_HANDOVER_METHOD "noticeHandoverMethod",
- t1.PORT_ID "portId",
- t1.NOTICE_PORT_CONSTRUCTION_FEE "noticePortConstructionFee",
- t1.NOTICE_DELIVERY_TIME "noticeDeliveryTime",
- t1.NOTICE_PILE_FREE_DAYS "noticePileFreeDays",
- t1.PURCHASE_CONTRACT_UNIT_PRICE "purchaseContractUnitPrice",
- t1.PURCHASE_CONTRACT_MOISTURE "purchaseContractMoisture",
- t1.NOTICE_DISTRIBUTION_STATUS "noticeDistrbutionStatus",
- t1.ALUMINA_CONTENT "aluminaContent",
- t1.MANGANESE_CONTENT "manganeseContent",
- t1.PHOSPHORUS_CONTENT "phosphorusContent",
- t1.TFE_CONTENT "tfeContent",
- t1.SILICA_CONTENT "silicaContent"
- from
- AMSSHIP_DELIVERY_NOTICE t1
- where
- t1.NOTICE_ID=#{noticeId}
- </select>
- </mapper>
|