|
@@ -0,0 +1,631 @@
|
|
|
|
+<?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.TmstrainPleaseApproveResultMapper">
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.TmstrainPleaseApproveResult">
|
|
|
|
+ <id column="RESULT_ID" jdbcType="DECIMAL" property="resultId" />
|
|
|
|
+ <result column="RAIL_PLAN_ID" jdbcType="DECIMAL" property="railPlanId" />
|
|
|
|
+ <result column="RESULT_PLEASE_PLAN_NO" jdbcType="VARCHAR" property="resultPleasePlanNo" />
|
|
|
|
+ <result column="RESULT_PLAN_DATE" jdbcType="TIMESTAMP" property="resultPlanDate" />
|
|
|
|
+ <result column="RESULT_CATEGORY" jdbcType="VARCHAR" property="resultCategory" />
|
|
|
|
+ <result column="SUPPLIER_ID" jdbcType="DECIMAL" property="supplierId" />
|
|
|
|
+ <result column="SEND_STATION_ID" jdbcType="DECIMAL" property="sendStationId" />
|
|
|
|
+ <result column="TO_THE_STATION_ID" jdbcType="DECIMAL" property="toTheStationId" />
|
|
|
|
+ <result column="RESULT_PLEASE_NUMBER" jdbcType="DECIMAL" property="resultPleaseNumber" />
|
|
|
|
+ <result column="RESULT_PLEASE_DATE" jdbcType="TIMESTAMP" property="resultPleaseDate" />
|
|
|
|
+ <result column="RESULT_APPROVE_NUMBER" jdbcType="DECIMAL" property="resultApproveNumber" />
|
|
|
|
+ <result column="RESULT_APPROVE_DATE" jdbcType="TIMESTAMP" property="resultApproveDate" />
|
|
|
|
+ <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="STATUS" jdbcType="DECIMAL" property="status" />
|
|
|
|
+ <result column="RESULT_TYPE" jdbcType="DECIMAL" property="resultType" />
|
|
|
|
+ <result column="CARRIER_ID" jdbcType="DECIMAL" property="carrierId" />
|
|
|
|
+ <result column="SPECIAL_LINE_ID" jdbcType="DECIMAL" property="specialLineId" />
|
|
|
|
+ </resultMap>
|
|
|
|
+ <sql id="columns">
|
|
|
|
+ RESULT_ID, RAIL_PLAN_ID, RESULT_PLEASE_PLAN_NO, RESULT_PLAN_DATE, RESULT_CATEGORY,
|
|
|
|
+ SUPPLIER_ID, SEND_STATION_ID, TO_THE_STATION_ID, RESULT_PLEASE_NUMBER, RESULT_PLEASE_DATE,
|
|
|
|
+ RESULT_APPROVE_NUMBER, RESULT_APPROVE_DATE, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
|
|
+ UPDATE_TIME, INSERT_UPDATE_REMARK, STATUS, RESULT_TYPE, CARRIER_ID, SPECIAL_LINE_ID
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="columns_alias">
|
|
|
|
+ t.RESULT_ID, t.RAIL_PLAN_ID, t.RESULT_PLEASE_PLAN_NO, t.RESULT_PLAN_DATE, t.RESULT_CATEGORY,
|
|
|
|
+ t.SUPPLIER_ID, t.SEND_STATION_ID, t.TO_THE_STATION_ID, t.RESULT_PLEASE_NUMBER, t.RESULT_PLEASE_DATE,
|
|
|
|
+ t.RESULT_APPROVE_NUMBER, t.RESULT_APPROVE_DATE, t.INSERT_USERNAME, t.INSERT_TIME,
|
|
|
|
+ t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.STATUS, t.RESULT_TYPE,
|
|
|
|
+ t.CARRIER_ID, t.SPECIAL_LINE_ID
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="select">
|
|
|
|
+ SELECT <include refid="columns" /> FROM TMSTRAIN_PLEASE_APPROVE_RESULT
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="select_alias">
|
|
|
|
+ SELECT <include refid="columns_alias" /> FROM TMSTRAIN_PLEASE_APPROVE_RESULT t
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="where">
|
|
|
|
+ <where>
|
|
|
|
+ <if test="resultId != null">
|
|
|
|
+ and RESULT_ID = #{resultId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="railPlanId != null">
|
|
|
|
+ and RAIL_PLAN_ID = #{railPlanId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleasePlanNo != null and resultPleasePlanNo != ''">
|
|
|
|
+ and RESULT_PLEASE_PLAN_NO = #{resultPleasePlanNo}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPlanDate != null">
|
|
|
|
+ and TO_CHAR(RESULT_PLAN_DATE,'yyyy-MM-dd') = #{resultPlanDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultCategory != null and resultCategory != ''">
|
|
|
|
+ and RESULT_CATEGORY = #{resultCategory}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="supplierId != null">
|
|
|
|
+ and SUPPLIER_ID = #{supplierId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendStationId != null">
|
|
|
|
+ and SEND_STATION_ID = #{sendStationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="toTheStationId != null">
|
|
|
|
+ and TO_THE_STATION_ID = #{toTheStationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleaseNumber != null">
|
|
|
|
+ and RESULT_PLEASE_NUMBER = #{resultPleaseNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleaseDate != null">
|
|
|
|
+ and TO_CHAR(RESULT_PLEASE_DATE,'yyyy-MM-dd') = #{resultPleaseDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultApproveNumber != null">
|
|
|
|
+ and RESULT_APPROVE_NUMBER = #{resultApproveNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultApproveDate != null">
|
|
|
|
+ and TO_CHAR(RESULT_APPROVE_DATE,'yyyy-MM-dd') = #{resultApproveDate}
|
|
|
|
+ </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="status != null">
|
|
|
|
+ and STATUS = #{status}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultType != null">
|
|
|
|
+ and RESULT_TYPE = #{resultType}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ and CARRIER_ID = #{carrierId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="specialLineId != null">
|
|
|
|
+ and SPECIAL_LINE_ID = #{specialLineId}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ </sql>
|
|
|
|
+ <sql id="whereLike">
|
|
|
|
+ <where>
|
|
|
|
+ <if test="resultId != null">
|
|
|
|
+ and RESULT_ID = #{resultId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="railPlanId != null">
|
|
|
|
+ and RAIL_PLAN_ID = #{railPlanId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleasePlanNo != null and resultPleasePlanNo != ''">
|
|
|
|
+ and RESULT_PLEASE_PLAN_NO LIKE '%${resultPleasePlanNo}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPlanDate != null">
|
|
|
|
+ and TO_CHAR(RESULT_PLAN_DATE,'yyyy-MM-dd') = #{resultPlanDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultCategory != null and resultCategory != ''">
|
|
|
|
+ and RESULT_CATEGORY LIKE '%${resultCategory}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="supplierId != null">
|
|
|
|
+ and SUPPLIER_ID = #{supplierId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendStationId != null">
|
|
|
|
+ and SEND_STATION_ID = #{sendStationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="toTheStationId != null">
|
|
|
|
+ and TO_THE_STATION_ID = #{toTheStationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleaseNumber != null">
|
|
|
|
+ and RESULT_PLEASE_NUMBER = #{resultPleaseNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleaseDate != null">
|
|
|
|
+ and TO_CHAR(RESULT_PLEASE_DATE,'yyyy-MM-dd') = #{resultPleaseDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultApproveNumber != null">
|
|
|
|
+ and RESULT_APPROVE_NUMBER = #{resultApproveNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultApproveDate != null">
|
|
|
|
+ and TO_CHAR(RESULT_APPROVE_DATE,'yyyy-MM-dd') = #{resultApproveDate}
|
|
|
|
+ </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="status != null">
|
|
|
|
+ and STATUS = #{status}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultType != null">
|
|
|
|
+ and RESULT_TYPE = #{resultType}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ and CARRIER_ID = #{carrierId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="specialLineId != null">
|
|
|
|
+ and SPECIAL_LINE_ID = #{specialLineId}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ </sql>
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
|
|
+ delete from TMSTRAIN_PLEASE_APPROVE_RESULT
|
|
|
|
+ where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
|
+ </delete>
|
|
|
|
+ <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
|
+ delete from TMSTRAIN_PLEASE_APPROVE_RESULT
|
|
|
|
+ where 1!=1
|
|
|
|
+ <if test="railPlanId != null">
|
|
|
|
+ or RAIL_PLAN_ID = #{railPlanId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleasePlanNo != null and resultPleasePlanNo != ''">
|
|
|
|
+ or RESULT_PLEASE_PLAN_NO = #{resultPleasePlanNo}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPlanDate != null">
|
|
|
|
+ or TO_CHAR(RESULT_PLAN_DATE,'yyyy-MM-dd') = '#{resultPlanDate}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultCategory != null and resultCategory != ''">
|
|
|
|
+ or RESULT_CATEGORY = #{resultCategory}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="supplierId != null">
|
|
|
|
+ or SUPPLIER_ID = #{supplierId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendStationId != null">
|
|
|
|
+ or SEND_STATION_ID = #{sendStationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="toTheStationId != null">
|
|
|
|
+ or TO_THE_STATION_ID = #{toTheStationId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleaseNumber != null">
|
|
|
|
+ or RESULT_PLEASE_NUMBER = #{resultPleaseNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleaseDate != null">
|
|
|
|
+ or TO_CHAR(RESULT_PLEASE_DATE,'yyyy-MM-dd') = '#{resultPleaseDate}'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultApproveNumber != null">
|
|
|
|
+ or RESULT_APPROVE_NUMBER = #{resultApproveNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultApproveDate != null">
|
|
|
|
+ or TO_CHAR(RESULT_APPROVE_DATE,'yyyy-MM-dd') = '#{resultApproveDate}'
|
|
|
|
+ </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="status != null">
|
|
|
|
+ or STATUS = #{status}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultType != null">
|
|
|
|
+ or RESULT_TYPE = #{resultType}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ or CARRIER_ID = #{carrierId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="specialLineId != null">
|
|
|
|
+ or SPECIAL_LINE_ID = #{specialLineId}
|
|
|
|
+ </if>
|
|
|
|
+ </delete>
|
|
|
|
+ <insert id="insert" parameterType="com.steerinfo.dil.model.TmstrainPleaseApproveResult">
|
|
|
|
+ insert into TMSTRAIN_PLEASE_APPROVE_RESULT (RESULT_ID, RAIL_PLAN_ID, RESULT_PLEASE_PLAN_NO,
|
|
|
|
+ RESULT_PLAN_DATE, RESULT_CATEGORY, SUPPLIER_ID,
|
|
|
|
+ SEND_STATION_ID, TO_THE_STATION_ID, RESULT_PLEASE_NUMBER,
|
|
|
|
+ RESULT_PLEASE_DATE, RESULT_APPROVE_NUMBER,
|
|
|
|
+ RESULT_APPROVE_DATE, INSERT_USERNAME, INSERT_TIME,
|
|
|
|
+ UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
|
+ STATUS, RESULT_TYPE, CARRIER_ID,
|
|
|
|
+ SPECIAL_LINE_ID)
|
|
|
|
+ values (#{resultId,jdbcType=DECIMAL}, #{railPlanId,jdbcType=DECIMAL}, #{resultPleasePlanNo,jdbcType=VARCHAR},
|
|
|
|
+ #{resultPlanDate,jdbcType=TIMESTAMP}, #{resultCategory,jdbcType=VARCHAR}, #{supplierId,jdbcType=DECIMAL},
|
|
|
|
+ #{sendStationId,jdbcType=DECIMAL}, #{toTheStationId,jdbcType=DECIMAL}, #{resultPleaseNumber,jdbcType=DECIMAL},
|
|
|
|
+ #{resultPleaseDate,jdbcType=TIMESTAMP}, #{resultApproveNumber,jdbcType=DECIMAL},
|
|
|
|
+ #{resultApproveDate,jdbcType=TIMESTAMP}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
+ #{status,jdbcType=DECIMAL}, #{resultType,jdbcType=DECIMAL}, #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ #{specialLineId,jdbcType=DECIMAL})
|
|
|
|
+ </insert>
|
|
|
|
+ <insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmstrainPleaseApproveResult">
|
|
|
|
+ insert into TMSTRAIN_PLEASE_APPROVE_RESULT
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="resultId != null">
|
|
|
|
+ RESULT_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="railPlanId != null">
|
|
|
|
+ RAIL_PLAN_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleasePlanNo != null">
|
|
|
|
+ RESULT_PLEASE_PLAN_NO,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPlanDate != null">
|
|
|
|
+ RESULT_PLAN_DATE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultCategory != null">
|
|
|
|
+ RESULT_CATEGORY,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="supplierId != null">
|
|
|
|
+ SUPPLIER_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendStationId != null">
|
|
|
|
+ SEND_STATION_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="toTheStationId != null">
|
|
|
|
+ TO_THE_STATION_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleaseNumber != null">
|
|
|
|
+ RESULT_PLEASE_NUMBER,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleaseDate != null">
|
|
|
|
+ RESULT_PLEASE_DATE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultApproveNumber != null">
|
|
|
|
+ RESULT_APPROVE_NUMBER,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultApproveDate != null">
|
|
|
|
+ RESULT_APPROVE_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="status != null">
|
|
|
|
+ STATUS,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultType != null">
|
|
|
|
+ RESULT_TYPE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ CARRIER_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="specialLineId != null">
|
|
|
|
+ SPECIAL_LINE_ID,
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="resultId != null">
|
|
|
|
+ #{resultId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="railPlanId != null">
|
|
|
|
+ #{railPlanId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleasePlanNo != null">
|
|
|
|
+ #{resultPleasePlanNo,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPlanDate != null">
|
|
|
|
+ #{resultPlanDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultCategory != null">
|
|
|
|
+ #{resultCategory,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="supplierId != null">
|
|
|
|
+ #{supplierId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendStationId != null">
|
|
|
|
+ #{sendStationId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="toTheStationId != null">
|
|
|
|
+ #{toTheStationId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleaseNumber != null">
|
|
|
|
+ #{resultPleaseNumber,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleaseDate != null">
|
|
|
|
+ #{resultPleaseDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultApproveNumber != null">
|
|
|
|
+ #{resultApproveNumber,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultApproveDate != null">
|
|
|
|
+ #{resultApproveDate,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="status != null">
|
|
|
|
+ #{status,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultType != null">
|
|
|
|
+ #{resultType,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="specialLineId != null">
|
|
|
|
+ #{specialLineId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ </insert>
|
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmstrainPleaseApproveResult">
|
|
|
|
+ update TMSTRAIN_PLEASE_APPROVE_RESULT
|
|
|
|
+ set RAIL_PLAN_ID = #{railPlanId,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_PLEASE_PLAN_NO = #{resultPleasePlanNo,jdbcType=VARCHAR},
|
|
|
|
+ RESULT_PLAN_DATE = #{resultPlanDate,jdbcType=TIMESTAMP},
|
|
|
|
+ RESULT_CATEGORY = #{resultCategory,jdbcType=VARCHAR},
|
|
|
|
+ SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL},
|
|
|
|
+ SEND_STATION_ID = #{sendStationId,jdbcType=DECIMAL},
|
|
|
|
+ TO_THE_STATION_ID = #{toTheStationId,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_PLEASE_NUMBER = #{resultPleaseNumber,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_PLEASE_DATE = #{resultPleaseDate,jdbcType=TIMESTAMP},
|
|
|
|
+ RESULT_APPROVE_NUMBER = #{resultApproveNumber,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_APPROVE_DATE = #{resultApproveDate,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},
|
|
|
|
+ STATUS = #{status,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_TYPE = #{resultType,jdbcType=DECIMAL},
|
|
|
|
+ CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ SPECIAL_LINE_ID = #{specialLineId,jdbcType=DECIMAL}
|
|
|
|
+ where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
|
+ </update>
|
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmstrainPleaseApproveResult">
|
|
|
|
+ update TMSTRAIN_PLEASE_APPROVE_RESULT
|
|
|
|
+ <set>
|
|
|
|
+ <if test="railPlanId != null">
|
|
|
|
+ RAIL_PLAN_ID = #{railPlanId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleasePlanNo != null">
|
|
|
|
+ RESULT_PLEASE_PLAN_NO = #{resultPleasePlanNo,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPlanDate != null">
|
|
|
|
+ RESULT_PLAN_DATE = #{resultPlanDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultCategory != null">
|
|
|
|
+ RESULT_CATEGORY = #{resultCategory,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="supplierId != null">
|
|
|
|
+ SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sendStationId != null">
|
|
|
|
+ SEND_STATION_ID = #{sendStationId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="toTheStationId != null">
|
|
|
|
+ TO_THE_STATION_ID = #{toTheStationId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleaseNumber != null">
|
|
|
|
+ RESULT_PLEASE_NUMBER = #{resultPleaseNumber,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultPleaseDate != null">
|
|
|
|
+ RESULT_PLEASE_DATE = #{resultPleaseDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultApproveNumber != null">
|
|
|
|
+ RESULT_APPROVE_NUMBER = #{resultApproveNumber,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultApproveDate != null">
|
|
|
|
+ RESULT_APPROVE_DATE = #{resultApproveDate,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="status != null">
|
|
|
|
+ STATUS = #{status,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultType != null">
|
|
|
|
+ RESULT_TYPE = #{resultType,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="carrierId != null">
|
|
|
|
+ CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="specialLineId != null">
|
|
|
|
+ SPECIAL_LINE_ID = #{specialLineId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ </set>
|
|
|
|
+ where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
|
+ </update>
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Short" 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_PLEASE_APPROVE_RESULT
|
|
|
|
+ (RESULT_ID,
|
|
|
|
+ RAIL_PLAN_ID, RESULT_PLEASE_PLAN_NO,
|
|
|
|
+ RESULT_PLAN_DATE, RESULT_CATEGORY,
|
|
|
|
+ SUPPLIER_ID, SEND_STATION_ID, TO_THE_STATION_ID,
|
|
|
|
+ RESULT_PLEASE_NUMBER, RESULT_PLEASE_DATE,
|
|
|
|
+ RESULT_APPROVE_NUMBER, RESULT_APPROVE_DATE,
|
|
|
|
+ INSERT_USERNAME, INSERT_TIME,
|
|
|
|
+ UPDATE_USERNAME, UPDATE_TIME,
|
|
|
|
+ INSERT_UPDATE_REMARK, STATUS, RESULT_TYPE,
|
|
|
|
+ CARRIER_ID, SPECIAL_LINE_ID)
|
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
+ select
|
|
|
|
+ #{item.resultId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.railPlanId,jdbcType=DECIMAL}, #{item.resultPleasePlanNo,jdbcType=VARCHAR},
|
|
|
|
+ #{item.resultPlanDate,jdbcType=TIMESTAMP}, #{item.resultCategory,jdbcType=VARCHAR},
|
|
|
|
+ #{item.supplierId,jdbcType=DECIMAL}, #{item.sendStationId,jdbcType=DECIMAL}, #{item.toTheStationId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.resultPleaseNumber,jdbcType=DECIMAL}, #{item.resultPleaseDate,jdbcType=TIMESTAMP},
|
|
|
|
+ #{item.resultApproveNumber,jdbcType=DECIMAL}, #{item.resultApproveDate,jdbcType=TIMESTAMP},
|
|
|
|
+ #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.status,jdbcType=DECIMAL}, #{item.resultType,jdbcType=DECIMAL},
|
|
|
|
+ #{item.carrierId,jdbcType=DECIMAL}, #{item.specialLineId,jdbcType=DECIMAL} from dual
|
|
|
|
+ </foreach> )
|
|
|
|
+ </insert>
|
|
|
|
+ <update id="batchUpdate" parameterType="java.util.List">
|
|
|
|
+ update TMSTRAIN_PLEASE_APPROVE_RESULT
|
|
|
|
+ set
|
|
|
|
+ RESULT_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RAIL_PLAN_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.railPlanId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_PLEASE_PLAN_NO=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultPleasePlanNo,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_PLAN_DATE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultPlanDate,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_CATEGORY=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultCategory,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,SUPPLIER_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.supplierId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,SEND_STATION_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.sendStationId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,TO_THE_STATION_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.toTheStationId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_PLEASE_NUMBER=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultPleaseNumber,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_PLEASE_DATE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultPleaseDate,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_APPROVE_NUMBER=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultApproveNumber,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_APPROVE_DATE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultApproveDate,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_USERNAME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UPDATE_USERNAME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UPDATE_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_UPDATE_REMARK=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,STATUS=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.status,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_TYPE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultType,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,CARRIER_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,SPECIAL_LINE_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.specialLineId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ where RESULT_ID in
|
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
|
+ #{item.resultId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ </update>
|
|
|
|
+ <delete id="batchDelete" parameterType="java.util.List">
|
|
|
|
+ delete from TMSTRAIN_PLEASE_APPROVE_RESULT
|
|
|
|
+ where RESULT_ID in
|
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
|
+ #{id}
|
|
|
|
+ </foreach>
|
|
|
|
+ </delete>
|
|
|
|
+ <!-- 友情提示!!!-->
|
|
|
|
+ <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+</mapper>
|