|
|
@@ -57,6 +57,34 @@
|
|
|
<result column="RAILWAY_MODEL_NAME" jdbcType="VARCHAR" property="railwayModelName" />
|
|
|
<result column="ARRIVAL" jdbcType="VARCHAR" property="arrival" />
|
|
|
<result column="STATION" jdbcType="VARCHAR" property="station" />
|
|
|
+ <result column="VOUCHER_IDENTITY" jdbcType="VARCHAR" property="voucherIdentity" />
|
|
|
+ <result column="VOUCHER_ITEM" jdbcType="VARCHAR" property="voucherItem" />
|
|
|
+ <result column="BUSINESS_GROUP" jdbcType="VARCHAR" property="businessGroup" />
|
|
|
+ <result column="TEMP_CONVEYANCE" jdbcType="VARCHAR" property="tempConveyance" />
|
|
|
+ <result column="CONVEYANCE_TYPE" jdbcType="VARCHAR" property="conveyanceType" />
|
|
|
+ <result column="RESOURCE_SYSTEM" jdbcType="VARCHAR" property="resourceSystem" />
|
|
|
+ <result column="GROUP_PACKAGE_AMOUNT" jdbcType="DECIMAL" property="groupPackageAmount" />
|
|
|
+ <result column="GROUP_PACKAGE_UNIT" jdbcType="VARCHAR" property="groupPackageUnit" />
|
|
|
+ <result column="PACKAGE_AMOUNT" jdbcType="DECIMAL" property="packageAmount" />
|
|
|
+ <result column="PACKAGE_UNIT" jdbcType="VARCHAR" property="packageUnit" />
|
|
|
+ <result column="THEORY_AMOUNT" jdbcType="DECIMAL" property="theoryAmount" />
|
|
|
+ <result column="MEASURE_BATCH" jdbcType="VARCHAR" property="measureBatch" />
|
|
|
+ <result column="MEASURE_BATCH_COUNT" jdbcType="DECIMAL" property="measureBatchCount" />
|
|
|
+ <result column="SENDER_TYPE" jdbcType="VARCHAR" property="senderType" />
|
|
|
+ <result column="SENDER_REMARK" jdbcType="VARCHAR" property="senderRemark" />
|
|
|
+ <result column="RECEIVER_TYPE" jdbcType="VARCHAR" property="receiverType" />
|
|
|
+ <result column="RECEIVER_REMARK" jdbcType="VARCHAR" property="receiverRemark" />
|
|
|
+ <result column="TRUST_DEPARTMENT_NAME" jdbcType="VARCHAR" property="trustDepartmentName" />
|
|
|
+ <result column="TRUST_DEPARTMENT" jdbcType="VARCHAR" property="trustDepartment" />
|
|
|
+ <result column="TRUSTOR" jdbcType="VARCHAR" property="trustor" />
|
|
|
+ <result column="TRUST_DATE_TIME" jdbcType="TIMESTAMP" property="trustDateTime" />
|
|
|
+ <result column="TRUST_AVAILABILITY_TIME" jdbcType="TIMESTAMP" property="trustAvailabilityTime" />
|
|
|
+ <result column="TRUST_IP" jdbcType="VARCHAR" property="trustIp" />
|
|
|
+ <result column="STATION_TYPE" jdbcType="VARCHAR" property="stationType" />
|
|
|
+ <result column="MEASURE_STATION" jdbcType="VARCHAR" property="measureStation" />
|
|
|
+ <result column="MEASURE_STATION_NAME" jdbcType="VARCHAR" property="measureStationName" />
|
|
|
+ <result column="AMOUNT_UNIT" jdbcType="VARCHAR" property="amountUnit" />
|
|
|
+ <result column="TRUST_DAY" jdbcType="DECIMAL" property="trustDay" />
|
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
|
PREDICTION_NO, NOTICE_NO, RAILWAY_NO, RAILWAY_CARRIAGE_NO, MATTER_NO, MATTER_NAME,
|
|
|
@@ -68,7 +96,13 @@
|
|
|
EFFECTIVE_START_TIME, EFFECTIVE_END_TIME, RAILWAY_TYPE_NO, RAILWAY_TYPE_NAME, MEMO,
|
|
|
VALUE_FLAG, USED_TIME, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO,
|
|
|
UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, P_VALUE_FLAG,
|
|
|
- IS_CHEMICAL, LIMIT_WEIGHT, RAILWAY_MODEL_NO, RAILWAY_MODEL_NAME, ARRIVAL, STATION
|
|
|
+ IS_CHEMICAL, LIMIT_WEIGHT, RAILWAY_MODEL_NO, RAILWAY_MODEL_NAME, ARRIVAL, STATION,
|
|
|
+ VOUCHER_IDENTITY, VOUCHER_ITEM, BUSINESS_GROUP, TEMP_CONVEYANCE, CONVEYANCE_TYPE,
|
|
|
+ RESOURCE_SYSTEM, GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT, PACKAGE_AMOUNT, PACKAGE_UNIT,
|
|
|
+ THEORY_AMOUNT, MEASURE_BATCH, MEASURE_BATCH_COUNT, SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE,
|
|
|
+ RECEIVER_REMARK, TRUST_DEPARTMENT_NAME, TRUST_DEPARTMENT, TRUSTOR, TRUST_DATE_TIME,
|
|
|
+ TRUST_AVAILABILITY_TIME, TRUST_IP, STATION_TYPE, MEASURE_STATION, MEASURE_STATION_NAME,
|
|
|
+ AMOUNT_UNIT, TRUST_DAY
|
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
|
t.PREDICTION_NO, t.NOTICE_NO, t.RAILWAY_NO, t.RAILWAY_CARRIAGE_NO, t.MATTER_NO, t.MATTER_NAME,
|
|
|
@@ -81,7 +115,13 @@
|
|
|
t.RAILWAY_TYPE_NO, t.RAILWAY_TYPE_NAME, t.MEMO, t.VALUE_FLAG, t.USED_TIME, t.CREATE_MAN_NO,
|
|
|
t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME,
|
|
|
t.DELETE_MAN_NO, t.DELETE_MAN_NAME, t.DELETE_TIME, t.P_VALUE_FLAG, t.IS_CHEMICAL,
|
|
|
- t.LIMIT_WEIGHT, t.RAILWAY_MODEL_NO, t.RAILWAY_MODEL_NAME, t.ARRIVAL, t.STATION
|
|
|
+ t.LIMIT_WEIGHT, t.RAILWAY_MODEL_NO, t.RAILWAY_MODEL_NAME, t.ARRIVAL, t.STATION, t.VOUCHER_IDENTITY,
|
|
|
+ t.VOUCHER_ITEM, t.BUSINESS_GROUP, t.TEMP_CONVEYANCE, t.CONVEYANCE_TYPE, t.RESOURCE_SYSTEM,
|
|
|
+ t.GROUP_PACKAGE_AMOUNT, t.GROUP_PACKAGE_UNIT, t.PACKAGE_AMOUNT, t.PACKAGE_UNIT, t.THEORY_AMOUNT,
|
|
|
+ t.MEASURE_BATCH, t.MEASURE_BATCH_COUNT, t.SENDER_TYPE, t.SENDER_REMARK, t.RECEIVER_TYPE,
|
|
|
+ t.RECEIVER_REMARK, t.TRUST_DEPARTMENT_NAME, t.TRUST_DEPARTMENT, t.TRUSTOR, t.TRUST_DATE_TIME,
|
|
|
+ t.TRUST_AVAILABILITY_TIME, t.TRUST_IP, t.STATION_TYPE, t.MEASURE_STATION, t.MEASURE_STATION_NAME,
|
|
|
+ t.AMOUNT_UNIT, t.TRUST_DAY
|
|
|
</sql>
|
|
|
<sql id="select">
|
|
|
SELECT <include refid="columns"/> FROM PRE_RAILWAY_SCALE
|
|
|
@@ -256,6 +296,93 @@
|
|
|
<if test="station != null and station != ''">
|
|
|
and STATION = #{station}
|
|
|
</if>
|
|
|
+ <if test="voucherIdentity != null and voucherIdentity != ''">
|
|
|
+ and VOUCHER_IDENTITY = #{voucherIdentity}
|
|
|
+ </if>
|
|
|
+ <if test="voucherItem != null and voucherItem != ''">
|
|
|
+ and VOUCHER_ITEM = #{voucherItem}
|
|
|
+ </if>
|
|
|
+ <if test="businessGroup != null and businessGroup != ''">
|
|
|
+ and BUSINESS_GROUP = #{businessGroup}
|
|
|
+ </if>
|
|
|
+ <if test="tempConveyance != null and tempConveyance != ''">
|
|
|
+ and TEMP_CONVEYANCE = #{tempConveyance}
|
|
|
+ </if>
|
|
|
+ <if test="conveyanceType != null and conveyanceType != ''">
|
|
|
+ and CONVEYANCE_TYPE = #{conveyanceType}
|
|
|
+ </if>
|
|
|
+ <if test="resourceSystem != null and resourceSystem != ''">
|
|
|
+ and RESOURCE_SYSTEM = #{resourceSystem}
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageAmount != null">
|
|
|
+ and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageUnit != null and groupPackageUnit != ''">
|
|
|
+ and GROUP_PACKAGE_UNIT = #{groupPackageUnit}
|
|
|
+ </if>
|
|
|
+ <if test="packageAmount != null">
|
|
|
+ and PACKAGE_AMOUNT = #{packageAmount}
|
|
|
+ </if>
|
|
|
+ <if test="packageUnit != null and packageUnit != ''">
|
|
|
+ and PACKAGE_UNIT = #{packageUnit}
|
|
|
+ </if>
|
|
|
+ <if test="theoryAmount != null">
|
|
|
+ and THEORY_AMOUNT = #{theoryAmount}
|
|
|
+ </if>
|
|
|
+ <if test="measureBatch != null and measureBatch != ''">
|
|
|
+ and MEASURE_BATCH = #{measureBatch}
|
|
|
+ </if>
|
|
|
+ <if test="measureBatchCount != null">
|
|
|
+ and MEASURE_BATCH_COUNT = #{measureBatchCount}
|
|
|
+ </if>
|
|
|
+ <if test="senderType != null and senderType != ''">
|
|
|
+ and SENDER_TYPE = #{senderType}
|
|
|
+ </if>
|
|
|
+ <if test="senderRemark != null and senderRemark != ''">
|
|
|
+ and SENDER_REMARK = #{senderRemark}
|
|
|
+ </if>
|
|
|
+ <if test="receiverType != null and receiverType != ''">
|
|
|
+ and RECEIVER_TYPE = #{receiverType}
|
|
|
+ </if>
|
|
|
+ <if test="receiverRemark != null and receiverRemark != ''">
|
|
|
+ and RECEIVER_REMARK = #{receiverRemark}
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartmentName != null and trustDepartmentName != ''">
|
|
|
+ and TRUST_DEPARTMENT_NAME = #{trustDepartmentName}
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartment != null and trustDepartment != ''">
|
|
|
+ and TRUST_DEPARTMENT = #{trustDepartment}
|
|
|
+ </if>
|
|
|
+ <if test="trustor != null and trustor != ''">
|
|
|
+ and TRUSTOR = #{trustor}
|
|
|
+ </if>
|
|
|
+ <if test="trustDateTime != null">
|
|
|
+ and TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = #{trustDateTime}
|
|
|
+ </if>
|
|
|
+ <if test="trustAvailabilityTime != null">
|
|
|
+ and TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = #{trustAvailabilityTime}
|
|
|
+ </if>
|
|
|
+ <if test="trustIp != null and trustIp != ''">
|
|
|
+ and TRUST_IP = #{trustIp}
|
|
|
+ </if>
|
|
|
+ <if test="stationType != null and stationType != ''">
|
|
|
+ and STATION_TYPE = #{stationType}
|
|
|
+ </if>
|
|
|
+ <if test="measureStation != null and measureStation != ''">
|
|
|
+ and MEASURE_STATION = #{measureStation}
|
|
|
+ </if>
|
|
|
+ <if test="measureStationName != null and measureStationName != ''">
|
|
|
+ and MEASURE_STATION_NAME = #{measureStationName}
|
|
|
+ </if>
|
|
|
+ <if test="amountUnit != null and amountUnit != ''">
|
|
|
+ and AMOUNT_UNIT = #{amountUnit}
|
|
|
+ </if>
|
|
|
+ <if test="trustDay != null">
|
|
|
+ and TRUST_DAY = #{trustDay}
|
|
|
+ </if>
|
|
|
+ <if test="startTime != null and startTime!='' and endTime != null and endTime!=''">
|
|
|
+ and create_time between to_date(#{startTime},'yyyy-MM-dd HH24:mi:ss') and to_date(#{endTime},'yyyy-MM-dd HH24:mi:ss')
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
|
@@ -425,6 +552,93 @@
|
|
|
<if test="station != null and station != ''">
|
|
|
and STATION LIKE '%${station}%'
|
|
|
</if>
|
|
|
+ <if test="voucherIdentity != null and voucherIdentity != ''">
|
|
|
+ and VOUCHER_IDENTITY LIKE '%${voucherIdentity}%'
|
|
|
+ </if>
|
|
|
+ <if test="voucherItem != null and voucherItem != ''">
|
|
|
+ and VOUCHER_ITEM LIKE '%${voucherItem}%'
|
|
|
+ </if>
|
|
|
+ <if test="businessGroup != null and businessGroup != ''">
|
|
|
+ and BUSINESS_GROUP LIKE '%${businessGroup}%'
|
|
|
+ </if>
|
|
|
+ <if test="tempConveyance != null and tempConveyance != ''">
|
|
|
+ and TEMP_CONVEYANCE LIKE '%${tempConveyance}%'
|
|
|
+ </if>
|
|
|
+ <if test="conveyanceType != null and conveyanceType != ''">
|
|
|
+ and CONVEYANCE_TYPE LIKE '%${conveyanceType}%'
|
|
|
+ </if>
|
|
|
+ <if test="resourceSystem != null and resourceSystem != ''">
|
|
|
+ and RESOURCE_SYSTEM LIKE '%${resourceSystem}%'
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageAmount != null">
|
|
|
+ and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageUnit != null and groupPackageUnit != ''">
|
|
|
+ and GROUP_PACKAGE_UNIT LIKE '%${groupPackageUnit}%'
|
|
|
+ </if>
|
|
|
+ <if test="packageAmount != null">
|
|
|
+ and PACKAGE_AMOUNT = #{packageAmount}
|
|
|
+ </if>
|
|
|
+ <if test="packageUnit != null and packageUnit != ''">
|
|
|
+ and PACKAGE_UNIT LIKE '%${packageUnit}%'
|
|
|
+ </if>
|
|
|
+ <if test="theoryAmount != null">
|
|
|
+ and THEORY_AMOUNT = #{theoryAmount}
|
|
|
+ </if>
|
|
|
+ <if test="measureBatch != null and measureBatch != ''">
|
|
|
+ and MEASURE_BATCH LIKE '%${measureBatch}%'
|
|
|
+ </if>
|
|
|
+ <if test="measureBatchCount != null">
|
|
|
+ and MEASURE_BATCH_COUNT = #{measureBatchCount}
|
|
|
+ </if>
|
|
|
+ <if test="senderType != null and senderType != ''">
|
|
|
+ and SENDER_TYPE LIKE '%${senderType}%'
|
|
|
+ </if>
|
|
|
+ <if test="senderRemark != null and senderRemark != ''">
|
|
|
+ and SENDER_REMARK LIKE '%${senderRemark}%'
|
|
|
+ </if>
|
|
|
+ <if test="receiverType != null and receiverType != ''">
|
|
|
+ and RECEIVER_TYPE LIKE '%${receiverType}%'
|
|
|
+ </if>
|
|
|
+ <if test="receiverRemark != null and receiverRemark != ''">
|
|
|
+ and RECEIVER_REMARK LIKE '%${receiverRemark}%'
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartmentName != null and trustDepartmentName != ''">
|
|
|
+ and TRUST_DEPARTMENT_NAME LIKE '%${trustDepartmentName}%'
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartment != null and trustDepartment != ''">
|
|
|
+ and TRUST_DEPARTMENT LIKE '%${trustDepartment}%'
|
|
|
+ </if>
|
|
|
+ <if test="trustor != null and trustor != ''">
|
|
|
+ and TRUSTOR LIKE '%${trustor}%'
|
|
|
+ </if>
|
|
|
+ <if test="trustDateTime != null">
|
|
|
+ and TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = #{trustDateTime}
|
|
|
+ </if>
|
|
|
+ <if test="trustAvailabilityTime != null">
|
|
|
+ and TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = #{trustAvailabilityTime}
|
|
|
+ </if>
|
|
|
+ <if test="trustIp != null and trustIp != ''">
|
|
|
+ and TRUST_IP LIKE '%${trustIp}%'
|
|
|
+ </if>
|
|
|
+ <if test="stationType != null and stationType != ''">
|
|
|
+ and STATION_TYPE LIKE '%${stationType}%'
|
|
|
+ </if>
|
|
|
+ <if test="measureStation != null and measureStation != ''">
|
|
|
+ and MEASURE_STATION LIKE '%${measureStation}%'
|
|
|
+ </if>
|
|
|
+ <if test="measureStationName != null and measureStationName != ''">
|
|
|
+ and MEASURE_STATION_NAME LIKE '%${measureStationName}%'
|
|
|
+ </if>
|
|
|
+ <if test="amountUnit != null and amountUnit != ''">
|
|
|
+ and AMOUNT_UNIT LIKE '%${amountUnit}%'
|
|
|
+ </if>
|
|
|
+ <if test="trustDay != null">
|
|
|
+ and TRUST_DAY = #{trustDay}
|
|
|
+ </if>
|
|
|
+ <if test="startTime != null and startTime!='' and endTime != null and endTime!=''">
|
|
|
+ and create_time between to_date(#{startTime},'yyyy-MM-dd HH24:mi:ss') and to_date(#{endTime},'yyyy-MM-dd HH24:mi:ss')
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
@@ -596,6 +810,90 @@
|
|
|
<if test="station != null and station != ''">
|
|
|
or STATION = #{station}
|
|
|
</if>
|
|
|
+ <if test="voucherIdentity != null and voucherIdentity != ''">
|
|
|
+ or VOUCHER_IDENTITY = #{voucherIdentity}
|
|
|
+ </if>
|
|
|
+ <if test="voucherItem != null and voucherItem != ''">
|
|
|
+ or VOUCHER_ITEM = #{voucherItem}
|
|
|
+ </if>
|
|
|
+ <if test="businessGroup != null and businessGroup != ''">
|
|
|
+ or BUSINESS_GROUP = #{businessGroup}
|
|
|
+ </if>
|
|
|
+ <if test="tempConveyance != null and tempConveyance != ''">
|
|
|
+ or TEMP_CONVEYANCE = #{tempConveyance}
|
|
|
+ </if>
|
|
|
+ <if test="conveyanceType != null and conveyanceType != ''">
|
|
|
+ or CONVEYANCE_TYPE = #{conveyanceType}
|
|
|
+ </if>
|
|
|
+ <if test="resourceSystem != null and resourceSystem != ''">
|
|
|
+ or RESOURCE_SYSTEM = #{resourceSystem}
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageAmount != null">
|
|
|
+ or GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageUnit != null and groupPackageUnit != ''">
|
|
|
+ or GROUP_PACKAGE_UNIT = #{groupPackageUnit}
|
|
|
+ </if>
|
|
|
+ <if test="packageAmount != null">
|
|
|
+ or PACKAGE_AMOUNT = #{packageAmount}
|
|
|
+ </if>
|
|
|
+ <if test="packageUnit != null and packageUnit != ''">
|
|
|
+ or PACKAGE_UNIT = #{packageUnit}
|
|
|
+ </if>
|
|
|
+ <if test="theoryAmount != null">
|
|
|
+ or THEORY_AMOUNT = #{theoryAmount}
|
|
|
+ </if>
|
|
|
+ <if test="measureBatch != null and measureBatch != ''">
|
|
|
+ or MEASURE_BATCH = #{measureBatch}
|
|
|
+ </if>
|
|
|
+ <if test="measureBatchCount != null">
|
|
|
+ or MEASURE_BATCH_COUNT = #{measureBatchCount}
|
|
|
+ </if>
|
|
|
+ <if test="senderType != null and senderType != ''">
|
|
|
+ or SENDER_TYPE = #{senderType}
|
|
|
+ </if>
|
|
|
+ <if test="senderRemark != null and senderRemark != ''">
|
|
|
+ or SENDER_REMARK = #{senderRemark}
|
|
|
+ </if>
|
|
|
+ <if test="receiverType != null and receiverType != ''">
|
|
|
+ or RECEIVER_TYPE = #{receiverType}
|
|
|
+ </if>
|
|
|
+ <if test="receiverRemark != null and receiverRemark != ''">
|
|
|
+ or RECEIVER_REMARK = #{receiverRemark}
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartmentName != null and trustDepartmentName != ''">
|
|
|
+ or TRUST_DEPARTMENT_NAME = #{trustDepartmentName}
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartment != null and trustDepartment != ''">
|
|
|
+ or TRUST_DEPARTMENT = #{trustDepartment}
|
|
|
+ </if>
|
|
|
+ <if test="trustor != null and trustor != ''">
|
|
|
+ or TRUSTOR = #{trustor}
|
|
|
+ </if>
|
|
|
+ <if test="trustDateTime != null">
|
|
|
+ or TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = '#{trustDateTime}'
|
|
|
+ </if>
|
|
|
+ <if test="trustAvailabilityTime != null">
|
|
|
+ or TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = '#{trustAvailabilityTime}'
|
|
|
+ </if>
|
|
|
+ <if test="trustIp != null and trustIp != ''">
|
|
|
+ or TRUST_IP = #{trustIp}
|
|
|
+ </if>
|
|
|
+ <if test="stationType != null and stationType != ''">
|
|
|
+ or STATION_TYPE = #{stationType}
|
|
|
+ </if>
|
|
|
+ <if test="measureStation != null and measureStation != ''">
|
|
|
+ or MEASURE_STATION = #{measureStation}
|
|
|
+ </if>
|
|
|
+ <if test="measureStationName != null and measureStationName != ''">
|
|
|
+ or MEASURE_STATION_NAME = #{measureStationName}
|
|
|
+ </if>
|
|
|
+ <if test="amountUnit != null and amountUnit != ''">
|
|
|
+ or AMOUNT_UNIT = #{amountUnit}
|
|
|
+ </if>
|
|
|
+ <if test="trustDay != null">
|
|
|
+ or TRUST_DAY = #{trustDay}
|
|
|
+ </if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
|
|
|
insert into PRE_RAILWAY_SCALE (PREDICTION_NO, NOTICE_NO, RAILWAY_NO,
|
|
|
@@ -616,7 +914,17 @@
|
|
|
DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
|
|
|
P_VALUE_FLAG, IS_CHEMICAL, LIMIT_WEIGHT,
|
|
|
RAILWAY_MODEL_NO, RAILWAY_MODEL_NAME, ARRIVAL,
|
|
|
- STATION)
|
|
|
+ STATION, VOUCHER_IDENTITY, VOUCHER_ITEM,
|
|
|
+ BUSINESS_GROUP, TEMP_CONVEYANCE, CONVEYANCE_TYPE,
|
|
|
+ RESOURCE_SYSTEM, GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT,
|
|
|
+ PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT,
|
|
|
+ MEASURE_BATCH, MEASURE_BATCH_COUNT, SENDER_TYPE,
|
|
|
+ SENDER_REMARK, RECEIVER_TYPE, RECEIVER_REMARK,
|
|
|
+ TRUST_DEPARTMENT_NAME, TRUST_DEPARTMENT, TRUSTOR,
|
|
|
+ TRUST_DATE_TIME, TRUST_AVAILABILITY_TIME,
|
|
|
+ TRUST_IP, STATION_TYPE, MEASURE_STATION,
|
|
|
+ MEASURE_STATION_NAME, AMOUNT_UNIT, TRUST_DAY
|
|
|
+ )
|
|
|
values (#{predictionNo,jdbcType=VARCHAR}, #{noticeNo,jdbcType=VARCHAR}, #{railwayNo,jdbcType=VARCHAR},
|
|
|
#{railwayCarriageNo,jdbcType=VARCHAR}, #{matterNo,jdbcType=VARCHAR}, #{matterName,jdbcType=VARCHAR},
|
|
|
#{contractNo,jdbcType=VARCHAR}, #{batchNo,jdbcType=VARCHAR}, #{customerSupplierNo,jdbcType=VARCHAR},
|
|
|
@@ -635,7 +943,17 @@
|
|
|
#{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
#{pValueFlag,jdbcType=VARCHAR}, #{isChemical,jdbcType=VARCHAR}, #{limitWeight,jdbcType=DECIMAL},
|
|
|
#{railwayModelNo,jdbcType=VARCHAR}, #{railwayModelName,jdbcType=VARCHAR}, #{arrival,jdbcType=VARCHAR},
|
|
|
- #{station,jdbcType=VARCHAR})
|
|
|
+ #{station,jdbcType=VARCHAR}, #{voucherIdentity,jdbcType=VARCHAR}, #{voucherItem,jdbcType=VARCHAR},
|
|
|
+ #{businessGroup,jdbcType=VARCHAR}, #{tempConveyance,jdbcType=VARCHAR}, #{conveyanceType,jdbcType=VARCHAR},
|
|
|
+ #{resourceSystem,jdbcType=VARCHAR}, #{groupPackageAmount,jdbcType=DECIMAL}, #{groupPackageUnit,jdbcType=VARCHAR},
|
|
|
+ #{packageAmount,jdbcType=DECIMAL}, #{packageUnit,jdbcType=VARCHAR}, #{theoryAmount,jdbcType=DECIMAL},
|
|
|
+ #{measureBatch,jdbcType=VARCHAR}, #{measureBatchCount,jdbcType=DECIMAL}, #{senderType,jdbcType=VARCHAR},
|
|
|
+ #{senderRemark,jdbcType=VARCHAR}, #{receiverType,jdbcType=VARCHAR}, #{receiverRemark,jdbcType=VARCHAR},
|
|
|
+ #{trustDepartmentName,jdbcType=VARCHAR}, #{trustDepartment,jdbcType=VARCHAR}, #{trustor,jdbcType=VARCHAR},
|
|
|
+ #{trustDateTime,jdbcType=TIMESTAMP}, #{trustAvailabilityTime,jdbcType=TIMESTAMP},
|
|
|
+ #{trustIp,jdbcType=VARCHAR}, #{stationType,jdbcType=VARCHAR}, #{measureStation,jdbcType=VARCHAR},
|
|
|
+ #{measureStationName,jdbcType=VARCHAR}, #{amountUnit,jdbcType=VARCHAR}, #{trustDay,jdbcType=DECIMAL}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
|
|
|
insert into PRE_RAILWAY_SCALE
|
|
|
@@ -805,6 +1123,90 @@
|
|
|
<if test="station != null">
|
|
|
STATION,
|
|
|
</if>
|
|
|
+ <if test="voucherIdentity != null">
|
|
|
+ VOUCHER_IDENTITY,
|
|
|
+ </if>
|
|
|
+ <if test="voucherItem != null">
|
|
|
+ VOUCHER_ITEM,
|
|
|
+ </if>
|
|
|
+ <if test="businessGroup != null">
|
|
|
+ BUSINESS_GROUP,
|
|
|
+ </if>
|
|
|
+ <if test="tempConveyance != null">
|
|
|
+ TEMP_CONVEYANCE,
|
|
|
+ </if>
|
|
|
+ <if test="conveyanceType != null">
|
|
|
+ CONVEYANCE_TYPE,
|
|
|
+ </if>
|
|
|
+ <if test="resourceSystem != null">
|
|
|
+ RESOURCE_SYSTEM,
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageAmount != null">
|
|
|
+ GROUP_PACKAGE_AMOUNT,
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageUnit != null">
|
|
|
+ GROUP_PACKAGE_UNIT,
|
|
|
+ </if>
|
|
|
+ <if test="packageAmount != null">
|
|
|
+ PACKAGE_AMOUNT,
|
|
|
+ </if>
|
|
|
+ <if test="packageUnit != null">
|
|
|
+ PACKAGE_UNIT,
|
|
|
+ </if>
|
|
|
+ <if test="theoryAmount != null">
|
|
|
+ THEORY_AMOUNT,
|
|
|
+ </if>
|
|
|
+ <if test="measureBatch != null">
|
|
|
+ MEASURE_BATCH,
|
|
|
+ </if>
|
|
|
+ <if test="measureBatchCount != null">
|
|
|
+ MEASURE_BATCH_COUNT,
|
|
|
+ </if>
|
|
|
+ <if test="senderType != null">
|
|
|
+ SENDER_TYPE,
|
|
|
+ </if>
|
|
|
+ <if test="senderRemark != null">
|
|
|
+ SENDER_REMARK,
|
|
|
+ </if>
|
|
|
+ <if test="receiverType != null">
|
|
|
+ RECEIVER_TYPE,
|
|
|
+ </if>
|
|
|
+ <if test="receiverRemark != null">
|
|
|
+ RECEIVER_REMARK,
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartmentName != null">
|
|
|
+ TRUST_DEPARTMENT_NAME,
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartment != null">
|
|
|
+ TRUST_DEPARTMENT,
|
|
|
+ </if>
|
|
|
+ <if test="trustor != null">
|
|
|
+ TRUSTOR,
|
|
|
+ </if>
|
|
|
+ <if test="trustDateTime != null">
|
|
|
+ TRUST_DATE_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="trustAvailabilityTime != null">
|
|
|
+ TRUST_AVAILABILITY_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="trustIp != null">
|
|
|
+ TRUST_IP,
|
|
|
+ </if>
|
|
|
+ <if test="stationType != null">
|
|
|
+ STATION_TYPE,
|
|
|
+ </if>
|
|
|
+ <if test="measureStation != null">
|
|
|
+ MEASURE_STATION,
|
|
|
+ </if>
|
|
|
+ <if test="measureStationName != null">
|
|
|
+ MEASURE_STATION_NAME,
|
|
|
+ </if>
|
|
|
+ <if test="amountUnit != null">
|
|
|
+ AMOUNT_UNIT,
|
|
|
+ </if>
|
|
|
+ <if test="trustDay != null">
|
|
|
+ TRUST_DAY,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="predictionNo != null">
|
|
|
@@ -972,6 +1374,90 @@
|
|
|
<if test="station != null">
|
|
|
#{station,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="voucherIdentity != null">
|
|
|
+ #{voucherIdentity,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="voucherItem != null">
|
|
|
+ #{voucherItem,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="businessGroup != null">
|
|
|
+ #{businessGroup,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="tempConveyance != null">
|
|
|
+ #{tempConveyance,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="conveyanceType != null">
|
|
|
+ #{conveyanceType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="resourceSystem != null">
|
|
|
+ #{resourceSystem,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageAmount != null">
|
|
|
+ #{groupPackageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageUnit != null">
|
|
|
+ #{groupPackageUnit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="packageAmount != null">
|
|
|
+ #{packageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="packageUnit != null">
|
|
|
+ #{packageUnit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="theoryAmount != null">
|
|
|
+ #{theoryAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="measureBatch != null">
|
|
|
+ #{measureBatch,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="measureBatchCount != null">
|
|
|
+ #{measureBatchCount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="senderType != null">
|
|
|
+ #{senderType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="senderRemark != null">
|
|
|
+ #{senderRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="receiverType != null">
|
|
|
+ #{receiverType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="receiverRemark != null">
|
|
|
+ #{receiverRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartmentName != null">
|
|
|
+ #{trustDepartmentName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartment != null">
|
|
|
+ #{trustDepartment,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustor != null">
|
|
|
+ #{trustor,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDateTime != null">
|
|
|
+ #{trustDateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="trustAvailabilityTime != null">
|
|
|
+ #{trustAvailabilityTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="trustIp != null">
|
|
|
+ #{trustIp,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stationType != null">
|
|
|
+ #{stationType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="measureStation != null">
|
|
|
+ #{measureStation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="measureStationName != null">
|
|
|
+ #{measureStationName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="amountUnit != null">
|
|
|
+ #{amountUnit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDay != null">
|
|
|
+ #{trustDay,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
|
|
|
@@ -1029,7 +1515,35 @@
|
|
|
RAILWAY_MODEL_NO = #{railwayModelNo,jdbcType=VARCHAR},
|
|
|
RAILWAY_MODEL_NAME = #{railwayModelName,jdbcType=VARCHAR},
|
|
|
ARRIVAL = #{arrival,jdbcType=VARCHAR},
|
|
|
- STATION = #{station,jdbcType=VARCHAR}
|
|
|
+ STATION = #{station,jdbcType=VARCHAR},
|
|
|
+ VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
|
|
|
+ VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
|
|
|
+ BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
|
|
|
+ TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
|
|
|
+ CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
|
|
|
+ RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
|
|
|
+ GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
|
|
|
+ GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
|
|
|
+ PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
|
|
|
+ PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
|
|
|
+ THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
|
|
|
+ MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
|
|
|
+ MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
|
|
|
+ SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
|
|
|
+ SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
|
|
|
+ RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
|
|
|
+ RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
|
|
|
+ TRUST_DEPARTMENT_NAME = #{trustDepartmentName,jdbcType=VARCHAR},
|
|
|
+ TRUST_DEPARTMENT = #{trustDepartment,jdbcType=VARCHAR},
|
|
|
+ TRUSTOR = #{trustor,jdbcType=VARCHAR},
|
|
|
+ TRUST_DATE_TIME = #{trustDateTime,jdbcType=TIMESTAMP},
|
|
|
+ TRUST_AVAILABILITY_TIME = #{trustAvailabilityTime,jdbcType=TIMESTAMP},
|
|
|
+ TRUST_IP = #{trustIp,jdbcType=VARCHAR},
|
|
|
+ STATION_TYPE = #{stationType,jdbcType=VARCHAR},
|
|
|
+ MEASURE_STATION = #{measureStation,jdbcType=VARCHAR},
|
|
|
+ MEASURE_STATION_NAME = #{measureStationName,jdbcType=VARCHAR},
|
|
|
+ AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
|
|
|
+ TRUST_DAY = #{trustDay,jdbcType=DECIMAL}
|
|
|
where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.pretrack.prerailwayscale.model.PreRailwayScale">
|
|
|
@@ -1197,6 +1711,90 @@
|
|
|
<if test="station != null">
|
|
|
STATION = #{station,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="voucherIdentity != null">
|
|
|
+ VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="voucherItem != null">
|
|
|
+ VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="businessGroup != null">
|
|
|
+ BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="tempConveyance != null">
|
|
|
+ TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="conveyanceType != null">
|
|
|
+ CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="resourceSystem != null">
|
|
|
+ RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageAmount != null">
|
|
|
+ GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageUnit != null">
|
|
|
+ GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="packageAmount != null">
|
|
|
+ PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="packageUnit != null">
|
|
|
+ PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="theoryAmount != null">
|
|
|
+ THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="measureBatch != null">
|
|
|
+ MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="measureBatchCount != null">
|
|
|
+ MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="senderType != null">
|
|
|
+ SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="senderRemark != null">
|
|
|
+ SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="receiverType != null">
|
|
|
+ RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="receiverRemark != null">
|
|
|
+ RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartmentName != null">
|
|
|
+ TRUST_DEPARTMENT_NAME = #{trustDepartmentName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartment != null">
|
|
|
+ TRUST_DEPARTMENT = #{trustDepartment,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustor != null">
|
|
|
+ TRUSTOR = #{trustor,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDateTime != null">
|
|
|
+ TRUST_DATE_TIME = #{trustDateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="trustAvailabilityTime != null">
|
|
|
+ TRUST_AVAILABILITY_TIME = #{trustAvailabilityTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="trustIp != null">
|
|
|
+ TRUST_IP = #{trustIp,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stationType != null">
|
|
|
+ STATION_TYPE = #{stationType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="measureStation != null">
|
|
|
+ MEASURE_STATION = #{measureStation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="measureStationName != null">
|
|
|
+ MEASURE_STATION_NAME = #{measureStationName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="amountUnit != null">
|
|
|
+ AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDay != null">
|
|
|
+ TRUST_DAY = #{trustDay,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -1207,12 +1805,10 @@
|
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
<include refid="select"/>
|
|
|
<include refid="where"/>
|
|
|
- order by CREATE_TIME desc
|
|
|
</select>
|
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
<include refid="select"/>
|
|
|
<include refid="whereLike"/>
|
|
|
- order by CREATE_TIME desc
|
|
|
</select>
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
insert into PRE_RAILWAY_SCALE
|
|
|
@@ -1238,8 +1834,20 @@
|
|
|
UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME,
|
|
|
DELETE_TIME, P_VALUE_FLAG, IS_CHEMICAL,
|
|
|
LIMIT_WEIGHT, RAILWAY_MODEL_NO,
|
|
|
- RAILWAY_MODEL_NAME, ARRIVAL, STATION
|
|
|
- )
|
|
|
+ RAILWAY_MODEL_NAME, ARRIVAL, STATION,
|
|
|
+ VOUCHER_IDENTITY, VOUCHER_ITEM,
|
|
|
+ BUSINESS_GROUP, TEMP_CONVEYANCE,
|
|
|
+ CONVEYANCE_TYPE, RESOURCE_SYSTEM,
|
|
|
+ GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT,
|
|
|
+ PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT,
|
|
|
+ MEASURE_BATCH, MEASURE_BATCH_COUNT,
|
|
|
+ SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE,
|
|
|
+ RECEIVER_REMARK, TRUST_DEPARTMENT_NAME,
|
|
|
+ TRUST_DEPARTMENT, TRUSTOR, TRUST_DATE_TIME,
|
|
|
+ TRUST_AVAILABILITY_TIME, TRUST_IP,
|
|
|
+ STATION_TYPE, MEASURE_STATION,
|
|
|
+ MEASURE_STATION_NAME, AMOUNT_UNIT,
|
|
|
+ TRUST_DAY)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
|
#{item.predictionNo,jdbcType=VARCHAR},
|
|
|
@@ -1264,8 +1872,20 @@
|
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR},
|
|
|
#{item.deleteTime,jdbcType=TIMESTAMP}, #{item.pValueFlag,jdbcType=VARCHAR}, #{item.isChemical,jdbcType=VARCHAR},
|
|
|
#{item.limitWeight,jdbcType=DECIMAL}, #{item.railwayModelNo,jdbcType=VARCHAR},
|
|
|
- #{item.railwayModelName,jdbcType=VARCHAR}, #{item.arrival,jdbcType=VARCHAR}, #{item.station,jdbcType=VARCHAR}
|
|
|
- from dual
|
|
|
+ #{item.railwayModelName,jdbcType=VARCHAR}, #{item.arrival,jdbcType=VARCHAR}, #{item.station,jdbcType=VARCHAR},
|
|
|
+ #{item.voucherIdentity,jdbcType=VARCHAR}, #{item.voucherItem,jdbcType=VARCHAR},
|
|
|
+ #{item.businessGroup,jdbcType=VARCHAR}, #{item.tempConveyance,jdbcType=VARCHAR},
|
|
|
+ #{item.conveyanceType,jdbcType=VARCHAR}, #{item.resourceSystem,jdbcType=VARCHAR},
|
|
|
+ #{item.groupPackageAmount,jdbcType=DECIMAL}, #{item.groupPackageUnit,jdbcType=VARCHAR},
|
|
|
+ #{item.packageAmount,jdbcType=DECIMAL}, #{item.packageUnit,jdbcType=VARCHAR}, #{item.theoryAmount,jdbcType=DECIMAL},
|
|
|
+ #{item.measureBatch,jdbcType=VARCHAR}, #{item.measureBatchCount,jdbcType=DECIMAL},
|
|
|
+ #{item.senderType,jdbcType=VARCHAR}, #{item.senderRemark,jdbcType=VARCHAR}, #{item.receiverType,jdbcType=VARCHAR},
|
|
|
+ #{item.receiverRemark,jdbcType=VARCHAR}, #{item.trustDepartmentName,jdbcType=VARCHAR},
|
|
|
+ #{item.trustDepartment,jdbcType=VARCHAR}, #{item.trustor,jdbcType=VARCHAR}, #{item.trustDateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.trustAvailabilityTime,jdbcType=TIMESTAMP}, #{item.trustIp,jdbcType=VARCHAR},
|
|
|
+ #{item.stationType,jdbcType=VARCHAR}, #{item.measureStation,jdbcType=VARCHAR},
|
|
|
+ #{item.measureStationName,jdbcType=VARCHAR}, #{item.amountUnit,jdbcType=VARCHAR},
|
|
|
+ #{item.trustDay,jdbcType=DECIMAL} from dual
|
|
|
</foreach> )
|
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
|
@@ -1491,6 +2111,118 @@
|
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
when #{item.predictionNo,jdbcType=VARCHAR} then #{item.station,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
+ ,VOUCHER_IDENTITY=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.voucherIdentity,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,VOUCHER_ITEM=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.voucherItem,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,BUSINESS_GROUP=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.businessGroup,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,TEMP_CONVEYANCE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.tempConveyance,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CONVEYANCE_TYPE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.conveyanceType,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,RESOURCE_SYSTEM=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.resourceSystem,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,GROUP_PACKAGE_AMOUNT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.groupPackageAmount,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,GROUP_PACKAGE_UNIT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.groupPackageUnit,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,PACKAGE_AMOUNT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.packageAmount,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,PACKAGE_UNIT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.packageUnit,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,THEORY_AMOUNT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.theoryAmount,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,MEASURE_BATCH=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureBatch,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,MEASURE_BATCH_COUNT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureBatchCount,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,SENDER_TYPE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.senderType,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,SENDER_REMARK=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.senderRemark,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,RECEIVER_TYPE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receiverType,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,RECEIVER_REMARK=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receiverRemark,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,TRUST_DEPARTMENT_NAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDepartmentName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,TRUST_DEPARTMENT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDepartment,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,TRUSTOR=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustor,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,TRUST_DATE_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDateTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,TRUST_AVAILABILITY_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustAvailabilityTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,TRUST_IP=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustIp,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,STATION_TYPE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.stationType,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,MEASURE_STATION=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureStation,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,MEASURE_STATION_NAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureStationName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,AMOUNT_UNIT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.amountUnit,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,TRUST_DAY=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDay,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
where PREDICTION_NO in
|
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
#{item.predictionNo,jdbcType=VARCHAR}
|