|
|
|
@ -11,16 +11,17 @@
|
|
|
|
|
<result column="ITEM_BO" property="itemBo" />
|
|
|
|
|
<result column="LENGHT" property="lenght" />
|
|
|
|
|
<result column="WIDTH" property="width" />
|
|
|
|
|
<result column="NUMBERS" property="numbers" />
|
|
|
|
|
<result column="QTY" property="qty" />
|
|
|
|
|
<result column="CREATE_USER" property="createUser" />
|
|
|
|
|
<result column="CREATED_DATE_TIME" property="createdDateTime" />
|
|
|
|
|
<result column="MODIFU_USER" property="modifuUser" />
|
|
|
|
|
<result column="MODIFY_USER" property="modifyUser" />
|
|
|
|
|
<result column="MODIFIED_DATE_TIME" property="modifiedDateTime" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
HANDLE, SITE, INVENTORY, PARENT_INVENTORY, ITEM_BO, LENGHT, WIDTH, QTY, CREATE_USER, CREATED_DATE_TIME, MODIFU_USER, MODIFIED_DATE_TIME
|
|
|
|
|
HANDLE, SITE, INVENTORY, PARENT_INVENTORY, ITEM_BO, LENGHT, WIDTH, NUMBERS, QTY, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<!-- BaseMapper标准查询/修改/删除 -->
|
|
|
|
@ -61,10 +62,11 @@
|
|
|
|
|
<if test="ew.entity.itemBo!=null"> AND ITEM_BO=#{ew.entity.itemBo}</if>
|
|
|
|
|
<if test="ew.entity.lenght!=null"> AND LENGHT=#{ew.entity.lenght}</if>
|
|
|
|
|
<if test="ew.entity.width!=null"> AND WIDTH=#{ew.entity.width}</if>
|
|
|
|
|
<if test="ew.entity.numbers!=null"> AND NUMBERS=#{ew.entity.numbers}</if>
|
|
|
|
|
<if test="ew.entity.qty!=null"> AND QTY=#{ew.entity.qty}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifuUser!=null"> AND MODIFU_USER=#{ew.entity.modifuUser}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
|
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
@ -83,10 +85,11 @@
|
|
|
|
|
<if test="ew.entity.itemBo!=null"> AND ITEM_BO=#{ew.entity.itemBo}</if>
|
|
|
|
|
<if test="ew.entity.lenght!=null"> AND LENGHT=#{ew.entity.lenght}</if>
|
|
|
|
|
<if test="ew.entity.width!=null"> AND WIDTH=#{ew.entity.width}</if>
|
|
|
|
|
<if test="ew.entity.numbers!=null"> AND NUMBERS=#{ew.entity.numbers}</if>
|
|
|
|
|
<if test="ew.entity.qty!=null"> AND QTY=#{ew.entity.qty}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifuUser!=null"> AND MODIFU_USER=#{ew.entity.modifuUser}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
|
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
|
|
@ -113,10 +116,11 @@
|
|
|
|
|
<if test="ew.entity.itemBo!=null"> AND ITEM_BO=#{ew.entity.itemBo}</if>
|
|
|
|
|
<if test="ew.entity.lenght!=null"> AND LENGHT=#{ew.entity.lenght}</if>
|
|
|
|
|
<if test="ew.entity.width!=null"> AND WIDTH=#{ew.entity.width}</if>
|
|
|
|
|
<if test="ew.entity.numbers!=null"> AND NUMBERS=#{ew.entity.numbers}</if>
|
|
|
|
|
<if test="ew.entity.qty!=null"> AND QTY=#{ew.entity.qty}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifuUser!=null"> AND MODIFU_USER=#{ew.entity.modifuUser}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
|
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
|
|
@ -143,10 +147,11 @@
|
|
|
|
|
<if test="ew.entity.itemBo!=null"> AND ITEM_BO=#{ew.entity.itemBo}</if>
|
|
|
|
|
<if test="ew.entity.lenght!=null"> AND LENGHT=#{ew.entity.lenght}</if>
|
|
|
|
|
<if test="ew.entity.width!=null"> AND WIDTH=#{ew.entity.width}</if>
|
|
|
|
|
<if test="ew.entity.numbers!=null"> AND NUMBERS=#{ew.entity.numbers}</if>
|
|
|
|
|
<if test="ew.entity.qty!=null"> AND QTY=#{ew.entity.qty}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifuUser!=null"> AND MODIFU_USER=#{ew.entity.modifuUser}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
|
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
|
|
@ -173,10 +178,11 @@
|
|
|
|
|
<if test="ew.entity.itemBo!=null"> AND ITEM_BO=#{ew.entity.itemBo}</if>
|
|
|
|
|
<if test="ew.entity.lenght!=null"> AND LENGHT=#{ew.entity.lenght}</if>
|
|
|
|
|
<if test="ew.entity.width!=null"> AND WIDTH=#{ew.entity.width}</if>
|
|
|
|
|
<if test="ew.entity.numbers!=null"> AND NUMBERS=#{ew.entity.numbers}</if>
|
|
|
|
|
<if test="ew.entity.qty!=null"> AND QTY=#{ew.entity.qty}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifuUser!=null"> AND MODIFU_USER=#{ew.entity.modifuUser}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
|
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
|
|
@ -203,10 +209,11 @@
|
|
|
|
|
<if test="ew.entity.itemBo!=null"> AND ITEM_BO=#{ew.entity.itemBo}</if>
|
|
|
|
|
<if test="ew.entity.lenght!=null"> AND LENGHT=#{ew.entity.lenght}</if>
|
|
|
|
|
<if test="ew.entity.width!=null"> AND WIDTH=#{ew.entity.width}</if>
|
|
|
|
|
<if test="ew.entity.numbers!=null"> AND NUMBERS=#{ew.entity.numbers}</if>
|
|
|
|
|
<if test="ew.entity.qty!=null"> AND QTY=#{ew.entity.qty}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifuUser!=null"> AND MODIFU_USER=#{ew.entity.modifuUser}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
|
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
|
|
@ -233,10 +240,11 @@
|
|
|
|
|
<if test="ew.entity.itemBo!=null"> AND ITEM_BO=#{ew.entity.itemBo}</if>
|
|
|
|
|
<if test="ew.entity.lenght!=null"> AND LENGHT=#{ew.entity.lenght}</if>
|
|
|
|
|
<if test="ew.entity.width!=null"> AND WIDTH=#{ew.entity.width}</if>
|
|
|
|
|
<if test="ew.entity.numbers!=null"> AND NUMBERS=#{ew.entity.numbers}</if>
|
|
|
|
|
<if test="ew.entity.qty!=null"> AND QTY=#{ew.entity.qty}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifuUser!=null"> AND MODIFU_USER=#{ew.entity.modifuUser}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
|
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
|
|
@ -259,10 +267,11 @@
|
|
|
|
|
<if test="itemBo!=null">ITEM_BO,</if>
|
|
|
|
|
<if test="lenght!=null">LENGHT,</if>
|
|
|
|
|
<if test="width!=null">WIDTH,</if>
|
|
|
|
|
<if test="numbers!=null">NUMBERS,</if>
|
|
|
|
|
<if test="qty!=null">QTY,</if>
|
|
|
|
|
<if test="createUser!=null">CREATE_USER,</if>
|
|
|
|
|
<if test="createdDateTime!=null">CREATED_DATE_TIME,</if>
|
|
|
|
|
<if test="modifuUser!=null">MODIFU_USER,</if>
|
|
|
|
|
<if test="modifyUser!=null">MODIFY_USER,</if>
|
|
|
|
|
<if test="modifiedDateTime!=null">MODIFIED_DATE_TIME,</if>
|
|
|
|
|
</trim> VALUES
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
@ -273,10 +282,11 @@
|
|
|
|
|
<if test="itemBo!=null">#{itemBo},</if>
|
|
|
|
|
<if test="lenght!=null">#{lenght},</if>
|
|
|
|
|
<if test="width!=null">#{width},</if>
|
|
|
|
|
<if test="numbers!=null">#{numbers},</if>
|
|
|
|
|
<if test="qty!=null">#{qty},</if>
|
|
|
|
|
<if test="createUser!=null">#{createUser},</if>
|
|
|
|
|
<if test="createdDateTime!=null">#{createdDateTime},</if>
|
|
|
|
|
<if test="modifuUser!=null">#{modifuUser},</if>
|
|
|
|
|
<if test="modifyUser!=null">#{modifyUser},</if>
|
|
|
|
|
<if test="modifiedDateTime!=null">#{modifiedDateTime},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
@ -294,10 +304,11 @@
|
|
|
|
|
#{itemBo},
|
|
|
|
|
#{lenght},
|
|
|
|
|
#{width},
|
|
|
|
|
#{numbers},
|
|
|
|
|
#{qty},
|
|
|
|
|
#{createUser},
|
|
|
|
|
#{createdDateTime},
|
|
|
|
|
#{modifuUser},
|
|
|
|
|
#{modifyUser},
|
|
|
|
|
#{modifiedDateTime},
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
@ -311,10 +322,11 @@
|
|
|
|
|
<if test="et.itemBo!=null">ITEM_BO=#{et.itemBo},</if>
|
|
|
|
|
<if test="et.lenght!=null">LENGHT=#{et.lenght},</if>
|
|
|
|
|
<if test="et.width!=null">WIDTH=#{et.width},</if>
|
|
|
|
|
<if test="et.numbers!=null">NUMBERS=#{et.numbers},</if>
|
|
|
|
|
<if test="et.qty!=null">QTY=#{et.qty},</if>
|
|
|
|
|
<if test="et.createUser!=null">CREATE_USER=#{et.createUser},</if>
|
|
|
|
|
<if test="et.createdDateTime!=null">CREATED_DATE_TIME=#{et.createdDateTime},</if>
|
|
|
|
|
<if test="et.modifuUser!=null">MODIFU_USER=#{et.modifuUser},</if>
|
|
|
|
|
<if test="et.modifyUser!=null">MODIFY_USER=#{et.modifyUser},</if>
|
|
|
|
|
<if test="et.modifiedDateTime!=null">MODIFIED_DATE_TIME=#{et.modifiedDateTime},</if>
|
|
|
|
|
</trim> WHERE HANDLE=#{et.handle} <if test="et instanceof java.util.Map"><if test="et.MP_OPTLOCK_VERSION_ORIGINAL!=null">and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}</if></if>
|
|
|
|
|
</update>
|
|
|
|
@ -328,10 +340,11 @@
|
|
|
|
|
ITEM_BO=#{et.itemBo},
|
|
|
|
|
LENGHT=#{et.lenght},
|
|
|
|
|
WIDTH=#{et.width},
|
|
|
|
|
NUMBERS=#{et.numbers},
|
|
|
|
|
QTY=#{et.qty},
|
|
|
|
|
CREATE_USER=#{et.createUser},
|
|
|
|
|
CREATED_DATE_TIME=#{et.createdDateTime},
|
|
|
|
|
MODIFU_USER=#{et.modifuUser},
|
|
|
|
|
MODIFY_USER=#{et.modifyUser},
|
|
|
|
|
MODIFIED_DATE_TIME=#{et.modifiedDateTime},
|
|
|
|
|
</trim> WHERE HANDLE=#{et.handle} <if test="et instanceof java.util.Map"><if test="et.MP_OPTLOCK_VERSION_ORIGINAL!=null">and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}</if></if>
|
|
|
|
|
</update>
|
|
|
|
@ -345,10 +358,11 @@
|
|
|
|
|
<if test="et.itemBo!=null">ITEM_BO=#{et.itemBo},</if>
|
|
|
|
|
<if test="et.lenght!=null">LENGHT=#{et.lenght},</if>
|
|
|
|
|
<if test="et.width!=null">WIDTH=#{et.width},</if>
|
|
|
|
|
<if test="et.numbers!=null">NUMBERS=#{et.numbers},</if>
|
|
|
|
|
<if test="et.qty!=null">QTY=#{et.qty},</if>
|
|
|
|
|
<if test="et.createUser!=null">CREATE_USER=#{et.createUser},</if>
|
|
|
|
|
<if test="et.createdDateTime!=null">CREATED_DATE_TIME=#{et.createdDateTime},</if>
|
|
|
|
|
<if test="et.modifuUser!=null">MODIFU_USER=#{et.modifuUser},</if>
|
|
|
|
|
<if test="et.modifyUser!=null">MODIFY_USER=#{et.modifyUser},</if>
|
|
|
|
|
<if test="et.modifiedDateTime!=null">MODIFIED_DATE_TIME=#{et.modifiedDateTime},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<where>
|
|
|
|
@ -361,10 +375,11 @@
|
|
|
|
|
<if test="ew.entity.itemBo!=null"> AND ITEM_BO=#{ew.entity.itemBo}</if>
|
|
|
|
|
<if test="ew.entity.lenght!=null"> AND LENGHT=#{ew.entity.lenght}</if>
|
|
|
|
|
<if test="ew.entity.width!=null"> AND WIDTH=#{ew.entity.width}</if>
|
|
|
|
|
<if test="ew.entity.numbers!=null"> AND NUMBERS=#{ew.entity.numbers}</if>
|
|
|
|
|
<if test="ew.entity.qty!=null"> AND QTY=#{ew.entity.qty}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifuUser!=null"> AND MODIFU_USER=#{ew.entity.modifuUser}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
|
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
|
|
@ -408,10 +423,11 @@
|
|
|
|
|
<if test="ew.entity.itemBo!=null"> AND ITEM_BO=#{ew.entity.itemBo}</if>
|
|
|
|
|
<if test="ew.entity.lenght!=null"> AND LENGHT=#{ew.entity.lenght}</if>
|
|
|
|
|
<if test="ew.entity.width!=null"> AND WIDTH=#{ew.entity.width}</if>
|
|
|
|
|
<if test="ew.entity.numbers!=null"> AND NUMBERS=#{ew.entity.numbers}</if>
|
|
|
|
|
<if test="ew.entity.qty!=null"> AND QTY=#{ew.entity.qty}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifuUser!=null"> AND MODIFU_USER=#{ew.entity.modifuUser}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
|
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
|
|
|
|
|