|
@@ -0,0 +1,430 @@
|
|
|
+<?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.AmstruckInwardPlanMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.AmstruckInwardPlan">
|
|
|
+ <id column="PLAN_ID" jdbcType="DECIMAL" property="planId"/>
|
|
|
+ <result column="PLAN_NUMBER" jdbcType="VARCHAR" property="planNumber"/>
|
|
|
+ <result column="CARRIER_ID" jdbcType="DECIMAL" property="carrierId"/>
|
|
|
+ <result column="PLAN_TRUCK_NUMBER" jdbcType="DECIMAL" property="planTruckNumber"/>
|
|
|
+ <result column="PLAN_STATUS" jdbcType="DECIMAL" property="planStatus"/>
|
|
|
+ <result column="PLAN_ISSUE_TIME" jdbcType="TIMESTAMP" property="planIssueTime"/>
|
|
|
+ <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername"/>
|
|
|
+ <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime"/>
|
|
|
+ <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername"/>
|
|
|
+ <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
+ <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark"/>
|
|
|
+ <result column="DELETED" jdbcType="DECIMAL" property="deleted"/>
|
|
|
+ <result column="PLAN_ISSUE_NAME" jdbcType="VARCHAR" property="planIssueName"/>
|
|
|
+ </resultMap>
|
|
|
+ <sql id="columns">
|
|
|
+ PLAN_ID, PLAN_NUMBER, CARRIER_ID, PLAN_TRUCK_NUMBER, PLAN_STATUS, PLAN_ISSUE_TIME,
|
|
|
+ INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
+ DELETED, PLAN_ISSUE_NAME
|
|
|
+ </sql>
|
|
|
+ <sql id="columns_alias">
|
|
|
+ t.PLAN_ID, t.PLAN_NUMBER, t.CARRIER_ID, t.PLAN_TRUCK_NUMBER, t.PLAN_STATUS, t.PLAN_ISSUE_TIME,
|
|
|
+ t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK,
|
|
|
+ t.DELETED, t.PLAN_ISSUE_NAME
|
|
|
+ </sql>
|
|
|
+ <sql id="select">
|
|
|
+ SELECT
|
|
|
+ <include refid="columns"/>
|
|
|
+ FROM AMSTRUCK_INWARD_PLAN
|
|
|
+ </sql>
|
|
|
+ <sql id="select_alias">
|
|
|
+ SELECT
|
|
|
+ <include refid="columns_alias"/>
|
|
|
+ FROM AMSTRUCK_INWARD_PLAN t
|
|
|
+ </sql>
|
|
|
+ <sql id="where">
|
|
|
+ <where>
|
|
|
+ <if test="planId != null">
|
|
|
+ and PLAN_ID = #{planId}
|
|
|
+ </if>
|
|
|
+ <if test="planNumber != null and planNumber != ''">
|
|
|
+ and PLAN_NUMBER = #{planNumber}
|
|
|
+ </if>
|
|
|
+ <if test="carrierId != null">
|
|
|
+ and CARRIER_ID = #{carrierId}
|
|
|
+ </if>
|
|
|
+ <if test="planTruckNumber != null">
|
|
|
+ and PLAN_TRUCK_NUMBER = #{planTruckNumber}
|
|
|
+ </if>
|
|
|
+ <if test="planStatus != null">
|
|
|
+ and PLAN_STATUS = #{planStatus}
|
|
|
+ </if>
|
|
|
+ <if test="planIssueTime != null">
|
|
|
+ and TO_CHAR(PLAN_ISSUE_TIME,'yyyy-MM-dd') = #{planIssueTime}
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null and insertUsername != ''">
|
|
|
+ and INSERT_USERNAME = #{insertUsername}
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
|
+ </if>
|
|
|
+ <if test="updateUsername != null and updateUsername != ''">
|
|
|
+ and UPDATE_USERNAME = #{updateUsername}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
|
+ and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
|
|
|
+ </if>
|
|
|
+ <if test="deleted != null">
|
|
|
+ and DELETED = #{deleted}
|
|
|
+ </if>
|
|
|
+ <if test="planIssueName != null and planIssueName != ''">
|
|
|
+ and PLAN_ISSUE_NAME = #{planIssueName}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="whereLike">
|
|
|
+ <where>
|
|
|
+ <if test="planId != null">
|
|
|
+ and PLAN_ID = #{planId}
|
|
|
+ </if>
|
|
|
+ <if test="planNumber != null and planNumber != ''">
|
|
|
+ and PLAN_NUMBER LIKE '%${planNumber}%'
|
|
|
+ </if>
|
|
|
+ <if test="carrierId != null">
|
|
|
+ and CARRIER_ID = #{carrierId}
|
|
|
+ </if>
|
|
|
+ <if test="planTruckNumber != null">
|
|
|
+ and PLAN_TRUCK_NUMBER = #{planTruckNumber}
|
|
|
+ </if>
|
|
|
+ <if test="planStatus != null">
|
|
|
+ and PLAN_STATUS = #{planStatus}
|
|
|
+ </if>
|
|
|
+ <if test="planIssueTime != null">
|
|
|
+ and TO_CHAR(PLAN_ISSUE_TIME,'yyyy-MM-dd') = #{planIssueTime}
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null and insertUsername != ''">
|
|
|
+ and INSERT_USERNAME LIKE '%${insertUsername}%'
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
|
|
|
+ </if>
|
|
|
+ <if test="updateUsername != null and updateUsername != ''">
|
|
|
+ and UPDATE_USERNAME LIKE '%${updateUsername}%'
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
|
+ and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
|
|
|
+ </if>
|
|
|
+ <if test="deleted != null">
|
|
|
+ and DELETED = #{deleted}
|
|
|
+ </if>
|
|
|
+ <if test="planIssueName != null and planIssueName != ''">
|
|
|
+ and PLAN_ISSUE_NAME LIKE '%${planIssueName}%'
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
+ delete
|
|
|
+ from AMSTRUCK_INWARD_PLAN
|
|
|
+ where PLAN_ID = #{planId,jdbcType=DECIMAL}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
+ delete from AMSTRUCK_INWARD_PLAN
|
|
|
+ where 1!=1
|
|
|
+ <if test="planNumber != null and planNumber != ''">
|
|
|
+ or PLAN_NUMBER = #{planNumber}
|
|
|
+ </if>
|
|
|
+ <if test="carrierId != null">
|
|
|
+ or CARRIER_ID = #{carrierId}
|
|
|
+ </if>
|
|
|
+ <if test="planTruckNumber != null">
|
|
|
+ or PLAN_TRUCK_NUMBER = #{planTruckNumber}
|
|
|
+ </if>
|
|
|
+ <if test="planStatus != null">
|
|
|
+ or PLAN_STATUS = #{planStatus}
|
|
|
+ </if>
|
|
|
+ <if test="planIssueTime != null">
|
|
|
+ or TO_CHAR(PLAN_ISSUE_TIME,'yyyy-MM-dd') = '#{planIssueTime}'
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null and insertUsername != ''">
|
|
|
+ or INSERT_USERNAME = #{insertUsername}
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
|
|
|
+ </if>
|
|
|
+ <if test="updateUsername != null and updateUsername != ''">
|
|
|
+ or UPDATE_USERNAME = #{updateUsername}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
|
|
|
+ </if>
|
|
|
+ <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
|
+ or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
|
|
|
+ </if>
|
|
|
+ <if test="deleted != null">
|
|
|
+ or DELETED = #{deleted}
|
|
|
+ </if>
|
|
|
+ <if test="planIssueName != null and planIssueName != ''">
|
|
|
+ or PLAN_ISSUE_NAME = #{planIssueName}
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.steerinfo.dil.model.AmstruckInwardPlan">
|
|
|
+ insert into AMSTRUCK_INWARD_PLAN (PLAN_ID, PLAN_NUMBER, CARRIER_ID,
|
|
|
+ PLAN_TRUCK_NUMBER, PLAN_STATUS, PLAN_ISSUE_TIME,
|
|
|
+ INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
|
+ UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED,
|
|
|
+ PLAN_ISSUE_NAME)
|
|
|
+ values (#{planId,jdbcType=DECIMAL}, #{planNumber,jdbcType=VARCHAR}, #{carrierId,jdbcType=DECIMAL},
|
|
|
+ #{planTruckNumber,jdbcType=DECIMAL}, #{planStatus,jdbcType=DECIMAL},
|
|
|
+ #{planIssueTime,jdbcType=TIMESTAMP},
|
|
|
+ #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateUsername,jdbcType=VARCHAR},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL},
|
|
|
+ #{planIssueName,jdbcType=VARCHAR})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmstruckInwardPlan">
|
|
|
+ insert into AMSTRUCK_INWARD_PLAN
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="planId != null">
|
|
|
+ PLAN_ID,
|
|
|
+ </if>
|
|
|
+ <if test="planNumber != null">
|
|
|
+ PLAN_NUMBER,
|
|
|
+ </if>
|
|
|
+ <if test="carrierId != null">
|
|
|
+ CARRIER_ID,
|
|
|
+ </if>
|
|
|
+ <if test="planTruckNumber != null">
|
|
|
+ PLAN_TRUCK_NUMBER,
|
|
|
+ </if>
|
|
|
+ <if test="planStatus != null">
|
|
|
+ PLAN_STATUS,
|
|
|
+ </if>
|
|
|
+ <if test="planIssueTime != null">
|
|
|
+ PLAN_ISSUE_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null">
|
|
|
+ INSERT_USERNAME,
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ INSERT_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="updateUsername != null">
|
|
|
+ UPDATE_USERNAME,
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ UPDATE_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="insertUpdateRemark != null">
|
|
|
+ INSERT_UPDATE_REMARK,
|
|
|
+ </if>
|
|
|
+ <if test="deleted != null">
|
|
|
+ DELETED,
|
|
|
+ </if>
|
|
|
+ <if test="planIssueName != null">
|
|
|
+ PLAN_ISSUE_NAME,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="planId != null">
|
|
|
+ #{planId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="planNumber != null">
|
|
|
+ #{planNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="carrierId != null">
|
|
|
+ #{carrierId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="planTruckNumber != null">
|
|
|
+ #{planTruckNumber,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="planStatus != null">
|
|
|
+ #{planStatus,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="planIssueTime != null">
|
|
|
+ #{planIssueTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null">
|
|
|
+ #{insertUsername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ #{insertTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateUsername != null">
|
|
|
+ #{updateUsername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="insertUpdateRemark != null">
|
|
|
+ #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deleted != null">
|
|
|
+ #{deleted,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="planIssueName != null">
|
|
|
+ #{planIssueName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmstruckInwardPlan">
|
|
|
+ update AMSTRUCK_INWARD_PLAN
|
|
|
+ set PLAN_NUMBER = #{planNumber,jdbcType=VARCHAR},
|
|
|
+ CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
|
|
|
+ PLAN_TRUCK_NUMBER = #{planTruckNumber,jdbcType=DECIMAL},
|
|
|
+ PLAN_STATUS = #{planStatus,jdbcType=DECIMAL},
|
|
|
+ PLAN_ISSUE_TIME = #{planIssueTime,jdbcType=TIMESTAMP},
|
|
|
+ INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
+ INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
+ UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
+ DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
+ PLAN_ISSUE_NAME = #{planIssueName,jdbcType=VARCHAR}
|
|
|
+ where PLAN_ID = #{planId,jdbcType=DECIMAL}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmstruckInwardPlan">
|
|
|
+ update AMSTRUCK_INWARD_PLAN
|
|
|
+ <set>
|
|
|
+ <if test="planNumber != null">
|
|
|
+ PLAN_NUMBER = #{planNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="carrierId != null">
|
|
|
+ CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="planTruckNumber != null">
|
|
|
+ PLAN_TRUCK_NUMBER = #{planTruckNumber,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="planStatus != null">
|
|
|
+ PLAN_STATUS = #{planStatus,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="planIssueTime != null">
|
|
|
+ PLAN_ISSUE_TIME = #{planIssueTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="insertUsername != null">
|
|
|
+ INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="insertTime != null">
|
|
|
+ INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateUsername != null">
|
|
|
+ UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="insertUpdateRemark != null">
|
|
|
+ INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deleted != null">
|
|
|
+ DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="planIssueName != null">
|
|
|
+ PLAN_ISSUE_NAME = #{planIssueName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where PLAN_ID = #{planId,jdbcType=DECIMAL}
|
|
|
+ </update>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
+ <include refid="select"/>
|
|
|
+ where PLAN_ID = #{planId,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 AMSTRUCK_INWARD_PLAN
|
|
|
+ (PLAN_ID,
|
|
|
+ PLAN_NUMBER, CARRIER_ID, PLAN_TRUCK_NUMBER,
|
|
|
+ PLAN_STATUS, PLAN_ISSUE_TIME,
|
|
|
+ INSERT_USERNAME, INSERT_TIME,
|
|
|
+ UPDATE_USERNAME, UPDATE_TIME,
|
|
|
+ INSERT_UPDATE_REMARK, DELETED,
|
|
|
+ PLAN_ISSUE_NAME)
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
+ select
|
|
|
+ #{item.planId,jdbcType=DECIMAL},
|
|
|
+ #{item.planNumber,jdbcType=VARCHAR}, #{item.carrierId,jdbcType=DECIMAL},
|
|
|
+ #{item.planTruckNumber,jdbcType=DECIMAL},
|
|
|
+ #{item.planStatus,jdbcType=DECIMAL}, #{item.planIssueTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL},
|
|
|
+ #{item.planIssueName,jdbcType=VARCHAR} from dual
|
|
|
+ </foreach> )
|
|
|
+ </insert>
|
|
|
+ <update id="batchUpdate" parameterType="java.util.List">
|
|
|
+ update AMSTRUCK_INWARD_PLAN
|
|
|
+ set
|
|
|
+ PLAN_ID=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.planId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,PLAN_NUMBER=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.planNumber,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CARRIER_ID=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,PLAN_TRUCK_NUMBER=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.planTruckNumber,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,PLAN_STATUS=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.planStatus,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,PLAN_ISSUE_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.planIssueTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_USERNAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_USERNAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,UPDATE_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,INSERT_UPDATE_REMARK=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,DELETED=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,PLAN_ISSUE_NAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.planIssueName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ where PLAN_ID in
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
+ #{item.planId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+ <delete id="batchDelete" parameterType="java.util.List">
|
|
|
+ delete from AMSTRUCK_INWARD_PLAN
|
|
|
+ where PLAN_ID in
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</mapper>
|