|
@@ -0,0 +1,755 @@
|
|
|
|
+<?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.AmsContractTransportPriceMapper">
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.AmsContractTransportPrice">
|
|
|
|
+ <id column="PRICE_ID" jdbcType="DECIMAL" property="priceId" />
|
|
|
|
+ <result column="SHIPPER_ID" jdbcType="DECIMAL" property="shipperId" />
|
|
|
|
+ <result column="CARRIER_ID" jdbcType="DECIMAL" property="carrierId" />
|
|
|
|
+ <result column="LINE_ID" jdbcType="DECIMAL" property="lineId" />
|
|
|
|
+ <result column="CAPACITY_TYPE_ID" jdbcType="DECIMAL" property="capacityTypeId" />
|
|
|
|
+ <result column="CARGONAME_ID" jdbcType="CHAR" property="cargonameId" />
|
|
|
|
+ <result column="PRICE_TON_KILOMETER" jdbcType="DECIMAL" property="priceTonKilometer" />
|
|
|
|
+ <result column="PRICE_VALUE" jdbcType="DECIMAL" property="priceValue" />
|
|
|
|
+ <result column="PRICE_DATE" jdbcType="TIMESTAMP" property="priceDate" />
|
|
|
|
+ <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="PLACE_ID" jdbcType="DECIMAL" property="placeId" />
|
|
|
|
+ <result column="TYPE" jdbcType="DECIMAL" property="type" />
|
|
|
|
+ <result column="DEPARTMENT" jdbcType="DECIMAL" property="department" />
|
|
|
|
+ <result column="OILPRICE_BASE" jdbcType="DECIMAL" property="oilpriceBase" />
|
|
|
|
+ <result column="OIL_TYPE_ID" jdbcType="DECIMAL" property="oilTypeId" />
|
|
|
|
+ <result column="OILPRICE_CHANGE_THRESHOLD" jdbcType="DECIMAL" property="oilpriceChangeThreshold" />
|
|
|
|
+ <result column="OLD_DATE" jdbcType="TIMESTAMP" property="oldDate" />
|
|
|
|
+ <result column="HAUL_DISTANCE" jdbcType="DECIMAL" property="haulDistance" />
|
|
|
|
+ <result column="REFERENCE_HT" jdbcType="DECIMAL" property="referenceHt" />
|
|
|
|
+ <result column="INVENTORY" jdbcType="DECIMAL" property="inventory" />
|
|
|
|
+ <result column="ISSTANDARD" jdbcType="DECIMAL" property="isstandard" />
|
|
|
|
+ </resultMap>
|
|
|
|
+ <sql id="columns">
|
|
|
|
+ PRICE_ID, SHIPPER_ID, CARRIER_ID, LINE_ID, CAPACITY_TYPE_ID, CARGONAME_ID, PRICE_TON_KILOMETER,
|
|
|
|
+ PRICE_VALUE, PRICE_DATE, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
|
+ INSERT_UPDATE_REMARK, DELETED, PLACE_ID, TYPE, DEPARTMENT, OILPRICE_BASE, OIL_TYPE_ID,
|
|
|
|
+ OILPRICE_CHANGE_THRESHOLD, OLD_DATE, HAUL_DISTANCE, REFERENCE_HT, INVENTORY, ISSTANDARD
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="columns_alias">
|
|
|
|
+ t.PRICE_ID, t.SHIPPER_ID, t.CARRIER_ID, t.LINE_ID, t.CAPACITY_TYPE_ID, t.CARGONAME_ID,
|
|
|
|
+ t.PRICE_TON_KILOMETER, t.PRICE_VALUE, t.PRICE_DATE, t.INSERT_USERNAME, t.INSERT_TIME,
|
|
|
|
+ t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED, t.PLACE_ID,
|
|
|
|
+ t.TYPE, t.DEPARTMENT, t.OILPRICE_BASE, t.OIL_TYPE_ID, t.OILPRICE_CHANGE_THRESHOLD,
|
|
|
|
+ t.OLD_DATE, t.HAUL_DISTANCE, t.REFERENCE_HT, t.INVENTORY, t.ISSTANDARD
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="select">
|
|
|
|
+ SELECT <include refid="columns" /> FROM AMS_CONTRACT_TRANSPORT_PRICE
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="select_alias">
|
|
|
|
+ SELECT <include refid="columns_alias" /> FROM AMS_CONTRACT_TRANSPORT_PRICE t
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="where">
|
|
|
|
+ <where>
|
|
|
|
+ <if test="priceId != null">
|
|
|
|
+ and PRICE_ID = #{priceId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="shipperId != null">
|
|
|
|
+ and SHIPPER_ID = #{shipperId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ and CARRIER_ID = #{carrierId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lineId != null">
|
|
|
|
+ and LINE_ID = #{lineId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="capacityTypeId != null">
|
|
|
|
+ and CAPACITY_TYPE_ID = #{capacityTypeId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="cargonameId != null">
|
|
|
|
+ and CARGONAME_ID = #{cargonameId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceTonKilometer != null">
|
|
|
|
+ and PRICE_TON_KILOMETER = #{priceTonKilometer}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceValue != null">
|
|
|
|
+ and PRICE_VALUE = #{priceValue}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceDate != null">
|
|
|
|
+ and TO_CHAR(PRICE_DATE,'yyyy-MM-dd') = #{priceDate}
|
|
|
|
+ </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="placeId != null">
|
|
|
|
+ and PLACE_ID = #{placeId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="type != null">
|
|
|
|
+ and TYPE = #{type}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="department != null">
|
|
|
|
+ and DEPARTMENT = #{department}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilpriceBase != null">
|
|
|
|
+ and OILPRICE_BASE = #{oilpriceBase}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilTypeId != null">
|
|
|
|
+ and OIL_TYPE_ID = #{oilTypeId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilpriceChangeThreshold != null">
|
|
|
|
+ and OILPRICE_CHANGE_THRESHOLD = #{oilpriceChangeThreshold}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oldDate != null">
|
|
|
|
+ and TO_CHAR(OLD_DATE,'yyyy-MM-dd') = #{oldDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="haulDistance != null">
|
|
|
|
+ and HAUL_DISTANCE = #{haulDistance}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="referenceHt != null">
|
|
|
|
+ and REFERENCE_HT = #{referenceHt}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inventory != null">
|
|
|
|
+ and INVENTORY = #{inventory}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isstandard != null">
|
|
|
|
+ and ISSTANDARD = #{isstandard}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="whereLike">
|
|
|
|
+ <where>
|
|
|
|
+ <if test="priceId != null">
|
|
|
|
+ and PRICE_ID = #{priceId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="shipperId != null">
|
|
|
|
+ and SHIPPER_ID = #{shipperId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ and CARRIER_ID = #{carrierId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lineId != null">
|
|
|
|
+ and LINE_ID = #{lineId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="capacityTypeId != null">
|
|
|
|
+ and CAPACITY_TYPE_ID = #{capacityTypeId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="cargonameId != null">
|
|
|
|
+ and CARGONAME_ID = #{cargonameId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceTonKilometer != null">
|
|
|
|
+ and PRICE_TON_KILOMETER = #{priceTonKilometer}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceValue != null">
|
|
|
|
+ and PRICE_VALUE = #{priceValue}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceDate != null">
|
|
|
|
+ and TO_CHAR(PRICE_DATE,'yyyy-MM-dd') = #{priceDate}
|
|
|
|
+ </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="placeId != null">
|
|
|
|
+ and PLACE_ID = #{placeId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="type != null">
|
|
|
|
+ and TYPE = #{type}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="department != null">
|
|
|
|
+ and DEPARTMENT = #{department}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilpriceBase != null">
|
|
|
|
+ and OILPRICE_BASE = #{oilpriceBase}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilTypeId != null">
|
|
|
|
+ and OIL_TYPE_ID = #{oilTypeId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilpriceChangeThreshold != null">
|
|
|
|
+ and OILPRICE_CHANGE_THRESHOLD = #{oilpriceChangeThreshold}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oldDate != null">
|
|
|
|
+ and TO_CHAR(OLD_DATE,'yyyy-MM-dd') = #{oldDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="haulDistance != null">
|
|
|
|
+ and HAUL_DISTANCE = #{haulDistance}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="referenceHt != null">
|
|
|
|
+ and REFERENCE_HT = #{referenceHt}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inventory != null">
|
|
|
|
+ and INVENTORY = #{inventory}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isstandard != null">
|
|
|
|
+ and ISSTANDARD = #{isstandard}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ </sql>
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="DECIMAL">
|
|
|
|
+ delete from AMS_CONTRACT_TRANSPORT_PRICE
|
|
|
|
+ where PRICE_ID = #{priceId,jdbcType=DECIMAL}
|
|
|
|
+ </delete>
|
|
|
|
+ <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
|
+ delete from AMS_CONTRACT_TRANSPORT_PRICE
|
|
|
|
+ where 1!=1
|
|
|
|
+ <if test="shipperId != null">
|
|
|
|
+ or SHIPPER_ID = #{shipperId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ or CARRIER_ID = #{carrierId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lineId != null">
|
|
|
|
+ or LINE_ID = #{lineId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="capacityTypeId != null">
|
|
|
|
+ or CAPACITY_TYPE_ID = #{capacityTypeId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="cargonameId != null">
|
|
|
|
+ or CARGONAME_ID = #{cargonameId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceTonKilometer != null">
|
|
|
|
+ or PRICE_TON_KILOMETER = #{priceTonKilometer}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceValue != null">
|
|
|
|
+ or PRICE_VALUE = #{priceValue}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceDate != null">
|
|
|
|
+ or TO_CHAR(PRICE_DATE,'yyyy-MM-dd') = '#{priceDate}'
|
|
|
|
+ </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="placeId != null">
|
|
|
|
+ or PLACE_ID = #{placeId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="type != null">
|
|
|
|
+ or TYPE = #{type}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="department != null">
|
|
|
|
+ or DEPARTMENT = #{department}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilpriceBase != null">
|
|
|
|
+ or OILPRICE_BASE = #{oilpriceBase}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilTypeId != null">
|
|
|
|
+ or OIL_TYPE_ID = #{oilTypeId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilpriceChangeThreshold != null">
|
|
|
|
+ or OILPRICE_CHANGE_THRESHOLD = #{oilpriceChangeThreshold}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oldDate != null">
|
|
|
|
+ or TO_CHAR(OLD_DATE,'yyyy-MM-dd') = '#{oldDate}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="haulDistance != null">
|
|
|
|
+ or HAUL_DISTANCE = #{haulDistance}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="referenceHt != null">
|
|
|
|
+ or REFERENCE_HT = #{referenceHt}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inventory != null">
|
|
|
|
+ or INVENTORY = #{inventory}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isstandard != null">
|
|
|
|
+ or ISSTANDARD = #{isstandard}
|
|
|
|
+ </if>
|
|
|
|
+ </delete>
|
|
|
|
+ <insert id="insert" parameterType="com.steerinfo.dil.model.AmsContractTransportPrice">
|
|
|
|
+ insert into AMS_CONTRACT_TRANSPORT_PRICE (PRICE_ID, SHIPPER_ID, CARRIER_ID,
|
|
|
|
+ LINE_ID, CAPACITY_TYPE_ID, CARGONAME_ID,
|
|
|
|
+ PRICE_TON_KILOMETER, PRICE_VALUE, PRICE_DATE,
|
|
|
|
+ INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
|
|
+ UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED,
|
|
|
|
+ PLACE_ID, TYPE, DEPARTMENT,
|
|
|
|
+ OILPRICE_BASE, OIL_TYPE_ID, OILPRICE_CHANGE_THRESHOLD,
|
|
|
|
+ OLD_DATE, HAUL_DISTANCE, REFERENCE_HT,
|
|
|
|
+ INVENTORY, ISSTANDARD)
|
|
|
|
+ values (#{priceId,jdbcType=DECIMAL}, #{shipperId,jdbcType=DECIMAL}, #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ #{lineId,jdbcType=DECIMAL}, #{capacityTypeId,jdbcType=DECIMAL}, #{cargonameId,jdbcType=CHAR},
|
|
|
|
+ #{priceTonKilometer,jdbcType=DECIMAL}, #{priceValue,jdbcType=DECIMAL}, #{priceDate,jdbcType=TIMESTAMP},
|
|
|
|
+ #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL},
|
|
|
|
+ #{placeId,jdbcType=DECIMAL}, #{type,jdbcType=DECIMAL}, #{department,jdbcType=DECIMAL},
|
|
|
|
+ #{oilpriceBase,jdbcType=DECIMAL}, #{oilTypeId,jdbcType=DECIMAL}, #{oilpriceChangeThreshold,jdbcType=DECIMAL},
|
|
|
|
+ #{oldDate,jdbcType=TIMESTAMP}, #{haulDistance,jdbcType=DECIMAL}, #{referenceHt,jdbcType=DECIMAL},
|
|
|
|
+ #{inventory,jdbcType=DECIMAL}, #{isstandard,jdbcType=DECIMAL})
|
|
|
|
+ </insert>
|
|
|
|
+ <insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmsContractTransportPrice">
|
|
|
|
+ insert into AMS_CONTRACT_TRANSPORT_PRICE
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="priceId != null">
|
|
|
|
+ PRICE_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="shipperId != null">
|
|
|
|
+ SHIPPER_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ CARRIER_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lineId != null">
|
|
|
|
+ LINE_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="capacityTypeId != null">
|
|
|
|
+ CAPACITY_TYPE_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="cargonameId != null">
|
|
|
|
+ CARGONAME_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceTonKilometer != null">
|
|
|
|
+ PRICE_TON_KILOMETER,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceValue != null">
|
|
|
|
+ PRICE_VALUE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceDate != null">
|
|
|
|
+ PRICE_DATE,
|
|
|
|
+ </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="placeId != null">
|
|
|
|
+ PLACE_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="type != null">
|
|
|
|
+ TYPE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="department != null">
|
|
|
|
+ DEPARTMENT,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilpriceBase != null">
|
|
|
|
+ OILPRICE_BASE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilTypeId != null">
|
|
|
|
+ OIL_TYPE_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilpriceChangeThreshold != null">
|
|
|
|
+ OILPRICE_CHANGE_THRESHOLD,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oldDate != null">
|
|
|
|
+ OLD_DATE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="haulDistance != null">
|
|
|
|
+ HAUL_DISTANCE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="referenceHt != null">
|
|
|
|
+ REFERENCE_HT,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inventory != null">
|
|
|
|
+ INVENTORY,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isstandard != null">
|
|
|
|
+ ISSTANDARD,
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="priceId != null">
|
|
|
|
+ #{priceId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="shipperId != null">
|
|
|
|
+ #{shipperId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lineId != null">
|
|
|
|
+ #{lineId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="capacityTypeId != null">
|
|
|
|
+ #{capacityTypeId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="cargonameId != null">
|
|
|
|
+ #{cargonameId,jdbcType=CHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceTonKilometer != null">
|
|
|
|
+ #{priceTonKilometer,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceValue != null">
|
|
|
|
+ #{priceValue,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceDate != null">
|
|
|
|
+ #{priceDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </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="placeId != null">
|
|
|
|
+ #{placeId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="type != null">
|
|
|
|
+ #{type,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="department != null">
|
|
|
|
+ #{department,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilpriceBase != null">
|
|
|
|
+ #{oilpriceBase,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilTypeId != null">
|
|
|
|
+ #{oilTypeId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilpriceChangeThreshold != null">
|
|
|
|
+ #{oilpriceChangeThreshold,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oldDate != null">
|
|
|
|
+ #{oldDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="haulDistance != null">
|
|
|
|
+ #{haulDistance,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="referenceHt != null">
|
|
|
|
+ #{referenceHt,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inventory != null">
|
|
|
|
+ #{inventory,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isstandard != null">
|
|
|
|
+ #{isstandard,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ </insert>
|
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmsContractTransportPrice">
|
|
|
|
+ update AMS_CONTRACT_TRANSPORT_PRICE
|
|
|
|
+ set SHIPPER_ID = #{shipperId,jdbcType=DECIMAL},
|
|
|
|
+ CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ LINE_ID = #{lineId,jdbcType=DECIMAL},
|
|
|
|
+ CAPACITY_TYPE_ID = #{capacityTypeId,jdbcType=DECIMAL},
|
|
|
|
+ CARGONAME_ID = #{cargonameId,jdbcType=CHAR},
|
|
|
|
+ PRICE_TON_KILOMETER = #{priceTonKilometer,jdbcType=DECIMAL},
|
|
|
|
+ PRICE_VALUE = #{priceValue,jdbcType=DECIMAL},
|
|
|
|
+ PRICE_DATE = #{priceDate,jdbcType=TIMESTAMP},
|
|
|
|
+ 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},
|
|
|
|
+ PLACE_ID = #{placeId,jdbcType=DECIMAL},
|
|
|
|
+ TYPE = #{type,jdbcType=DECIMAL},
|
|
|
|
+ DEPARTMENT = #{department,jdbcType=DECIMAL},
|
|
|
|
+ OILPRICE_BASE = #{oilpriceBase,jdbcType=DECIMAL},
|
|
|
|
+ OIL_TYPE_ID = #{oilTypeId,jdbcType=DECIMAL},
|
|
|
|
+ OILPRICE_CHANGE_THRESHOLD = #{oilpriceChangeThreshold,jdbcType=DECIMAL},
|
|
|
|
+ OLD_DATE = #{oldDate,jdbcType=TIMESTAMP},
|
|
|
|
+ HAUL_DISTANCE = #{haulDistance,jdbcType=DECIMAL},
|
|
|
|
+ REFERENCE_HT = #{referenceHt,jdbcType=DECIMAL},
|
|
|
|
+ INVENTORY = #{inventory,jdbcType=DECIMAL},
|
|
|
|
+ ISSTANDARD = #{isstandard,jdbcType=DECIMAL}
|
|
|
|
+ where PRICE_ID = #{priceId,jdbcType=DECIMAL}
|
|
|
|
+ </update>
|
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmsContractTransportPrice">
|
|
|
|
+ update AMS_CONTRACT_TRANSPORT_PRICE
|
|
|
|
+ <set>
|
|
|
|
+ <if test="shipperId != null">
|
|
|
|
+ SHIPPER_ID = #{shipperId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lineId != null">
|
|
|
|
+ LINE_ID = #{lineId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="capacityTypeId != null">
|
|
|
|
+ CAPACITY_TYPE_ID = #{capacityTypeId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="cargonameId != null">
|
|
|
|
+ CARGONAME_ID = #{cargonameId,jdbcType=CHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceTonKilometer != null">
|
|
|
|
+ PRICE_TON_KILOMETER = #{priceTonKilometer,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceValue != null">
|
|
|
|
+ PRICE_VALUE = #{priceValue,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceDate != null">
|
|
|
|
+ PRICE_DATE = #{priceDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </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="placeId != null">
|
|
|
|
+ PLACE_ID = #{placeId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="type != null">
|
|
|
|
+ TYPE = #{type,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="department != null">
|
|
|
|
+ DEPARTMENT = #{department,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilpriceBase != null">
|
|
|
|
+ OILPRICE_BASE = #{oilpriceBase,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilTypeId != null">
|
|
|
|
+ OIL_TYPE_ID = #{oilTypeId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oilpriceChangeThreshold != null">
|
|
|
|
+ OILPRICE_CHANGE_THRESHOLD = #{oilpriceChangeThreshold,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="oldDate != null">
|
|
|
|
+ OLD_DATE = #{oldDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="haulDistance != null">
|
|
|
|
+ HAUL_DISTANCE = #{haulDistance,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="referenceHt != null">
|
|
|
|
+ REFERENCE_HT = #{referenceHt,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inventory != null">
|
|
|
|
+ INVENTORY = #{inventory,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isstandard != null">
|
|
|
|
+ ISSTANDARD = #{isstandard,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ </set>
|
|
|
|
+ where PRICE_ID = #{priceId,jdbcType=DECIMAL}
|
|
|
|
+ </update>
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="decimal" resultMap="BaseResultMap">
|
|
|
|
+ <include refid="select" />
|
|
|
|
+ where PRICE_ID = #{priceId,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 AMS_CONTRACT_TRANSPORT_PRICE
|
|
|
|
+ (PRICE_ID,
|
|
|
|
+ SHIPPER_ID, CARRIER_ID, LINE_ID,
|
|
|
|
+ CAPACITY_TYPE_ID, CARGONAME_ID, PRICE_TON_KILOMETER,
|
|
|
|
+ PRICE_VALUE, PRICE_DATE, INSERT_USERNAME,
|
|
|
|
+ INSERT_TIME, UPDATE_USERNAME,
|
|
|
|
+ UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
|
+ DELETED, PLACE_ID, TYPE,
|
|
|
|
+ DEPARTMENT, OILPRICE_BASE, OIL_TYPE_ID,
|
|
|
|
+ OILPRICE_CHANGE_THRESHOLD, OLD_DATE,
|
|
|
|
+ HAUL_DISTANCE, REFERENCE_HT, INVENTORY,
|
|
|
|
+ ISSTANDARD)
|
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
+ select
|
|
|
|
+ #{item.priceId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.shipperId,jdbcType=DECIMAL}, #{item.carrierId,jdbcType=DECIMAL}, #{item.lineId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.capacityTypeId,jdbcType=DECIMAL}, #{item.cargonameId,jdbcType=CHAR}, #{item.priceTonKilometer,jdbcType=DECIMAL},
|
|
|
|
+ #{item.priceValue,jdbcType=DECIMAL}, #{item.priceDate,jdbcType=TIMESTAMP}, #{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.placeId,jdbcType=DECIMAL}, #{item.type,jdbcType=DECIMAL},
|
|
|
|
+ #{item.department,jdbcType=DECIMAL}, #{item.oilpriceBase,jdbcType=DECIMAL}, #{item.oilTypeId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.oilpriceChangeThreshold,jdbcType=DECIMAL}, #{item.oldDate,jdbcType=TIMESTAMP},
|
|
|
|
+ #{item.haulDistance,jdbcType=DECIMAL}, #{item.referenceHt,jdbcType=DECIMAL}, #{item.inventory,jdbcType=DECIMAL},
|
|
|
|
+ #{item.isstandard,jdbcType=DECIMAL} from dual
|
|
|
|
+ </foreach> )
|
|
|
|
+ </insert>
|
|
|
|
+ <update id="batchUpdate" parameterType="java.util.List">
|
|
|
|
+ update AMS_CONTRACT_TRANSPORT_PRICE
|
|
|
|
+ set
|
|
|
|
+ PRICE_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.priceId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,SHIPPER_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.shipperId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,CARRIER_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,LINE_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.lineId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,CAPACITY_TYPE_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.capacityTypeId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,CARGONAME_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.cargonameId,jdbcType=CHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,PRICE_TON_KILOMETER=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.priceTonKilometer,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,PRICE_VALUE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.priceValue,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,PRICE_DATE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.priceDate,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_USERNAME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UPDATE_USERNAME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UPDATE_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_UPDATE_REMARK=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,DELETED=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,PLACE_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.placeId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,TYPE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.type,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,DEPARTMENT=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.department,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,OILPRICE_BASE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.oilpriceBase,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,OIL_TYPE_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.oilTypeId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,OILPRICE_CHANGE_THRESHOLD=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.oilpriceChangeThreshold,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,OLD_DATE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.oldDate,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,HAUL_DISTANCE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.haulDistance,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,REFERENCE_HT=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.referenceHt,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INVENTORY=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.inventory,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ISSTANDARD=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PRICE_ID" separator=" ">
|
|
|
|
+ when #{item.priceId,jdbcType=DECIMAL} then #{item.isstandard,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ where PRICE_ID in
|
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
|
+ #{item.priceId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ </update>
|
|
|
|
+ <delete id="batchDelete" parameterType="java.util.List">
|
|
|
|
+ delete from AMS_CONTRACT_TRANSPORT_PRICE
|
|
|
|
+ where PRICE_ID in
|
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
|
+ #{id}
|
|
|
|
+ </foreach>
|
|
|
|
+ </delete>
|
|
|
|
+ <!-- 友情提示!!!-->
|
|
|
|
+ <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
+ <!-- 友情提示!!!-->
|
|
|
|
+ <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
+
|
|
|
|
+</mapper>
|