123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887 |
- <?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.BmsshipFeeMapper">
- <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.BmsshipFee">
- <id column="RESULT_ID" jdbcType="DECIMAL" property="resultId" />
- <result column="FEE" jdbcType="DECIMAL" property="fee" />
- <result column="FEE_TYPE" jdbcType="DECIMAL" property="feeType" />
- <result column="PURCHASE_ORDER_ID" jdbcType="DECIMAL" property="purchaseOrderId" />
- <result column="BATCH_ID" jdbcType="DECIMAL" property="batchId" />
- <result column="REAL_TONNAGE" jdbcType="DECIMAL" property="realTonnage" />
- <result column="UNIT_PRICE" jdbcType="DECIMAL" property="unitPrice" />
- <result column="UNIT_PRICE_ID" jdbcType="DECIMAL" property="unitPriceId" />
- <result column="RESULT_REMARKS" jdbcType="VARCHAR" property="resultRemarks" />
- <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="IMAGE" jdbcType="VARCHAR" property="image" />
- <result column="WAGON_NUMBER" jdbcType="DECIMAL" property="wagonNumber" />
- <result column="MAKE_TIME" jdbcType="TIMESTAMP" property="makeTime" />
- <result column="PORT_ID" jdbcType="DECIMAL" property="portId" />
- <result column="PORT_NUM" jdbcType="DECIMAL" property="portNum" />
- <result column="SHIP_NUM" jdbcType="DECIMAL" property="shipNum" />
- <result column="PREVIEW_FEE" jdbcType="DECIMAL" property="previewFee" />
- <result column="PREVIEW_TONNAGE" jdbcType="DECIMAL" property="previewTonnage" />
- <result column="FEE_MAKE" jdbcType="DECIMAL" property="feeMake" />
- <result column="MAKE_TONNAGE" jdbcType="DECIMAL" property="makeTonnage" />
- <result column="LOAD_WATER_TONNAGE" jdbcType="DECIMAL" property="loadWaterTonnage" />
- <result column="EN_WATER_TONNAGE" jdbcType="DECIMAL" property="enWaterTonnage" />
- <result column="TOTAL_RESULT_ID" jdbcType="DECIMAL" property="totalResultId" />
- <result column="STATEMENT_ID" jdbcType="DECIMAL" property="statementId" />
- <result column="LOADING_PROPORTION" jdbcType="DECIMAL" property="loadingProportion" />
- <result column="INSPECTIONS_FEE" jdbcType="DECIMAL" property="inspectionsFee" />
- </resultMap>
- <sql id="columns">
- RESULT_ID, FEE, FEE_TYPE, PURCHASE_ORDER_ID, BATCH_ID, REAL_TONNAGE, UNIT_PRICE,
- UNIT_PRICE_ID, RESULT_REMARKS, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
- INSERT_UPDATE_REMARK, DELETED, IMAGE, WAGON_NUMBER, MAKE_TIME, PORT_ID, PORT_NUM,
- SHIP_NUM, PREVIEW_FEE, PREVIEW_TONNAGE, FEE_MAKE, MAKE_TONNAGE, LOAD_WATER_TONNAGE,
- EN_WATER_TONNAGE, TOTAL_RESULT_ID, STATEMENT_ID, LOADING_PROPORTION, INSPECTIONS_FEE
- </sql>
- <sql id="columns_alias">
- t.RESULT_ID, t.FEE, t.FEE_TYPE, t.PURCHASE_ORDER_ID, t.BATCH_ID, t.REAL_TONNAGE,
- t.UNIT_PRICE, t.UNIT_PRICE_ID, t.RESULT_REMARKS, t.INSERT_USERNAME, t.INSERT_TIME,
- t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED, t.IMAGE, t.WAGON_NUMBER,
- t.MAKE_TIME, t.PORT_ID, t.PORT_NUM, t.SHIP_NUM, t.PREVIEW_FEE, t.PREVIEW_TONNAGE,
- t.FEE_MAKE, t.MAKE_TONNAGE, t.LOAD_WATER_TONNAGE, t.EN_WATER_TONNAGE, t.TOTAL_RESULT_ID,
- t.STATEMENT_ID, t.LOADING_PROPORTION, t.INSPECTIONS_FEE
- </sql>
- <sql id="select">
- SELECT <include refid="columns" /> FROM BMSSHIP_FEE
- </sql>
- <sql id="select_alias">
- SELECT <include refid="columns_alias" /> FROM BMSSHIP_FEE t
- </sql>
- <sql id="where">
- <where>
- <if test="resultId != null">
- and RESULT_ID = #{resultId}
- </if>
- <if test="fee != null">
- and FEE = #{fee}
- </if>
- <if test="feeType != null">
- and FEE_TYPE = #{feeType}
- </if>
- <if test="purchaseOrderId != null">
- and PURCHASE_ORDER_ID = #{purchaseOrderId}
- </if>
- <if test="batchId != null">
- and BATCH_ID = #{batchId}
- </if>
- <if test="realTonnage != null">
- and REAL_TONNAGE = #{realTonnage}
- </if>
- <if test="unitPrice != null">
- and UNIT_PRICE = #{unitPrice}
- </if>
- <if test="unitPriceId != null">
- and UNIT_PRICE_ID = #{unitPriceId}
- </if>
- <if test="resultRemarks != null and resultRemarks != ''">
- and RESULT_REMARKS = #{resultRemarks}
- </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="image != null and image != ''">
- and IMAGE = #{image}
- </if>
- <if test="wagonNumber != null">
- and WAGON_NUMBER = #{wagonNumber}
- </if>
- <if test="makeTime != null">
- and TO_CHAR(MAKE_TIME,'yyyy-MM-dd') = #{makeTime}
- </if>
- <if test="portId != null">
- and PORT_ID = #{portId}
- </if>
- <if test="portNum != null">
- and PORT_NUM = #{portNum}
- </if>
- <if test="shipNum != null">
- and SHIP_NUM = #{shipNum}
- </if>
- <if test="previewFee != null">
- and PREVIEW_FEE = #{previewFee}
- </if>
- <if test="previewTonnage != null">
- and PREVIEW_TONNAGE = #{previewTonnage}
- </if>
- <if test="feeMake != null">
- and FEE_MAKE = #{feeMake}
- </if>
- <if test="makeTonnage != null">
- and MAKE_TONNAGE = #{makeTonnage}
- </if>
- <if test="loadWaterTonnage != null">
- and LOAD_WATER_TONNAGE = #{loadWaterTonnage}
- </if>
- <if test="enWaterTonnage != null">
- and EN_WATER_TONNAGE = #{enWaterTonnage}
- </if>
- <if test="totalResultId != null">
- and TOTAL_RESULT_ID = #{totalResultId}
- </if>
- <if test="statementId != null">
- and STATEMENT_ID = #{statementId}
- </if>
- <if test="loadingProportion != null">
- and LOADING_PROPORTION = #{loadingProportion}
- </if>
- <if test="inspectionsFee != null">
- and INSPECTIONS_FEE = #{inspectionsFee}
- </if>
- </where>
- </sql>
- <sql id="whereLike">
- <where>
- <if test="resultId != null">
- and RESULT_ID = #{resultId}
- </if>
- <if test="fee != null">
- and FEE = #{fee}
- </if>
- <if test="feeType != null">
- and FEE_TYPE = #{feeType}
- </if>
- <if test="purchaseOrderId != null">
- and PURCHASE_ORDER_ID = #{purchaseOrderId}
- </if>
- <if test="batchId != null">
- and BATCH_ID = #{batchId}
- </if>
- <if test="realTonnage != null">
- and REAL_TONNAGE = #{realTonnage}
- </if>
- <if test="unitPrice != null">
- and UNIT_PRICE = #{unitPrice}
- </if>
- <if test="unitPriceId != null">
- and UNIT_PRICE_ID = #{unitPriceId}
- </if>
- <if test="resultRemarks != null and resultRemarks != ''">
- and RESULT_REMARKS LIKE '%${resultRemarks}%'
- </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="image != null and image != ''">
- and IMAGE LIKE '%${image}%'
- </if>
- <if test="wagonNumber != null">
- and WAGON_NUMBER = #{wagonNumber}
- </if>
- <if test="makeTime != null">
- and TO_CHAR(MAKE_TIME,'yyyy-MM-dd') = #{makeTime}
- </if>
- <if test="portId != null">
- and PORT_ID = #{portId}
- </if>
- <if test="portNum != null">
- and PORT_NUM = #{portNum}
- </if>
- <if test="shipNum != null">
- and SHIP_NUM = #{shipNum}
- </if>
- <if test="previewFee != null">
- and PREVIEW_FEE = #{previewFee}
- </if>
- <if test="previewTonnage != null">
- and PREVIEW_TONNAGE = #{previewTonnage}
- </if>
- <if test="feeMake != null">
- and FEE_MAKE = #{feeMake}
- </if>
- <if test="makeTonnage != null">
- and MAKE_TONNAGE = #{makeTonnage}
- </if>
- <if test="loadWaterTonnage != null">
- and LOAD_WATER_TONNAGE = #{loadWaterTonnage}
- </if>
- <if test="enWaterTonnage != null">
- and EN_WATER_TONNAGE = #{enWaterTonnage}
- </if>
- <if test="totalResultId != null">
- and TOTAL_RESULT_ID = #{totalResultId}
- </if>
- <if test="statementId != null">
- and STATEMENT_ID = #{statementId}
- </if>
- <if test="loadingProportion != null">
- and LOADING_PROPORTION = #{loadingProportion}
- </if>
- <if test="inspectionsFee != null">
- and INSPECTIONS_FEE = #{inspectionsFee}
- </if>
- </where>
- </sql>
- <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
- delete from BMSSHIP_FEE
- where RESULT_ID = #{resultId,jdbcType=DECIMAL}
- </delete>
- <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
- delete from BMSSHIP_FEE
- where 1!=1
- <if test="fee != null">
- or FEE = #{fee}
- </if>
- <if test="feeType != null">
- or FEE_TYPE = #{feeType}
- </if>
- <if test="purchaseOrderId != null">
- or PURCHASE_ORDER_ID = #{purchaseOrderId}
- </if>
- <if test="batchId != null">
- or BATCH_ID = #{batchId}
- </if>
- <if test="realTonnage != null">
- or REAL_TONNAGE = #{realTonnage}
- </if>
- <if test="unitPrice != null">
- or UNIT_PRICE = #{unitPrice}
- </if>
- <if test="unitPriceId != null">
- or UNIT_PRICE_ID = #{unitPriceId}
- </if>
- <if test="resultRemarks != null and resultRemarks != ''">
- or RESULT_REMARKS = #{resultRemarks}
- </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="image != null and image != ''">
- or IMAGE = #{image}
- </if>
- <if test="wagonNumber != null">
- or WAGON_NUMBER = #{wagonNumber}
- </if>
- <if test="makeTime != null">
- or TO_CHAR(MAKE_TIME,'yyyy-MM-dd') = '#{makeTime}'
- </if>
- <if test="portId != null">
- or PORT_ID = #{portId}
- </if>
- <if test="portNum != null">
- or PORT_NUM = #{portNum}
- </if>
- <if test="shipNum != null">
- or SHIP_NUM = #{shipNum}
- </if>
- <if test="previewFee != null">
- or PREVIEW_FEE = #{previewFee}
- </if>
- <if test="previewTonnage != null">
- or PREVIEW_TONNAGE = #{previewTonnage}
- </if>
- <if test="feeMake != null">
- or FEE_MAKE = #{feeMake}
- </if>
- <if test="makeTonnage != null">
- or MAKE_TONNAGE = #{makeTonnage}
- </if>
- <if test="loadWaterTonnage != null">
- or LOAD_WATER_TONNAGE = #{loadWaterTonnage}
- </if>
- <if test="enWaterTonnage != null">
- or EN_WATER_TONNAGE = #{enWaterTonnage}
- </if>
- <if test="totalResultId != null">
- or TOTAL_RESULT_ID = #{totalResultId}
- </if>
- <if test="statementId != null">
- or STATEMENT_ID = #{statementId}
- </if>
- <if test="loadingProportion != null">
- or LOADING_PROPORTION = #{loadingProportion}
- </if>
- <if test="inspectionsFee != null">
- or INSPECTIONS_FEE = #{inspectionsFee}
- </if>
- </delete>
- <insert id="insert" parameterType="com.steerinfo.dil.model.BmsshipFee">
- insert into BMSSHIP_FEE (RESULT_ID, FEE, FEE_TYPE,
- PURCHASE_ORDER_ID, BATCH_ID, REAL_TONNAGE,
- UNIT_PRICE, UNIT_PRICE_ID, RESULT_REMARKS,
- INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
- UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED,
- IMAGE, WAGON_NUMBER, MAKE_TIME,
- PORT_ID, PORT_NUM, SHIP_NUM,
- PREVIEW_FEE, PREVIEW_TONNAGE, FEE_MAKE,
- MAKE_TONNAGE, LOAD_WATER_TONNAGE, EN_WATER_TONNAGE,
- TOTAL_RESULT_ID, STATEMENT_ID, LOADING_PROPORTION,
- INSPECTIONS_FEE)
- values (#{resultId,jdbcType=DECIMAL}, #{fee,jdbcType=DECIMAL}, #{feeType,jdbcType=DECIMAL},
- #{purchaseOrderId,jdbcType=DECIMAL}, #{batchId,jdbcType=DECIMAL}, #{realTonnage,jdbcType=DECIMAL},
- #{unitPrice,jdbcType=DECIMAL}, #{unitPriceId,jdbcType=DECIMAL}, #{resultRemarks,jdbcType=VARCHAR},
- #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
- #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL},
- #{image,jdbcType=VARCHAR}, #{wagonNumber,jdbcType=DECIMAL}, #{makeTime,jdbcType=TIMESTAMP},
- #{portId,jdbcType=DECIMAL}, #{portNum,jdbcType=DECIMAL}, #{shipNum,jdbcType=DECIMAL},
- #{previewFee,jdbcType=DECIMAL}, #{previewTonnage,jdbcType=DECIMAL}, #{feeMake,jdbcType=DECIMAL},
- #{makeTonnage,jdbcType=DECIMAL}, #{loadWaterTonnage,jdbcType=DECIMAL}, #{enWaterTonnage,jdbcType=DECIMAL},
- #{totalResultId,jdbcType=DECIMAL}, #{statementId,jdbcType=DECIMAL}, #{loadingProportion,jdbcType=DECIMAL},
- #{inspectionsFee,jdbcType=DECIMAL})
- </insert>
- <insert id="insertSelective" parameterType="com.steerinfo.dil.model.BmsshipFee">
- insert into BMSSHIP_FEE
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="resultId != null">
- RESULT_ID,
- </if>
- <if test="fee != null">
- FEE,
- </if>
- <if test="feeType != null">
- FEE_TYPE,
- </if>
- <if test="purchaseOrderId != null">
- PURCHASE_ORDER_ID,
- </if>
- <if test="batchId != null">
- BATCH_ID,
- </if>
- <if test="realTonnage != null">
- REAL_TONNAGE,
- </if>
- <if test="unitPrice != null">
- UNIT_PRICE,
- </if>
- <if test="unitPriceId != null">
- UNIT_PRICE_ID,
- </if>
- <if test="resultRemarks != null">
- RESULT_REMARKS,
- </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="image != null">
- IMAGE,
- </if>
- <if test="wagonNumber != null">
- WAGON_NUMBER,
- </if>
- <if test="makeTime != null">
- MAKE_TIME,
- </if>
- <if test="portId != null">
- PORT_ID,
- </if>
- <if test="portNum != null">
- PORT_NUM,
- </if>
- <if test="shipNum != null">
- SHIP_NUM,
- </if>
- <if test="previewFee != null">
- PREVIEW_FEE,
- </if>
- <if test="previewTonnage != null">
- PREVIEW_TONNAGE,
- </if>
- <if test="feeMake != null">
- FEE_MAKE,
- </if>
- <if test="makeTonnage != null">
- MAKE_TONNAGE,
- </if>
- <if test="loadWaterTonnage != null">
- LOAD_WATER_TONNAGE,
- </if>
- <if test="enWaterTonnage != null">
- EN_WATER_TONNAGE,
- </if>
- <if test="totalResultId != null">
- TOTAL_RESULT_ID,
- </if>
- <if test="statementId != null">
- STATEMENT_ID,
- </if>
- <if test="loadingProportion != null">
- LOADING_PROPORTION,
- </if>
- <if test="inspectionsFee != null">
- INSPECTIONS_FEE,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="resultId != null">
- #{resultId,jdbcType=DECIMAL},
- </if>
- <if test="fee != null">
- #{fee,jdbcType=DECIMAL},
- </if>
- <if test="feeType != null">
- #{feeType,jdbcType=DECIMAL},
- </if>
- <if test="purchaseOrderId != null">
- #{purchaseOrderId,jdbcType=DECIMAL},
- </if>
- <if test="batchId != null">
- #{batchId,jdbcType=DECIMAL},
- </if>
- <if test="realTonnage != null">
- #{realTonnage,jdbcType=DECIMAL},
- </if>
- <if test="unitPrice != null">
- #{unitPrice,jdbcType=DECIMAL},
- </if>
- <if test="unitPriceId != null">
- #{unitPriceId,jdbcType=DECIMAL},
- </if>
- <if test="resultRemarks != null">
- #{resultRemarks,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="deleted != null">
- #{deleted,jdbcType=DECIMAL},
- </if>
- <if test="image != null">
- #{image,jdbcType=VARCHAR},
- </if>
- <if test="wagonNumber != null">
- #{wagonNumber,jdbcType=DECIMAL},
- </if>
- <if test="makeTime != null">
- #{makeTime,jdbcType=TIMESTAMP},
- </if>
- <if test="portId != null">
- #{portId,jdbcType=DECIMAL},
- </if>
- <if test="portNum != null">
- #{portNum,jdbcType=DECIMAL},
- </if>
- <if test="shipNum != null">
- #{shipNum,jdbcType=DECIMAL},
- </if>
- <if test="previewFee != null">
- #{previewFee,jdbcType=DECIMAL},
- </if>
- <if test="previewTonnage != null">
- #{previewTonnage,jdbcType=DECIMAL},
- </if>
- <if test="feeMake != null">
- #{feeMake,jdbcType=DECIMAL},
- </if>
- <if test="makeTonnage != null">
- #{makeTonnage,jdbcType=DECIMAL},
- </if>
- <if test="loadWaterTonnage != null">
- #{loadWaterTonnage,jdbcType=DECIMAL},
- </if>
- <if test="enWaterTonnage != null">
- #{enWaterTonnage,jdbcType=DECIMAL},
- </if>
- <if test="totalResultId != null">
- #{totalResultId,jdbcType=DECIMAL},
- </if>
- <if test="statementId != null">
- #{statementId,jdbcType=DECIMAL},
- </if>
- <if test="loadingProportion != null">
- #{loadingProportion,jdbcType=DECIMAL},
- </if>
- <if test="inspectionsFee != null">
- #{inspectionsFee,jdbcType=DECIMAL},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.BmsshipFee">
- update BMSSHIP_FEE
- set FEE = #{fee,jdbcType=DECIMAL},
- FEE_TYPE = #{feeType,jdbcType=DECIMAL},
- PURCHASE_ORDER_ID = #{purchaseOrderId,jdbcType=DECIMAL},
- BATCH_ID = #{batchId,jdbcType=DECIMAL},
- REAL_TONNAGE = #{realTonnage,jdbcType=DECIMAL},
- UNIT_PRICE = #{unitPrice,jdbcType=DECIMAL},
- UNIT_PRICE_ID = #{unitPriceId,jdbcType=DECIMAL},
- RESULT_REMARKS = #{resultRemarks,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},
- DELETED = #{deleted,jdbcType=DECIMAL},
- IMAGE = #{image,jdbcType=VARCHAR},
- WAGON_NUMBER = #{wagonNumber,jdbcType=DECIMAL},
- MAKE_TIME = #{makeTime,jdbcType=TIMESTAMP},
- PORT_ID = #{portId,jdbcType=DECIMAL},
- PORT_NUM = #{portNum,jdbcType=DECIMAL},
- SHIP_NUM = #{shipNum,jdbcType=DECIMAL},
- PREVIEW_FEE = #{previewFee,jdbcType=DECIMAL},
- PREVIEW_TONNAGE = #{previewTonnage,jdbcType=DECIMAL},
- FEE_MAKE = #{feeMake,jdbcType=DECIMAL},
- MAKE_TONNAGE = #{makeTonnage,jdbcType=DECIMAL},
- LOAD_WATER_TONNAGE = #{loadWaterTonnage,jdbcType=DECIMAL},
- EN_WATER_TONNAGE = #{enWaterTonnage,jdbcType=DECIMAL},
- TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
- STATEMENT_ID = #{statementId,jdbcType=DECIMAL},
- LOADING_PROPORTION = #{loadingProportion,jdbcType=DECIMAL},
- INSPECTIONS_FEE = #{inspectionsFee,jdbcType=DECIMAL}
- where RESULT_ID = #{resultId,jdbcType=DECIMAL}
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.BmsshipFee">
- update BMSSHIP_FEE
- <set>
- <if test="fee != null">
- FEE = #{fee,jdbcType=DECIMAL},
- </if>
- <if test="feeType != null">
- FEE_TYPE = #{feeType,jdbcType=DECIMAL},
- </if>
- <if test="purchaseOrderId != null">
- PURCHASE_ORDER_ID = #{purchaseOrderId,jdbcType=DECIMAL},
- </if>
- <if test="batchId != null">
- BATCH_ID = #{batchId,jdbcType=DECIMAL},
- </if>
- <if test="realTonnage != null">
- REAL_TONNAGE = #{realTonnage,jdbcType=DECIMAL},
- </if>
- <if test="unitPrice != null">
- UNIT_PRICE = #{unitPrice,jdbcType=DECIMAL},
- </if>
- <if test="unitPriceId != null">
- UNIT_PRICE_ID = #{unitPriceId,jdbcType=DECIMAL},
- </if>
- <if test="resultRemarks != null">
- RESULT_REMARKS = #{resultRemarks,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="deleted != null">
- DELETED = #{deleted,jdbcType=DECIMAL},
- </if>
- <if test="image != null">
- IMAGE = #{image,jdbcType=VARCHAR},
- </if>
- <if test="wagonNumber != null">
- WAGON_NUMBER = #{wagonNumber,jdbcType=DECIMAL},
- </if>
- <if test="makeTime != null">
- MAKE_TIME = #{makeTime,jdbcType=TIMESTAMP},
- </if>
- <if test="portId != null">
- PORT_ID = #{portId,jdbcType=DECIMAL},
- </if>
- <if test="portNum != null">
- PORT_NUM = #{portNum,jdbcType=DECIMAL},
- </if>
- <if test="shipNum != null">
- SHIP_NUM = #{shipNum,jdbcType=DECIMAL},
- </if>
- <if test="previewFee != null">
- PREVIEW_FEE = #{previewFee,jdbcType=DECIMAL},
- </if>
- <if test="previewTonnage != null">
- PREVIEW_TONNAGE = #{previewTonnage,jdbcType=DECIMAL},
- </if>
- <if test="feeMake != null">
- FEE_MAKE = #{feeMake,jdbcType=DECIMAL},
- </if>
- <if test="makeTonnage != null">
- MAKE_TONNAGE = #{makeTonnage,jdbcType=DECIMAL},
- </if>
- <if test="loadWaterTonnage != null">
- LOAD_WATER_TONNAGE = #{loadWaterTonnage,jdbcType=DECIMAL},
- </if>
- <if test="enWaterTonnage != null">
- EN_WATER_TONNAGE = #{enWaterTonnage,jdbcType=DECIMAL},
- </if>
- <if test="totalResultId != null">
- TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
- </if>
- <if test="statementId != null">
- STATEMENT_ID = #{statementId,jdbcType=DECIMAL},
- </if>
- <if test="loadingProportion != null">
- LOADING_PROPORTION = #{loadingProportion,jdbcType=DECIMAL},
- </if>
- <if test="inspectionsFee != null">
- INSPECTIONS_FEE = #{inspectionsFee,jdbcType=DECIMAL},
- </if>
- </set>
- where RESULT_ID = #{resultId,jdbcType=DECIMAL}
- </update>
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
- <include refid="select" />
- where RESULT_ID = #{resultId,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 BMSSHIP_FEE
- (RESULT_ID,
- FEE, FEE_TYPE, PURCHASE_ORDER_ID,
- BATCH_ID, REAL_TONNAGE, UNIT_PRICE,
- UNIT_PRICE_ID, RESULT_REMARKS, INSERT_USERNAME,
- INSERT_TIME, UPDATE_USERNAME,
- UPDATE_TIME, INSERT_UPDATE_REMARK,
- DELETED, IMAGE, WAGON_NUMBER,
- MAKE_TIME, PORT_ID, PORT_NUM,
- SHIP_NUM, PREVIEW_FEE, PREVIEW_TONNAGE,
- FEE_MAKE, MAKE_TONNAGE, LOAD_WATER_TONNAGE,
- EN_WATER_TONNAGE, TOTAL_RESULT_ID,
- STATEMENT_ID, LOADING_PROPORTION,
- INSPECTIONS_FEE)
- ( <foreach collection="list" item="item" separator="union all">
- select
- #{item.resultId,jdbcType=DECIMAL},
- #{item.fee,jdbcType=DECIMAL}, #{item.feeType,jdbcType=DECIMAL}, #{item.purchaseOrderId,jdbcType=DECIMAL},
- #{item.batchId,jdbcType=DECIMAL}, #{item.realTonnage,jdbcType=DECIMAL}, #{item.unitPrice,jdbcType=DECIMAL},
- #{item.unitPriceId,jdbcType=DECIMAL}, #{item.resultRemarks,jdbcType=VARCHAR}, #{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.image,jdbcType=VARCHAR}, #{item.wagonNumber,jdbcType=DECIMAL},
- #{item.makeTime,jdbcType=TIMESTAMP}, #{item.portId,jdbcType=DECIMAL}, #{item.portNum,jdbcType=DECIMAL},
- #{item.shipNum,jdbcType=DECIMAL}, #{item.previewFee,jdbcType=DECIMAL}, #{item.previewTonnage,jdbcType=DECIMAL},
- #{item.feeMake,jdbcType=DECIMAL}, #{item.makeTonnage,jdbcType=DECIMAL}, #{item.loadWaterTonnage,jdbcType=DECIMAL},
- #{item.enWaterTonnage,jdbcType=DECIMAL}, #{item.totalResultId,jdbcType=DECIMAL},
- #{item.statementId,jdbcType=DECIMAL}, #{item.loadingProportion,jdbcType=DECIMAL},
- #{item.inspectionsFee,jdbcType=DECIMAL} from dual
- </foreach> )
- </insert>
- <update id="batchUpdate" parameterType="java.util.List">
- update BMSSHIP_FEE
- set
- RESULT_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
- </foreach>
- ,FEE=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.fee,jdbcType=DECIMAL}
- </foreach>
- ,FEE_TYPE=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.feeType,jdbcType=DECIMAL}
- </foreach>
- ,PURCHASE_ORDER_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.purchaseOrderId,jdbcType=DECIMAL}
- </foreach>
- ,BATCH_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL}
- </foreach>
- ,REAL_TONNAGE=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.realTonnage,jdbcType=DECIMAL}
- </foreach>
- ,UNIT_PRICE=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.unitPrice,jdbcType=DECIMAL}
- </foreach>
- ,UNIT_PRICE_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.unitPriceId,jdbcType=DECIMAL}
- </foreach>
- ,RESULT_REMARKS=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.resultRemarks,jdbcType=VARCHAR}
- </foreach>
- ,INSERT_USERNAME=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
- </foreach>
- ,INSERT_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
- </foreach>
- ,UPDATE_USERNAME=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
- </foreach>
- ,UPDATE_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
- </foreach>
- ,INSERT_UPDATE_REMARK=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
- </foreach>
- ,DELETED=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
- </foreach>
- ,IMAGE=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.image,jdbcType=VARCHAR}
- </foreach>
- ,WAGON_NUMBER=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.wagonNumber,jdbcType=DECIMAL}
- </foreach>
- ,MAKE_TIME=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.makeTime,jdbcType=TIMESTAMP}
- </foreach>
- ,PORT_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.portId,jdbcType=DECIMAL}
- </foreach>
- ,PORT_NUM=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.portNum,jdbcType=DECIMAL}
- </foreach>
- ,SHIP_NUM=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.shipNum,jdbcType=DECIMAL}
- </foreach>
- ,PREVIEW_FEE=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.previewFee,jdbcType=DECIMAL}
- </foreach>
- ,PREVIEW_TONNAGE=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.previewTonnage,jdbcType=DECIMAL}
- </foreach>
- ,FEE_MAKE=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.feeMake,jdbcType=DECIMAL}
- </foreach>
- ,MAKE_TONNAGE=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.makeTonnage,jdbcType=DECIMAL}
- </foreach>
- ,LOAD_WATER_TONNAGE=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.loadWaterTonnage,jdbcType=DECIMAL}
- </foreach>
- ,EN_WATER_TONNAGE=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.enWaterTonnage,jdbcType=DECIMAL}
- </foreach>
- ,TOTAL_RESULT_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.totalResultId,jdbcType=DECIMAL}
- </foreach>
- ,STATEMENT_ID=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.statementId,jdbcType=DECIMAL}
- </foreach>
- ,LOADING_PROPORTION=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.loadingProportion,jdbcType=DECIMAL}
- </foreach>
- ,INSPECTIONS_FEE=
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
- when #{item.resultId,jdbcType=DECIMAL} then #{item.inspectionsFee,jdbcType=DECIMAL}
- </foreach>
- where RESULT_ID in
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
- #{item.resultId,jdbcType=DECIMAL}
- </foreach>
- </update>
- <delete id="batchDelete" parameterType="java.util.List">
- delete from BMSSHIP_FEE
- where RESULT_ID in
- <foreach close=")" collection="list" item="id" open="(" separator=",">
- #{id}
- </foreach>
- </delete>
- <!-- 友情提示!!!-->
- <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
- <select id="getPersonnelNameByUserId" resultType="java.lang.String" parameterType="java.lang.String">
- select RP.PERSONNEL_NAME "personnelName"
- from RMS_PERSONNEL RP
- WHERE RP.PERSONNEL_SSO_ID =#{userId}
- </select>
- </mapper>
|