|
@@ -7,30 +7,32 @@
|
|
<result column="PLATFORM_ID" jdbcType="DECIMAL" property="platformId" />
|
|
<result column="PLATFORM_ID" jdbcType="DECIMAL" property="platformId" />
|
|
<result column="STACKING_ID" jdbcType="DECIMAL" property="stackingId" />
|
|
<result column="STACKING_ID" jdbcType="DECIMAL" property="stackingId" />
|
|
<result column="GRID_GRADATION_NUMBER" jdbcType="DECIMAL" property="gridGradationNumber" />
|
|
<result column="GRID_GRADATION_NUMBER" jdbcType="DECIMAL" property="gridGradationNumber" />
|
|
|
|
+ <result column="GRID_SEQUENCE_NUMBER" jdbcType="DECIMAL" property="gridSequenceNumber" />
|
|
<result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
|
|
<result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
|
|
<result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
|
|
<result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
|
|
<result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
|
|
<result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
|
|
<result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
|
|
<result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
|
|
- <result column="GRID_SEQUENCE_NUMBER" jdbcType="DECIMAL" property="gridSequenceNumber" />
|
|
|
|
|
|
+ <result column="GRID_TYPE" jdbcType="DECIMAL" property="gridType" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
- GRID_ID, WAREHOUSE_ID, PLATFORM_ID, STACKING_ID, GRID_GRADATION_NUMBER, INSERT_USERNAME,
|
|
|
|
- INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, GRID_SEQUENCE_NUMBER
|
|
|
|
|
|
+ GRID_ID, WAREHOUSE_ID, PLATFORM_ID, STACKING_ID, GRID_GRADATION_NUMBER, GRID_SEQUENCE_NUMBER,
|
|
|
|
+ INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
|
+ GRID_TYPE
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
- t.GRID_ID, t.WAREHOUSE_ID, t.PLATFORM_ID, t.STACKING_ID, t.GRID_GRADATION_NUMBER,
|
|
|
|
- t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK,
|
|
|
|
- t.GRID_SEQUENCE_NUMBER
|
|
|
|
|
|
+ t.GRID_ID, t.WAREHOUSE_ID, t.PLATFORM_ID, t.STACKING_ID, t.GRID_GRADATION_NUMBER,
|
|
|
|
+ t.GRID_SEQUENCE_NUMBER, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME,
|
|
|
|
+ t.INSERT_UPDATE_REMARK, t.GRID_TYPE
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
- SELECT <include refid="columns"/> FROM RMS_PWAREHOUSE_GRID
|
|
|
|
|
|
+ SELECT <include refid="columns" /> FROM RMS_PWAREHOUSE_GRID
|
|
</sql>
|
|
</sql>
|
|
<sql id="select_alias">
|
|
<sql id="select_alias">
|
|
- SELECT <include refid="columns_alias"/> FROM RMS_PWAREHOUSE_GRID t
|
|
|
|
|
|
+ SELECT <include refid="columns_alias" /> FROM RMS_PWAREHOUSE_GRID t
|
|
</sql>
|
|
</sql>
|
|
<sql id="where">
|
|
<sql id="where">
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
<if test="gridId != null">
|
|
<if test="gridId != null">
|
|
and GRID_ID = #{gridId}
|
|
and GRID_ID = #{gridId}
|
|
</if>
|
|
</if>
|
|
@@ -46,6 +48,9 @@
|
|
<if test="gridGradationNumber != null">
|
|
<if test="gridGradationNumber != null">
|
|
and GRID_GRADATION_NUMBER = #{gridGradationNumber}
|
|
and GRID_GRADATION_NUMBER = #{gridGradationNumber}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="gridSequenceNumber != null">
|
|
|
|
+ and GRID_SEQUENCE_NUMBER = #{gridSequenceNumber}
|
|
|
|
+ </if>
|
|
<if test="insertUsername != null and insertUsername != ''">
|
|
<if test="insertUsername != null and insertUsername != ''">
|
|
and INSERT_USERNAME = #{insertUsername}
|
|
and INSERT_USERNAME = #{insertUsername}
|
|
</if>
|
|
</if>
|
|
@@ -61,13 +66,13 @@
|
|
<if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
<if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
|
|
and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
|
|
</if>
|
|
</if>
|
|
- <if test="gridSequenceNumber != null">
|
|
|
|
- and GRID_SEQUENCE_NUMBER = #{gridSequenceNumber}
|
|
|
|
|
|
+ <if test="gridType != null">
|
|
|
|
+ and GRID_TYPE = #{gridType}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
<if test="gridId != null">
|
|
<if test="gridId != null">
|
|
and GRID_ID = #{gridId}
|
|
and GRID_ID = #{gridId}
|
|
</if>
|
|
</if>
|
|
@@ -83,6 +88,9 @@
|
|
<if test="gridGradationNumber != null">
|
|
<if test="gridGradationNumber != null">
|
|
and GRID_GRADATION_NUMBER = #{gridGradationNumber}
|
|
and GRID_GRADATION_NUMBER = #{gridGradationNumber}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="gridSequenceNumber != null">
|
|
|
|
+ and GRID_SEQUENCE_NUMBER = #{gridSequenceNumber}
|
|
|
|
+ </if>
|
|
<if test="insertUsername != null and insertUsername != ''">
|
|
<if test="insertUsername != null and insertUsername != ''">
|
|
and INSERT_USERNAME LIKE '%${insertUsername}%'
|
|
and INSERT_USERNAME LIKE '%${insertUsername}%'
|
|
</if>
|
|
</if>
|
|
@@ -98,55 +106,63 @@
|
|
<if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
<if test="insertUpdateRemark != null and insertUpdateRemark != ''">
|
|
and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
|
|
and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
|
|
</if>
|
|
</if>
|
|
- <if test="gridSequenceNumber != null">
|
|
|
|
- and GRID_SEQUENCE_NUMBER = #{gridSequenceNumber}
|
|
|
|
|
|
+ <if test="gridType != null">
|
|
|
|
+ and GRID_TYPE = #{gridType}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
delete from RMS_PWAREHOUSE_GRID
|
|
delete from RMS_PWAREHOUSE_GRID
|
|
where GRID_ID = #{gridId,jdbcType=DECIMAL}
|
|
where GRID_ID = #{gridId,jdbcType=DECIMAL}
|
|
</delete>
|
|
</delete>
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
delete from RMS_PWAREHOUSE_GRID
|
|
delete from RMS_PWAREHOUSE_GRID
|
|
where 1!=1
|
|
where 1!=1
|
|
- <if test="platformId != null">
|
|
|
|
- or PLATFORM_ID = #{platformId}
|
|
|
|
- </if>
|
|
|
|
- <if test="stackingId != null">
|
|
|
|
- or STACKING_ID = #{stackingId}
|
|
|
|
- </if>
|
|
|
|
- <if test="gridGradationNumber != null">
|
|
|
|
- or GRID_GRADATION_NUMBER = #{gridGradationNumber}
|
|
|
|
- </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="gridSequenceNumber != null">
|
|
|
|
- or GRID_SEQUENCE_NUMBER = #{gridSequenceNumber}
|
|
|
|
- </if>
|
|
|
|
|
|
+ <if test="warehouseId != null">
|
|
|
|
+ or WAREHOUSE_ID = #{warehouseId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="platformId != null">
|
|
|
|
+ or PLATFORM_ID = #{platformId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="stackingId != null">
|
|
|
|
+ or STACKING_ID = #{stackingId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="gridGradationNumber != null">
|
|
|
|
+ or GRID_GRADATION_NUMBER = #{gridGradationNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="gridSequenceNumber != null">
|
|
|
|
+ or GRID_SEQUENCE_NUMBER = #{gridSequenceNumber}
|
|
|
|
+ </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="gridType != null">
|
|
|
|
+ or GRID_TYPE = #{gridType}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
- <insert id="insert" parameterType="com.steerinfo.dil.model.RmsPwarehouseGrid" keyProperty="gridId">
|
|
|
|
- insert into RMS_PWAREHOUSE_GRID (GRID_ID, WAREHOUSE_ID, PLATFORM_ID,
|
|
|
|
- STACKING_ID, GRID_GRADATION_NUMBER, INSERT_USERNAME,
|
|
|
|
- INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
|
- INSERT_UPDATE_REMARK, GRID_SEQUENCE_NUMBER)
|
|
|
|
- values (#{gridId,jdbcType=DECIMAL}, #{warehouseId,jdbcType=DECIMAL}, #{platformId,jdbcType=DECIMAL},
|
|
|
|
- #{stackingId,jdbcType=DECIMAL}, #{gridGradationNumber,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
- #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{insertUpdateRemark,jdbcType=VARCHAR}, #{gridSequenceNumber,jdbcType=DECIMAL})
|
|
|
|
|
|
+ <insert id="insert" parameterType="com.steerinfo.dil.model.RmsPwarehouseGrid">
|
|
|
|
+ insert into RMS_PWAREHOUSE_GRID (GRID_ID, WAREHOUSE_ID, PLATFORM_ID,
|
|
|
|
+ STACKING_ID, GRID_GRADATION_NUMBER, GRID_SEQUENCE_NUMBER,
|
|
|
|
+ INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
|
|
+ UPDATE_TIME, INSERT_UPDATE_REMARK, GRID_TYPE
|
|
|
|
+ )
|
|
|
|
+ values (#{gridId,jdbcType=DECIMAL}, #{warehouseId,jdbcType=DECIMAL}, #{platformId,jdbcType=DECIMAL},
|
|
|
|
+ #{stackingId,jdbcType=DECIMAL}, #{gridGradationNumber,jdbcType=DECIMAL}, #{gridSequenceNumber,jdbcType=DECIMAL},
|
|
|
|
+ #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{gridType,jdbcType=DECIMAL}
|
|
|
|
+ )
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsPwarehouseGrid">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsPwarehouseGrid">
|
|
insert into RMS_PWAREHOUSE_GRID
|
|
insert into RMS_PWAREHOUSE_GRID
|
|
@@ -166,6 +182,9 @@
|
|
<if test="gridGradationNumber != null">
|
|
<if test="gridGradationNumber != null">
|
|
GRID_GRADATION_NUMBER,
|
|
GRID_GRADATION_NUMBER,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="gridSequenceNumber != null">
|
|
|
|
+ GRID_SEQUENCE_NUMBER,
|
|
|
|
+ </if>
|
|
<if test="insertUsername != null">
|
|
<if test="insertUsername != null">
|
|
INSERT_USERNAME,
|
|
INSERT_USERNAME,
|
|
</if>
|
|
</if>
|
|
@@ -181,8 +200,8 @@
|
|
<if test="insertUpdateRemark != null">
|
|
<if test="insertUpdateRemark != null">
|
|
INSERT_UPDATE_REMARK,
|
|
INSERT_UPDATE_REMARK,
|
|
</if>
|
|
</if>
|
|
- <if test="gridSequenceNumber != null">
|
|
|
|
- GRID_SEQUENCE_NUMBER,
|
|
|
|
|
|
+ <if test="gridType != null">
|
|
|
|
+ GRID_TYPE,
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -201,6 +220,9 @@
|
|
<if test="gridGradationNumber != null">
|
|
<if test="gridGradationNumber != null">
|
|
#{gridGradationNumber,jdbcType=DECIMAL},
|
|
#{gridGradationNumber,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="gridSequenceNumber != null">
|
|
|
|
+ #{gridSequenceNumber,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
<if test="insertUsername != null">
|
|
<if test="insertUsername != null">
|
|
#{insertUsername,jdbcType=VARCHAR},
|
|
#{insertUsername,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -216,23 +238,24 @@
|
|
<if test="insertUpdateRemark != null">
|
|
<if test="insertUpdateRemark != null">
|
|
#{insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{insertUpdateRemark,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="gridSequenceNumber != null">
|
|
|
|
- #{gridSequenceNumber,jdbcType=DECIMAL},
|
|
|
|
|
|
+ <if test="gridType != null">
|
|
|
|
+ #{gridType,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsPwarehouseGrid">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsPwarehouseGrid">
|
|
update RMS_PWAREHOUSE_GRID
|
|
update RMS_PWAREHOUSE_GRID
|
|
set WAREHOUSE_ID = #{warehouseId,jdbcType=DECIMAL},
|
|
set WAREHOUSE_ID = #{warehouseId,jdbcType=DECIMAL},
|
|
- PLATFORM_ID = #{platformId,jdbcType=DECIMAL},
|
|
|
|
- STACKING_ID = #{stackingId,jdbcType=DECIMAL},
|
|
|
|
- GRID_GRADATION_NUMBER = #{gridGradationNumber,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},
|
|
|
|
- GRID_SEQUENCE_NUMBER = #{gridSequenceNumber,jdbcType=DECIMAL}
|
|
|
|
|
|
+ PLATFORM_ID = #{platformId,jdbcType=DECIMAL},
|
|
|
|
+ STACKING_ID = #{stackingId,jdbcType=DECIMAL},
|
|
|
|
+ GRID_GRADATION_NUMBER = #{gridGradationNumber,jdbcType=DECIMAL},
|
|
|
|
+ GRID_SEQUENCE_NUMBER = #{gridSequenceNumber,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},
|
|
|
|
+ GRID_TYPE = #{gridType,jdbcType=DECIMAL}
|
|
where GRID_ID = #{gridId,jdbcType=DECIMAL}
|
|
where GRID_ID = #{gridId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsPwarehouseGrid">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsPwarehouseGrid">
|
|
@@ -250,6 +273,9 @@
|
|
<if test="gridGradationNumber != null">
|
|
<if test="gridGradationNumber != null">
|
|
GRID_GRADATION_NUMBER = #{gridGradationNumber,jdbcType=DECIMAL},
|
|
GRID_GRADATION_NUMBER = #{gridGradationNumber,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="gridSequenceNumber != null">
|
|
|
|
+ GRID_SEQUENCE_NUMBER = #{gridSequenceNumber,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
<if test="insertUsername != null">
|
|
<if test="insertUsername != null">
|
|
INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -265,98 +291,102 @@
|
|
<if test="insertUpdateRemark != null">
|
|
<if test="insertUpdateRemark != null">
|
|
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="gridSequenceNumber != null">
|
|
|
|
- GRID_SEQUENCE_NUMBER = #{gridSequenceNumber,jdbcType=DECIMAL},
|
|
|
|
|
|
+ <if test="gridType != null">
|
|
|
|
+ GRID_TYPE = #{gridType,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
where GRID_ID = #{gridId,jdbcType=DECIMAL}
|
|
where GRID_ID = #{gridId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
|
- <include refid="select"/>
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
|
|
+ <include refid="select" />
|
|
where GRID_ID = #{gridId,jdbcType=DECIMAL}
|
|
where GRID_ID = #{gridId,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 RMS_PWAREHOUSE_GRID
|
|
|
|
- (GRID_ID,
|
|
|
|
- WAREHOUSE_ID, PLATFORM_ID, STACKING_ID,
|
|
|
|
- GRID_GRADATION_NUMBER, INSERT_USERNAME,
|
|
|
|
- INSERT_TIME, UPDATE_USERNAME,
|
|
|
|
- UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
|
- GRID_SEQUENCE_NUMBER)
|
|
|
|
- ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
- select
|
|
|
|
- #{item.gridId,jdbcType=DECIMAL},
|
|
|
|
- #{item.warehouseId,jdbcType=DECIMAL}, #{item.platformId,jdbcType=DECIMAL}, #{item.stackingId,jdbcType=DECIMAL},
|
|
|
|
- #{item.gridGradationNumber,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR},
|
|
|
|
- #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
|
|
- #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
- #{item.gridSequenceNumber,jdbcType=DECIMAL} from dual
|
|
|
|
- </foreach> )
|
|
|
|
|
|
+ insert into RMS_PWAREHOUSE_GRID
|
|
|
|
+ (GRID_ID,
|
|
|
|
+ WAREHOUSE_ID, PLATFORM_ID, STACKING_ID,
|
|
|
|
+ GRID_GRADATION_NUMBER, GRID_SEQUENCE_NUMBER,
|
|
|
|
+ INSERT_USERNAME, INSERT_TIME,
|
|
|
|
+ UPDATE_USERNAME, UPDATE_TIME,
|
|
|
|
+ INSERT_UPDATE_REMARK, GRID_TYPE)
|
|
|
|
+ ( <foreach collection="list" item="item" separator="union all">
|
|
|
|
+ select
|
|
|
|
+ #{item.gridId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.warehouseId,jdbcType=DECIMAL}, #{item.platformId,jdbcType=DECIMAL}, #{item.stackingId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.gridGradationNumber,jdbcType=DECIMAL}, #{item.gridSequenceNumber,jdbcType=DECIMAL},
|
|
|
|
+ #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.gridType,jdbcType=DECIMAL} from dual
|
|
|
|
+ </foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
- update RMS_PWAREHOUSE_GRID
|
|
|
|
- set
|
|
|
|
- GRID_ID=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case GRID_ID" close="end">
|
|
|
|
- when #{item.gridId,jdbcType=DECIMAL} then #{item.gridId,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- ,WAREHOUSE_ID=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case GRID_ID" close="end">
|
|
|
|
- when #{item.gridId,jdbcType=DECIMAL} then #{item.warehouseId,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- ,PLATFORM_ID=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case GRID_ID" close="end">
|
|
|
|
- when #{item.gridId,jdbcType=DECIMAL} then #{item.platformId,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- ,STACKING_ID=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case GRID_ID" close="end">
|
|
|
|
- when #{item.gridId,jdbcType=DECIMAL} then #{item.stackingId,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- ,GRID_GRADATION_NUMBER=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case GRID_ID" close="end">
|
|
|
|
- when #{item.gridId,jdbcType=DECIMAL} then #{item.gridGradationNumber,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- ,INSERT_USERNAME=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case GRID_ID" close="end">
|
|
|
|
- when #{item.gridId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
|
- </foreach>
|
|
|
|
- ,INSERT_TIME=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case GRID_ID" close="end">
|
|
|
|
- when #{item.gridId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
|
- </foreach>
|
|
|
|
- ,UPDATE_USERNAME=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case GRID_ID" close="end">
|
|
|
|
- when #{item.gridId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
|
- </foreach>
|
|
|
|
- ,UPDATE_TIME=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case GRID_ID" close="end">
|
|
|
|
- when #{item.gridId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
- </foreach>
|
|
|
|
- ,INSERT_UPDATE_REMARK=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case GRID_ID" close="end">
|
|
|
|
- when #{item.gridId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
|
- </foreach>
|
|
|
|
- ,GRID_SEQUENCE_NUMBER=
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case GRID_ID" close="end">
|
|
|
|
- when #{item.gridId,jdbcType=DECIMAL} then #{item.gridSequenceNumber,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- where GRID_ID in
|
|
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
- #{item.gridId,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
|
|
+ update RMS_PWAREHOUSE_GRID
|
|
|
|
+ set
|
|
|
|
+ GRID_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case GRID_ID" separator=" ">
|
|
|
|
+ when #{item.gridId,jdbcType=DECIMAL} then #{item.gridId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,WAREHOUSE_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case GRID_ID" separator=" ">
|
|
|
|
+ when #{item.gridId,jdbcType=DECIMAL} then #{item.warehouseId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,PLATFORM_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case GRID_ID" separator=" ">
|
|
|
|
+ when #{item.gridId,jdbcType=DECIMAL} then #{item.platformId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,STACKING_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case GRID_ID" separator=" ">
|
|
|
|
+ when #{item.gridId,jdbcType=DECIMAL} then #{item.stackingId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,GRID_GRADATION_NUMBER=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case GRID_ID" separator=" ">
|
|
|
|
+ when #{item.gridId,jdbcType=DECIMAL} then #{item.gridGradationNumber,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,GRID_SEQUENCE_NUMBER=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case GRID_ID" separator=" ">
|
|
|
|
+ when #{item.gridId,jdbcType=DECIMAL} then #{item.gridSequenceNumber,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_USERNAME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case GRID_ID" separator=" ">
|
|
|
|
+ when #{item.gridId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case GRID_ID" separator=" ">
|
|
|
|
+ when #{item.gridId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UPDATE_USERNAME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case GRID_ID" separator=" ">
|
|
|
|
+ when #{item.gridId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,UPDATE_TIME=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case GRID_ID" separator=" ">
|
|
|
|
+ when #{item.gridId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INSERT_UPDATE_REMARK=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case GRID_ID" separator=" ">
|
|
|
|
+ when #{item.gridId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,GRID_TYPE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case GRID_ID" separator=" ">
|
|
|
|
+ when #{item.gridId,jdbcType=DECIMAL} then #{item.gridType,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ where GRID_ID in
|
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
|
+ #{item.gridId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
</update>
|
|
</update>
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
delete from RMS_PWAREHOUSE_GRID
|
|
delete from RMS_PWAREHOUSE_GRID
|
|
- where GRID_ID in
|
|
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
|
|
+ where GRID_ID in
|
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
@@ -431,4 +461,37 @@
|
|
where rpg.warehouse_id = #{warehouseId}
|
|
where rpg.warehouse_id = #{warehouseId}
|
|
order by rs.stacking_sequence
|
|
order by rs.stacking_sequence
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="getWarehouseIds" resultType="java.lang.Integer">
|
|
|
|
+ SELECT RW.WAREHOUSE_ID FROM RMS_WAREHOUSE RW
|
|
|
|
+ WHERE
|
|
|
|
+ RW.DELETED = 0
|
|
|
|
+ AND RW.WAREHOUSE_NAME = #{sendStation}
|
|
|
|
+ </select>
|
|
|
|
+ <select id="getMaterialSteelIds" resultType="java.math.BigDecimal" parameterType="decimal">
|
|
|
|
+ SELECT WIR.MATERIAL_ID FROM WMSP_OUTBOUND_RESULT WOR
|
|
|
|
+ LEFT JOIN WMSP_OUTBOUND_RESULT_MATERIAL WORM
|
|
|
|
+ ON WORM.OUTBOUND_RESULT_ID = WOR.RESULT_ID
|
|
|
|
+ LEFT JOIN WMSP_OUTBOUND_SCAN_RESULT WOSR
|
|
|
|
+ ON WOSR.RESULT_MATERIAL_ID = WORM.RESULT_MATERIAL_ID
|
|
|
|
+ LEFT JOIN WMSP_INBOUND_RESULT WIR
|
|
|
|
+ ON WIR.INBOUND_ID = WOSR.INBOUND_RESULT_ID
|
|
|
|
+ WHERE WOR.BILL_LADING_ID = #{orderId}
|
|
|
|
+ </select>
|
|
|
|
+ <select id="getOrderMaterialList" resultType="java.util.Map" parameterType="decimal">
|
|
|
|
+ SELECT oom.MATERIAL_ID "materialId",OOM.ORDER_MATERIAL_NUMBER "materialNum" FROM OMSTRUCK_ORDER_MATERIAL OOM
|
|
|
|
+ WHERE OOM.ORDER_ID = #{materialId}
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectGridByOrderId" resultType="decimal" parameterType="decimal">
|
|
|
|
+ SELECT RPG.GRID_ID FROM RMS_PWAREHOUSE_GRID RPG
|
|
|
|
+ WHERE
|
|
|
|
+ RPG.GRID_TYPE = 1
|
|
|
|
+ AND RPG.STACKING_ID = #{orderId}
|
|
|
|
+ </select>
|
|
|
|
+ <select id="getGmNum" resultType="java.util.Map" >
|
|
|
|
+ SELECT WGM.GM_NUMBER "gmNum",WGM.GM_ID "gmId" FROM RMS_PWAREHOUSE_GRID RPG
|
|
|
|
+ LEFT JOIN WMSP_GRID_MATERIAL WGM
|
|
|
|
+ ON WGM.GRID_ID = RPG.GRID_ID
|
|
|
|
+ WHERE RPG.STACKING_ID = #{orderId}
|
|
|
|
+ and WGM.MATERIAL_ID = #{materialId}
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|