|
@@ -0,0 +1,706 @@
|
|
|
|
+<?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.TmstrainOutboundResultMapper">
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.TmstrainOutboundResult">
|
|
|
|
+ <id column="RESULT_ID" jdbcType="DECIMAL" property="resultId" />
|
|
|
|
+ <result column="OUTBOUND_RESULT_ID" jdbcType="VARCHAR" property="outboundResultId" />
|
|
|
|
+ <result column="RESULT_WAGON_NO" jdbcType="VARCHAR" property="resultWagonNo" />
|
|
|
|
+ <result column="RESULT_BILLABLE_TONNAGE" jdbcType="DECIMAL" property="resultBillableTonnage" />
|
|
|
|
+ <result column="LOAD_RESULT_ID" jdbcType="DECIMAL" property="loadResultId" />
|
|
|
|
+ <result column="MATERIAL_ID" jdbcType="DECIMAL" property="materialId" />
|
|
|
|
+ <result column="RESULT_REMARKS" jdbcType="VARCHAR" property="resultRemarks" />
|
|
|
|
+ <result column="BATCH_ID" jdbcType="DECIMAL" property="batchId" />
|
|
|
|
+ <result column="RESULT_CLASS" jdbcType="VARCHAR" property="resultClass" />
|
|
|
|
+ <result column="RESULT_ISCLEAR" jdbcType="VARCHAR" property="resultIsclear" />
|
|
|
|
+ <result column="SEND_DATE" jdbcType="VARCHAR" property="sendDate" />
|
|
|
|
+ <result column="RESULT_LOADING_DATE" jdbcType="TIMESTAMP" property="resultLoadingDate" />
|
|
|
|
+ <result column="SEND_STATION_ID" jdbcType="DECIMAL" property="sendStationId" />
|
|
|
|
+ <result column="ARRIVAL_STATION_ID" jdbcType="DECIMAL" property="arrivalStationId" />
|
|
|
|
+ <result column="RESULT_TYPE" jdbcType="DECIMAL" property="resultType" />
|
|
|
|
+ <result column="TRAIN_CALCULATE_ID" jdbcType="DECIMAL" property="trainCalculateId" />
|
|
|
|
+ <result column="UNLOADING_POINT_ID" jdbcType="DECIMAL" property="unloadingPointId" />
|
|
|
|
+ <result column="SEND_UNIT_ID" jdbcType="DECIMAL" property="sendUnitId" />
|
|
|
|
+ <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" />
|
|
|
|
+ </resultMap>
|
|
|
|
+ <sql id="columns">
|
|
|
|
+ RESULT_ID, OUTBOUND_RESULT_ID, RESULT_WAGON_NO, RESULT_BILLABLE_TONNAGE, LOAD_RESULT_ID,
|
|
|
|
+ MATERIAL_ID, RESULT_REMARKS, BATCH_ID, RESULT_CLASS, RESULT_ISCLEAR, SEND_DATE, RESULT_LOADING_DATE,
|
|
|
|
+ SEND_STATION_ID, ARRIVAL_STATION_ID, RESULT_TYPE, TRAIN_CALCULATE_ID, UNLOADING_POINT_ID,
|
|
|
|
+ SEND_UNIT_ID, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
|
+ DELETED
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="columns_alias">
|
|
|
|
+ t.RESULT_ID, t.OUTBOUND_RESULT_ID, t.RESULT_WAGON_NO, t.RESULT_BILLABLE_TONNAGE,
|
|
|
|
+ t.LOAD_RESULT_ID, t.MATERIAL_ID, t.RESULT_REMARKS, t.BATCH_ID, t.RESULT_CLASS, t.RESULT_ISCLEAR,
|
|
|
|
+ t.SEND_DATE, t.RESULT_LOADING_DATE, t.SEND_STATION_ID, t.ARRIVAL_STATION_ID, t.RESULT_TYPE,
|
|
|
|
+ t.TRAIN_CALCULATE_ID, t.UNLOADING_POINT_ID, t.SEND_UNIT_ID, t.INSERT_USERNAME, t.INSERT_TIME,
|
|
|
|
+ t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="select">
|
|
|
|
+ SELECT <include refid="columns"/> FROM TMSTRAIN_OUTBOUND_RESULT
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="select_alias">
|
|
|
|
+ SELECT <include refid="columns_alias"/> FROM TMSTRAIN_OUTBOUND_RESULT t
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="where">
|
|
|
|
+ <where>
|
|
|
|
+ <if test="resultId != null">
|
|
|
|
+ and RESULT_ID = #{resultId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="outboundResultId != null and outboundResultId != ''">
|
|
|
|
+ and OUTBOUND_RESULT_ID = #{outboundResultId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultWagonNo != null and resultWagonNo != ''">
|
|
|
|
+ and RESULT_WAGON_NO = #{resultWagonNo}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultBillableTonnage != null">
|
|
|
|
+ and RESULT_BILLABLE_TONNAGE = #{resultBillableTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="loadResultId != null">
|
|
|
|
+ and LOAD_RESULT_ID = #{loadResultId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="materialId != null">
|
|
|
|
+ and MATERIAL_ID = #{materialId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultRemarks != null and resultRemarks != ''">
|
|
|
|
+ and RESULT_REMARKS = #{resultRemarks}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="batchId != null">
|
|
|
|
+ and BATCH_ID = #{batchId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultClass != null and resultClass != ''">
|
|
|
|
+ and RESULT_CLASS = #{resultClass}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultIsclear != null and resultIsclear != ''">
|
|
|
|
+ and RESULT_ISCLEAR = #{resultIsclear}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendDate != null and sendDate != ''">
|
|
|
|
+ and SEND_DATE = #{sendDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultLoadingDate != null">
|
|
|
|
+ and TO_CHAR(RESULT_LOADING_DATE,'yyyy-MM-dd') = #{resultLoadingDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendStationId != null">
|
|
|
|
+ and SEND_STATION_ID = #{sendStationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="arrivalStationId != null">
|
|
|
|
+ and ARRIVAL_STATION_ID = #{arrivalStationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultType != null">
|
|
|
|
+ and RESULT_TYPE = #{resultType}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="trainCalculateId != null">
|
|
|
|
+ and TRAIN_CALCULATE_ID = #{trainCalculateId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadingPointId != null">
|
|
|
|
+ and UNLOADING_POINT_ID = #{unloadingPointId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendUnitId != null">
|
|
|
|
+ and SEND_UNIT_ID = #{sendUnitId}
|
|
|
|
+ </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>
|
|
|
|
+ </where>
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="whereLike">
|
|
|
|
+ <where>
|
|
|
|
+ <if test="resultId != null">
|
|
|
|
+ and RESULT_ID = #{resultId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="outboundResultId != null and outboundResultId != ''">
|
|
|
|
+ and OUTBOUND_RESULT_ID LIKE '%${outboundResultId}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultWagonNo != null and resultWagonNo != ''">
|
|
|
|
+ and RESULT_WAGON_NO LIKE '%${resultWagonNo}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultBillableTonnage != null">
|
|
|
|
+ and RESULT_BILLABLE_TONNAGE = #{resultBillableTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="loadResultId != null">
|
|
|
|
+ and LOAD_RESULT_ID = #{loadResultId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="materialId != null">
|
|
|
|
+ and MATERIAL_ID = #{materialId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultRemarks != null and resultRemarks != ''">
|
|
|
|
+ and RESULT_REMARKS LIKE '%${resultRemarks}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="batchId != null">
|
|
|
|
+ and BATCH_ID = #{batchId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultClass != null and resultClass != ''">
|
|
|
|
+ and RESULT_CLASS LIKE '%${resultClass}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultIsclear != null and resultIsclear != ''">
|
|
|
|
+ and RESULT_ISCLEAR LIKE '%${resultIsclear}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendDate != null and sendDate != ''">
|
|
|
|
+ and SEND_DATE LIKE '%${sendDate}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultLoadingDate != null">
|
|
|
|
+ and TO_CHAR(RESULT_LOADING_DATE,'yyyy-MM-dd') = #{resultLoadingDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendStationId != null">
|
|
|
|
+ and SEND_STATION_ID = #{sendStationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="arrivalStationId != null">
|
|
|
|
+ and ARRIVAL_STATION_ID = #{arrivalStationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultType != null">
|
|
|
|
+ and RESULT_TYPE = #{resultType}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="trainCalculateId != null">
|
|
|
|
+ and TRAIN_CALCULATE_ID = #{trainCalculateId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadingPointId != null">
|
|
|
|
+ and UNLOADING_POINT_ID = #{unloadingPointId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendUnitId != null">
|
|
|
|
+ and SEND_UNIT_ID = #{sendUnitId}
|
|
|
|
+ </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>
|
|
|
|
+ </where>
|
|
|
|
+ </sql>
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
|
+ delete from TMSTRAIN_OUTBOUND_RESULT
|
|
|
|
+ where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
|
+ </delete>
|
|
|
|
+ <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
|
+ delete from TMSTRAIN_OUTBOUND_RESULT
|
|
|
|
+ where 1!=1
|
|
|
|
+ <if test="outboundResultId != null and outboundResultId != ''">
|
|
|
|
+ or OUTBOUND_RESULT_ID = #{outboundResultId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultWagonNo != null and resultWagonNo != ''">
|
|
|
|
+ or RESULT_WAGON_NO = #{resultWagonNo}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultBillableTonnage != null">
|
|
|
|
+ or RESULT_BILLABLE_TONNAGE = #{resultBillableTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="loadResultId != null">
|
|
|
|
+ or LOAD_RESULT_ID = #{loadResultId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="materialId != null">
|
|
|
|
+ or MATERIAL_ID = #{materialId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultRemarks != null and resultRemarks != ''">
|
|
|
|
+ or RESULT_REMARKS = #{resultRemarks}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="batchId != null">
|
|
|
|
+ or BATCH_ID = #{batchId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultClass != null and resultClass != ''">
|
|
|
|
+ or RESULT_CLASS = #{resultClass}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultIsclear != null and resultIsclear != ''">
|
|
|
|
+ or RESULT_ISCLEAR = #{resultIsclear}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendDate != null and sendDate != ''">
|
|
|
|
+ or SEND_DATE = #{sendDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultLoadingDate != null">
|
|
|
|
+ or TO_CHAR(RESULT_LOADING_DATE,'yyyy-MM-dd') = '#{resultLoadingDate}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendStationId != null">
|
|
|
|
+ or SEND_STATION_ID = #{sendStationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="arrivalStationId != null">
|
|
|
|
+ or ARRIVAL_STATION_ID = #{arrivalStationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultType != null">
|
|
|
|
+ or RESULT_TYPE = #{resultType}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="trainCalculateId != null">
|
|
|
|
+ or TRAIN_CALCULATE_ID = #{trainCalculateId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadingPointId != null">
|
|
|
|
+ or UNLOADING_POINT_ID = #{unloadingPointId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendUnitId != null">
|
|
|
|
+ or SEND_UNIT_ID = #{sendUnitId}
|
|
|
|
+ </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>
|
|
|
|
+ </delete>
|
|
|
|
+ <insert id="insert" parameterType="com.steerinfo.dil.model.TmstrainOutboundResult">
|
|
|
|
+ insert into TMSTRAIN_OUTBOUND_RESULT (RESULT_ID, OUTBOUND_RESULT_ID, RESULT_WAGON_NO,
|
|
|
|
+ RESULT_BILLABLE_TONNAGE, LOAD_RESULT_ID, MATERIAL_ID,
|
|
|
|
+ RESULT_REMARKS, BATCH_ID, RESULT_CLASS,
|
|
|
|
+ RESULT_ISCLEAR, SEND_DATE, RESULT_LOADING_DATE,
|
|
|
|
+ SEND_STATION_ID, ARRIVAL_STATION_ID, RESULT_TYPE,
|
|
|
|
+ TRAIN_CALCULATE_ID, UNLOADING_POINT_ID, SEND_UNIT_ID,
|
|
|
|
+ INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
|
|
+ UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED
|
|
|
|
+ )
|
|
|
|
+ values (#{resultId,jdbcType=DECIMAL}, #{outboundResultId,jdbcType=VARCHAR}, #{resultWagonNo,jdbcType=VARCHAR},
|
|
|
|
+ #{resultBillableTonnage,jdbcType=DECIMAL}, #{loadResultId,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL},
|
|
|
|
+ #{resultRemarks,jdbcType=VARCHAR}, #{batchId,jdbcType=DECIMAL}, #{resultClass,jdbcType=VARCHAR},
|
|
|
|
+ #{resultIsclear,jdbcType=VARCHAR}, #{sendDate,jdbcType=VARCHAR}, #{resultLoadingDate,jdbcType=TIMESTAMP},
|
|
|
|
+ #{sendStationId,jdbcType=DECIMAL}, #{arrivalStationId,jdbcType=DECIMAL}, #{resultType,jdbcType=DECIMAL},
|
|
|
|
+ #{trainCalculateId,jdbcType=DECIMAL}, #{unloadingPointId,jdbcType=DECIMAL}, #{sendUnitId,jdbcType=DECIMAL},
|
|
|
|
+ #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}
|
|
|
|
+ )
|
|
|
|
+ </insert>
|
|
|
|
+ <insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstrainOutboundResult">
|
|
|
|
+ insert into TMSTRAIN_OUTBOUND_RESULT
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="resultId != null">
|
|
|
|
+ RESULT_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="outboundResultId != null">
|
|
|
|
+ OUTBOUND_RESULT_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultWagonNo != null">
|
|
|
|
+ RESULT_WAGON_NO,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultBillableTonnage != null">
|
|
|
|
+ RESULT_BILLABLE_TONNAGE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="loadResultId != null">
|
|
|
|
+ LOAD_RESULT_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="materialId != null">
|
|
|
|
+ MATERIAL_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultRemarks != null">
|
|
|
|
+ RESULT_REMARKS,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="batchId != null">
|
|
|
|
+ BATCH_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultClass != null">
|
|
|
|
+ RESULT_CLASS,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultIsclear != null">
|
|
|
|
+ RESULT_ISCLEAR,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendDate != null">
|
|
|
|
+ SEND_DATE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultLoadingDate != null">
|
|
|
|
+ RESULT_LOADING_DATE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendStationId != null">
|
|
|
|
+ SEND_STATION_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="arrivalStationId != null">
|
|
|
|
+ ARRIVAL_STATION_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultType != null">
|
|
|
|
+ RESULT_TYPE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="trainCalculateId != null">
|
|
|
|
+ TRAIN_CALCULATE_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadingPointId != null">
|
|
|
|
+ UNLOADING_POINT_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendUnitId != null">
|
|
|
|
+ SEND_UNIT_ID,
|
|
|
|
+ </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>
|
|
|
|
+ </trim>
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="resultId != null">
|
|
|
|
+ #{resultId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="outboundResultId != null">
|
|
|
|
+ #{outboundResultId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultWagonNo != null">
|
|
|
|
+ #{resultWagonNo,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultBillableTonnage != null">
|
|
|
|
+ #{resultBillableTonnage,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="loadResultId != null">
|
|
|
|
+ #{loadResultId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="materialId != null">
|
|
|
|
+ #{materialId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultRemarks != null">
|
|
|
|
+ #{resultRemarks,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="batchId != null">
|
|
|
|
+ #{batchId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultClass != null">
|
|
|
|
+ #{resultClass,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultIsclear != null">
|
|
|
|
+ #{resultIsclear,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendDate != null">
|
|
|
|
+ #{sendDate,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultLoadingDate != null">
|
|
|
|
+ #{resultLoadingDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendStationId != null">
|
|
|
|
+ #{sendStationId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="arrivalStationId != null">
|
|
|
|
+ #{arrivalStationId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultType != null">
|
|
|
|
+ #{resultType,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="trainCalculateId != null">
|
|
|
|
+ #{trainCalculateId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadingPointId != null">
|
|
|
|
+ #{unloadingPointId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendUnitId != null">
|
|
|
|
+ #{sendUnitId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUsername != null">
|
|
|
|
+ #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertTime != null">
|
|
|
|
+ #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateUsername != null">
|
|
|
|
+ #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUpdateRemark != null">
|
|
|
|
+ #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="deleted != null">
|
|
|
|
+ #{deleted,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ </insert>
|
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstrainOutboundResult">
|
|
|
|
+ update TMSTRAIN_OUTBOUND_RESULT
|
|
|
|
+ set OUTBOUND_RESULT_ID = #{outboundResultId,jdbcType=VARCHAR},
|
|
|
|
+ RESULT_WAGON_NO = #{resultWagonNo,jdbcType=VARCHAR},
|
|
|
|
+ RESULT_BILLABLE_TONNAGE = #{resultBillableTonnage,jdbcType=DECIMAL},
|
|
|
|
+ LOAD_RESULT_ID = #{loadResultId,jdbcType=DECIMAL},
|
|
|
|
+ MATERIAL_ID = #{materialId,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_REMARKS = #{resultRemarks,jdbcType=VARCHAR},
|
|
|
|
+ BATCH_ID = #{batchId,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_CLASS = #{resultClass,jdbcType=VARCHAR},
|
|
|
|
+ RESULT_ISCLEAR = #{resultIsclear,jdbcType=VARCHAR},
|
|
|
|
+ SEND_DATE = #{sendDate,jdbcType=VARCHAR},
|
|
|
|
+ RESULT_LOADING_DATE = #{resultLoadingDate,jdbcType=TIMESTAMP},
|
|
|
|
+ SEND_STATION_ID = #{sendStationId,jdbcType=DECIMAL},
|
|
|
|
+ ARRIVAL_STATION_ID = #{arrivalStationId,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_TYPE = #{resultType,jdbcType=DECIMAL},
|
|
|
|
+ TRAIN_CALCULATE_ID = #{trainCalculateId,jdbcType=DECIMAL},
|
|
|
|
+ UNLOADING_POINT_ID = #{unloadingPointId,jdbcType=DECIMAL},
|
|
|
|
+ SEND_UNIT_ID = #{sendUnitId,jdbcType=DECIMAL},
|
|
|
|
+ INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
+ INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
+ DELETED = #{deleted,jdbcType=DECIMAL}
|
|
|
|
+ where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
|
+ </update>
|
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstrainOutboundResult">
|
|
|
|
+ update TMSTRAIN_OUTBOUND_RESULT
|
|
|
|
+ <set>
|
|
|
|
+ <if test="outboundResultId != null">
|
|
|
|
+ OUTBOUND_RESULT_ID = #{outboundResultId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultWagonNo != null">
|
|
|
|
+ RESULT_WAGON_NO = #{resultWagonNo,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultBillableTonnage != null">
|
|
|
|
+ RESULT_BILLABLE_TONNAGE = #{resultBillableTonnage,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="loadResultId != null">
|
|
|
|
+ LOAD_RESULT_ID = #{loadResultId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="materialId != null">
|
|
|
|
+ MATERIAL_ID = #{materialId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultRemarks != null">
|
|
|
|
+ RESULT_REMARKS = #{resultRemarks,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="batchId != null">
|
|
|
|
+ BATCH_ID = #{batchId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultClass != null">
|
|
|
|
+ RESULT_CLASS = #{resultClass,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultIsclear != null">
|
|
|
|
+ RESULT_ISCLEAR = #{resultIsclear,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendDate != null">
|
|
|
|
+ SEND_DATE = #{sendDate,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultLoadingDate != null">
|
|
|
|
+ RESULT_LOADING_DATE = #{resultLoadingDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendStationId != null">
|
|
|
|
+ SEND_STATION_ID = #{sendStationId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="arrivalStationId != null">
|
|
|
|
+ ARRIVAL_STATION_ID = #{arrivalStationId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultType != null">
|
|
|
|
+ RESULT_TYPE = #{resultType,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="trainCalculateId != null">
|
|
|
|
+ TRAIN_CALCULATE_ID = #{trainCalculateId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="unloadingPointId != null">
|
|
|
|
+ UNLOADING_POINT_ID = #{unloadingPointId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendUnitId != null">
|
|
|
|
+ SEND_UNIT_ID = #{sendUnitId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUsername != null">
|
|
|
|
+ INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertTime != null">
|
|
|
|
+ INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateUsername != null">
|
|
|
|
+ UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="insertUpdateRemark != null">
|
|
|
|
+ INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="deleted != null">
|
|
|
|
+ DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ </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 TMSTRAIN_OUTBOUND_RESULT
|
|
|
|
+ (RESULT_ID,
|
|
|
|
+ OUTBOUND_RESULT_ID, RESULT_WAGON_NO,
|
|
|
|
+ RESULT_BILLABLE_TONNAGE, LOAD_RESULT_ID,
|
|
|
|
+ MATERIAL_ID, RESULT_REMARKS, BATCH_ID,
|
|
|
|
+ RESULT_CLASS, RESULT_ISCLEAR, SEND_DATE,
|
|
|
|
+ RESULT_LOADING_DATE, SEND_STATION_ID,
|
|
|
|
+ ARRIVAL_STATION_ID, RESULT_TYPE,
|
|
|
|
+ TRAIN_CALCULATE_ID, UNLOADING_POINT_ID,
|
|
|
|
+ SEND_UNIT_ID, INSERT_USERNAME, INSERT_TIME,
|
|
|
|
+ UPDATE_USERNAME, UPDATE_TIME,
|
|
|
|
+ INSERT_UPDATE_REMARK, DELETED)
|
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
+ select
|
|
|
|
+ #{item.resultId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.outboundResultId,jdbcType=VARCHAR}, #{item.resultWagonNo,jdbcType=VARCHAR},
|
|
|
|
+ #{item.resultBillableTonnage,jdbcType=DECIMAL}, #{item.loadResultId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.materialId,jdbcType=DECIMAL}, #{item.resultRemarks,jdbcType=VARCHAR}, #{item.batchId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.resultClass,jdbcType=VARCHAR}, #{item.resultIsclear,jdbcType=VARCHAR}, #{item.sendDate,jdbcType=VARCHAR},
|
|
|
|
+ #{item.resultLoadingDate,jdbcType=TIMESTAMP}, #{item.sendStationId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.arrivalStationId,jdbcType=DECIMAL}, #{item.resultType,jdbcType=DECIMAL},
|
|
|
|
+ #{item.trainCalculateId,jdbcType=DECIMAL}, #{item.unloadingPointId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.sendUnitId,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL} from dual
|
|
|
|
+ </foreach> )
|
|
|
|
+ </insert>
|
|
|
|
+ <update id="batchUpdate" parameterType="java.util.List">
|
|
|
|
+ update TMSTRAIN_OUTBOUND_RESULT
|
|
|
|
+ set
|
|
|
|
+ RESULT_ID=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,OUTBOUND_RESULT_ID=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.outboundResultId,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_WAGON_NO=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultWagonNo,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_BILLABLE_TONNAGE=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultBillableTonnage,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,LOAD_RESULT_ID=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.loadResultId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,MATERIAL_ID=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.materialId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_REMARKS=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultRemarks,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,BATCH_ID=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_CLASS=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultClass,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_ISCLEAR=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultIsclear,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,SEND_DATE=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.sendDate,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_LOADING_DATE=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultLoadingDate,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,SEND_STATION_ID=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.sendStationId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ARRIVAL_STATION_ID=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.arrivalStationId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_TYPE=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultType,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,TRAIN_CALCULATE_ID=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.trainCalculateId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UNLOADING_POINT_ID=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.unloadingPointId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,SEND_UNIT_ID=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.sendUnitId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_USERNAME=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_TIME=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UPDATE_USERNAME=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UPDATE_TIME=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_UPDATE_REMARK=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,DELETED=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ where RESULT_ID in
|
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
+ #{item.resultId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ </update>
|
|
|
|
+ <delete id="batchDelete" parameterType="java.util.List">
|
|
|
|
+ delete from TMSTRAIN_OUTBOUND_RESULT
|
|
|
|
+ where RESULT_ID in
|
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
+ #{id}
|
|
|
|
+ </foreach>
|
|
|
|
+ </delete>
|
|
|
|
+ <!-- 友情提示!!!-->
|
|
|
|
+ <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
+
|
|
|
|
+</mapper>
|