|
@@ -2,39 +2,36 @@
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!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">
|
|
<mapper namespace="com.steerinfo.dil.mapper.AmstruckInwardPlanMapper">
|
|
<resultMap id="BaseResultMap" type="com.steerinfo.dil.model.AmstruckInwardPlan">
|
|
<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"/>
|
|
|
|
|
|
+ <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" />
|
|
|
|
+ <result column="PLAN_EABLE_STATUS" jdbcType="DECIMAL" property="planEableStatus" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<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>
|
|
|
|
|
|
+ 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, PLAN_EABLE_STATUS
|
|
|
|
+ </sql>
|
|
<sql id="columns_alias">
|
|
<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>
|
|
|
|
|
|
+ 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, t.PLAN_EABLE_STATUS
|
|
|
|
+ </sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
- SELECT
|
|
|
|
- <include refid="columns"/>
|
|
|
|
- FROM AMSTRUCK_INWARD_PLAN
|
|
|
|
|
|
+ SELECT <include refid="columns" /> FROM AMSTRUCK_INWARD_PLAN
|
|
</sql>
|
|
</sql>
|
|
<sql id="select_alias">
|
|
<sql id="select_alias">
|
|
- SELECT
|
|
|
|
- <include refid="columns_alias"/>
|
|
|
|
- FROM AMSTRUCK_INWARD_PLAN t
|
|
|
|
|
|
+ SELECT <include refid="columns_alias" /> FROM AMSTRUCK_INWARD_PLAN t
|
|
</sql>
|
|
</sql>
|
|
<sql id="where">
|
|
<sql id="where">
|
|
<where>
|
|
<where>
|
|
@@ -77,6 +74,9 @@
|
|
<if test="planIssueName != null and planIssueName != ''">
|
|
<if test="planIssueName != null and planIssueName != ''">
|
|
and PLAN_ISSUE_NAME = #{planIssueName}
|
|
and PLAN_ISSUE_NAME = #{planIssueName}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="planEableStatus != null">
|
|
|
|
+ and PLAN_EABLE_STATUS = #{planEableStatus}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -120,13 +120,15 @@
|
|
<if test="planIssueName != null and planIssueName != ''">
|
|
<if test="planIssueName != null and planIssueName != ''">
|
|
and PLAN_ISSUE_NAME LIKE '%${planIssueName}%'
|
|
and PLAN_ISSUE_NAME LIKE '%${planIssueName}%'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="planEableStatus != null">
|
|
|
|
+ and PLAN_EABLE_STATUS = #{planEableStatus}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
|
- delete
|
|
|
|
- from AMSTRUCK_INWARD_PLAN
|
|
|
|
- where PLAN_ID = #{planId,jdbcType=DECIMAL}
|
|
|
|
- </delete>
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="DECIMAL">
|
|
|
|
+ delete from AMSTRUCK_INWARD_PLAN
|
|
|
|
+ where PLAN_ID = #{planId,jdbcType=DECIMAL}
|
|
|
|
+ </delete>
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
delete from AMSTRUCK_INWARD_PLAN
|
|
delete from AMSTRUCK_INWARD_PLAN
|
|
where 1!=1
|
|
where 1!=1
|
|
@@ -166,21 +168,22 @@
|
|
<if test="planIssueName != null and planIssueName != ''">
|
|
<if test="planIssueName != null and planIssueName != ''">
|
|
or PLAN_ISSUE_NAME = #{planIssueName}
|
|
or PLAN_ISSUE_NAME = #{planIssueName}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="planEableStatus != null">
|
|
|
|
+ or PLAN_EABLE_STATUS = #{planEableStatus}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.AmstruckInwardPlan">
|
|
<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 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, PLAN_EABLE_STATUS)
|
|
|
|
+ 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}, #{planEableStatus,jdbcType=DECIMAL})
|
|
|
|
+ </insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmstruckInwardPlan">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmstruckInwardPlan">
|
|
insert into AMSTRUCK_INWARD_PLAN
|
|
insert into AMSTRUCK_INWARD_PLAN
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -223,6 +226,9 @@
|
|
<if test="planIssueName != null">
|
|
<if test="planIssueName != null">
|
|
PLAN_ISSUE_NAME,
|
|
PLAN_ISSUE_NAME,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="planEableStatus != null">
|
|
|
|
+ PLAN_EABLE_STATUS,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="planId != null">
|
|
<if test="planId != null">
|
|
@@ -264,24 +270,28 @@
|
|
<if test="planIssueName != null">
|
|
<if test="planIssueName != null">
|
|
#{planIssueName,jdbcType=VARCHAR},
|
|
#{planIssueName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="planEableStatus != null">
|
|
|
|
+ #{planEableStatus,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmstruckInwardPlan">
|
|
<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 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},
|
|
|
|
+ PLAN_EABLE_STATUS = #{planEableStatus,jdbcType=DECIMAL}
|
|
|
|
+ where PLAN_ID = #{planId,jdbcType=DECIMAL}
|
|
|
|
+ </update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmstruckInwardPlan">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmstruckInwardPlan">
|
|
update AMSTRUCK_INWARD_PLAN
|
|
update AMSTRUCK_INWARD_PLAN
|
|
<set>
|
|
<set>
|
|
@@ -321,20 +331,23 @@
|
|
<if test="planIssueName != null">
|
|
<if test="planIssueName != null">
|
|
PLAN_ISSUE_NAME = #{planIssueName,jdbcType=VARCHAR},
|
|
PLAN_ISSUE_NAME = #{planIssueName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="planEableStatus != null">
|
|
|
|
+ PLAN_EABLE_STATUS = #{planEableStatus,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where PLAN_ID = #{planId,jdbcType=DECIMAL}
|
|
where PLAN_ID = #{planId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
|
- <include refid="select"/>
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="DECIMAL" resultMap="BaseResultMap">
|
|
|
|
+ <include refid="select" />
|
|
where PLAN_ID = #{planId,jdbcType=DECIMAL}
|
|
where PLAN_ID = #{planId,jdbcType=DECIMAL}
|
|
</select>
|
|
</select>
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
- <include refid="select"/>
|
|
|
|
- <include refid="where"/>
|
|
|
|
|
|
+ <include refid="select" />
|
|
|
|
+ <include refid="where" />
|
|
</select>
|
|
</select>
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
- <include refid="select"/>
|
|
|
|
- <include refid="whereLike"/>
|
|
|
|
|
|
+ <include refid="select" />
|
|
|
|
+ <include refid="whereLike" />
|
|
</select>
|
|
</select>
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
insert into AMSTRUCK_INWARD_PLAN
|
|
insert into AMSTRUCK_INWARD_PLAN
|
|
@@ -344,89 +357,93 @@
|
|
INSERT_USERNAME, INSERT_TIME,
|
|
INSERT_USERNAME, INSERT_TIME,
|
|
UPDATE_USERNAME, UPDATE_TIME,
|
|
UPDATE_USERNAME, UPDATE_TIME,
|
|
INSERT_UPDATE_REMARK, DELETED,
|
|
INSERT_UPDATE_REMARK, DELETED,
|
|
- PLAN_ISSUE_NAME)
|
|
|
|
|
|
+ PLAN_ISSUE_NAME, PLAN_EABLE_STATUS
|
|
|
|
+ )
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
#{item.planId,jdbcType=DECIMAL},
|
|
#{item.planId,jdbcType=DECIMAL},
|
|
- #{item.planNumber,jdbcType=VARCHAR}, #{item.carrierId,jdbcType=DECIMAL},
|
|
|
|
- #{item.planTruckNumber,jdbcType=DECIMAL},
|
|
|
|
|
|
+ #{item.planNumber,jdbcType=VARCHAR}, #{item.carrierId,jdbcType=DECIMAL}, #{item.planTruckNumber,jdbcType=DECIMAL},
|
|
#{item.planStatus,jdbcType=DECIMAL}, #{item.planIssueTime,jdbcType=TIMESTAMP},
|
|
#{item.planStatus,jdbcType=DECIMAL}, #{item.planIssueTime,jdbcType=TIMESTAMP},
|
|
#{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
#{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
#{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
#{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
#{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL},
|
|
#{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL},
|
|
- #{item.planIssueName,jdbcType=VARCHAR} from dual
|
|
|
|
|
|
+ #{item.planIssueName,jdbcType=VARCHAR}, #{item.planEableStatus,jdbcType=DECIMAL}
|
|
|
|
+ from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
update AMSTRUCK_INWARD_PLAN
|
|
update AMSTRUCK_INWARD_PLAN
|
|
set
|
|
set
|
|
PLAN_ID=
|
|
PLAN_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.planId,jdbcType=DECIMAL}
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.planId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,PLAN_NUMBER=
|
|
,PLAN_NUMBER=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.planNumber,jdbcType=VARCHAR}
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.planNumber,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,CARRIER_ID=
|
|
,CARRIER_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,PLAN_TRUCK_NUMBER=
|
|
,PLAN_TRUCK_NUMBER=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.planTruckNumber,jdbcType=DECIMAL}
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.planTruckNumber,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,PLAN_STATUS=
|
|
,PLAN_STATUS=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.planStatus,jdbcType=DECIMAL}
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.planStatus,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,PLAN_ISSUE_TIME=
|
|
,PLAN_ISSUE_TIME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.planIssueTime,jdbcType=TIMESTAMP}
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.planIssueTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_USERNAME=
|
|
,INSERT_USERNAME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_TIME=
|
|
,INSERT_TIME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATE_USERNAME=
|
|
,UPDATE_USERNAME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATE_TIME=
|
|
,UPDATE_TIME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_UPDATE_REMARK=
|
|
,INSERT_UPDATE_REMARK=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,DELETED=
|
|
,DELETED=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,PLAN_ISSUE_NAME=
|
|
,PLAN_ISSUE_NAME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PLAN_ID" close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.planIssueName,jdbcType=VARCHAR}
|
|
when #{item.planId,jdbcType=DECIMAL} then #{item.planIssueName,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,PLAN_EABLE_STATUS=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case PLAN_ID" separator=" ">
|
|
|
|
+ when #{item.planId,jdbcType=DECIMAL} then #{item.planEableStatus,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
where PLAN_ID in
|
|
where PLAN_ID in
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
#{item.planId,jdbcType=DECIMAL}
|
|
#{item.planId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
delete from AMSTRUCK_INWARD_PLAN
|
|
delete from AMSTRUCK_INWARD_PLAN
|
|
where PLAN_ID in
|
|
where PLAN_ID in
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
<!-- 友情提示!!!-->
|
|
<!-- 友情提示!!!-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
- <!-- 展示运输计划 -->
|
|
|
|
<select id="getTruckPlanList" resultType="java.util.Map" parameterType="java.util.Map">
|
|
<select id="getTruckPlanList" resultType="java.util.Map" parameterType="java.util.Map">
|
|
SELECT *
|
|
SELECT *
|
|
FROM (SELECT APO.PURCHASE_ORDER_NO AS "purchaseOrderNo",
|
|
FROM (SELECT APO.PURCHASE_ORDER_NO AS "purchaseOrderNo",
|