|
@@ -5,12 +5,7 @@
|
|
<id column="INBOUND_ID" jdbcType="DECIMAL" property="inboundId" />
|
|
<id column="INBOUND_ID" jdbcType="DECIMAL" property="inboundId" />
|
|
<result column="INBOUND_TYPE" jdbcType="DECIMAL" property="inboundType" />
|
|
<result column="INBOUND_TYPE" jdbcType="DECIMAL" property="inboundType" />
|
|
<result column="INBOUND_NUMBER" jdbcType="VARCHAR" property="inboundNumber" />
|
|
<result column="INBOUND_NUMBER" jdbcType="VARCHAR" property="inboundNumber" />
|
|
- <result column="INBOUND_DISTRIBUTE_ID" jdbcType="DECIMAL" property="inboundDistributeId" />
|
|
|
|
<result column="GRID_ID" jdbcType="DECIMAL" property="gridId" />
|
|
<result column="GRID_ID" jdbcType="DECIMAL" property="gridId" />
|
|
- <result column="INBOUND_GROUP_ID" jdbcType="DECIMAL" property="inboundGroupId" />
|
|
|
|
- <result column="PERSONNEL_WORKSHOPID" jdbcType="DECIMAL" property="personnelWorkshopid" />
|
|
|
|
- <result column="RESULT_NUMBER" jdbcType="DECIMAL" property="resultNumber" />
|
|
|
|
- <result column="ISUPLOAD" jdbcType="DECIMAL" property="isupload" />
|
|
|
|
<result column="RESULT_STATUS" jdbcType="DECIMAL" property="resultStatus" />
|
|
<result column="RESULT_STATUS" jdbcType="DECIMAL" property="resultStatus" />
|
|
<result column="MATERIAL_ID" jdbcType="DECIMAL" property="materialId" />
|
|
<result column="MATERIAL_ID" jdbcType="DECIMAL" property="materialId" />
|
|
<result column="INBOUND_ISCOMPLETE" jdbcType="DECIMAL" property="inboundIscomplete" />
|
|
<result column="INBOUND_ISCOMPLETE" jdbcType="DECIMAL" property="inboundIscomplete" />
|
|
@@ -22,22 +17,27 @@
|
|
<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="PERSONNEL_TEAM" jdbcType="VARCHAR" property="personnelTeam" />
|
|
<result column="PERSONNEL_TEAM" jdbcType="VARCHAR" property="personnelTeam" />
|
|
|
|
+ <result column="PERSONNEL_WORKSHOPID" jdbcType="DECIMAL" property="personnelWorkshopid" />
|
|
<result column="PERSONNEL_SHIFTS" jdbcType="VARCHAR" property="personnelShifts" />
|
|
<result column="PERSONNEL_SHIFTS" jdbcType="VARCHAR" property="personnelShifts" />
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ <result column="INBOUND_DISTRIBUTE_ID" jdbcType="DECIMAL" property="inboundDistributeId" />
|
|
|
|
+ <result column="INBOUND_GROUP_ID" jdbcType="DECIMAL" property="inboundGroupId" />
|
|
|
|
+ <result column="RESULT_NUMBER" jdbcType="DECIMAL" property="resultNumber" />
|
|
|
|
+ <result column="ISUPLOAD" jdbcType="DECIMAL" property="isupload" />
|
|
|
|
+ <result column="INBOUND_ONLY_VALUE" jdbcType="DECIMAL" property="inboundOnlyValue" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
- INBOUND_ID, INBOUND_TYPE, INBOUND_NUMBER,INBOUND_DISTRIBUTE_ID, GRID_ID,INBOUND_GROUP_ID,PERSONNEL_WORKSHOPID,RESULT_NUMBER,ISUPLOAD, RESULT_STATUS, MATERIAL_ID, INBOUND_ISCOMPLETE,
|
|
|
|
- RESULT_DELETED, INBOUND_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
|
- INSERT_UPDATE_REMARK, PERSONNEL_TEAM,, PERSONNEL_SHIFTS
|
|
|
|
- </sql>
|
|
|
|
|
|
+ INBOUND_ID, INBOUND_TYPE, INBOUND_NUMBER, GRID_ID, RESULT_STATUS, MATERIAL_ID, INBOUND_ISCOMPLETE,
|
|
|
|
+ RESULT_DELETED, INBOUND_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
|
+ INSERT_UPDATE_REMARK, PERSONNEL_TEAM, PERSONNEL_WORKSHOPID, PERSONNEL_SHIFTS, INBOUND_DISTRIBUTE_ID,
|
|
|
|
+ INBOUND_GROUP_ID, RESULT_NUMBER, ISUPLOAD, INBOUND_ONLY_VALUE
|
|
|
|
+ </sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
- t.INBOUND_ID, t.INBOUND_TYPE, t.INBOUND_NUMBER,t.INBOUND_DISTRIBUTE_ID, t.GRID_ID,INBOUND_GROUP_ID,t.PERSONNEL_WORKSHOPID,t.RESULT_NUMBER,ISUPLOAD, t.RESULT_STATUS, t.MATERIAL_ID,
|
|
|
|
- t.INBOUND_ISCOMPLETE, t.RESULT_DELETED, t.INBOUND_TIME, t.INSERT_USERNAME, t.INSERT_TIME,
|
|
|
|
- t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.PERSONNEL_TEAM, ,
|
|
|
|
- t.PERSONNEL_SHIFTS
|
|
|
|
- </sql>
|
|
|
|
|
|
+ t.INBOUND_ID, t.INBOUND_TYPE, t.INBOUND_NUMBER, t.GRID_ID, t.RESULT_STATUS, t.MATERIAL_ID,
|
|
|
|
+ t.INBOUND_ISCOMPLETE, t.RESULT_DELETED, t.INBOUND_TIME, t.INSERT_USERNAME, t.INSERT_TIME,
|
|
|
|
+ t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.PERSONNEL_TEAM, t.PERSONNEL_WORKSHOPID,
|
|
|
|
+ t.PERSONNEL_SHIFTS, t.INBOUND_DISTRIBUTE_ID, t.INBOUND_GROUP_ID, t.RESULT_NUMBER,
|
|
|
|
+ t.ISUPLOAD, t.INBOUND_ONLY_VALUE
|
|
|
|
+ </sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
SELECT <include refid="columns" /> FROM WMSP_INBOUND_RESULT
|
|
SELECT <include refid="columns" /> FROM WMSP_INBOUND_RESULT
|
|
</sql>
|
|
</sql>
|
|
@@ -55,28 +55,9 @@
|
|
<if test="inboundNumber != null and inboundNumber != ''">
|
|
<if test="inboundNumber != null and inboundNumber != ''">
|
|
and INBOUND_NUMBER = #{inboundNumber}
|
|
and INBOUND_NUMBER = #{inboundNumber}
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
- <if test="inboundDistributeId != null and inboundDistributeId != ''">
|
|
|
|
- and INBOUND_DISTRIBUTE_ID = #{inboundDistributeId}
|
|
|
|
- </if>
|
|
|
|
-
|
|
|
|
<if test="gridId != null">
|
|
<if test="gridId != null">
|
|
and GRID_ID = #{gridId}
|
|
and GRID_ID = #{gridId}
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
- <if test="inboundGroupId != null">
|
|
|
|
- and INBOUND_GROUP_ID = #{inboundGroupId}
|
|
|
|
- </if>
|
|
|
|
-
|
|
|
|
- <if test="personnelWorkshopid != null">
|
|
|
|
- and PERSONNEL_WORKSHOPID = #{personnelWorkshopid}
|
|
|
|
- </if>
|
|
|
|
- <if test="resultNumber != null">
|
|
|
|
- and RESULT_NUMBER = #{resultNumber}
|
|
|
|
- </if>
|
|
|
|
- <if test="isupload != null">
|
|
|
|
- and ISUPLOAD = #{isupload}
|
|
|
|
- </if>
|
|
|
|
<if test="resultStatus != null">
|
|
<if test="resultStatus != null">
|
|
and RESULT_STATUS = #{resultStatus}
|
|
and RESULT_STATUS = #{resultStatus}
|
|
</if>
|
|
</if>
|
|
@@ -110,9 +91,27 @@
|
|
<if test="personnelTeam != null and personnelTeam != ''">
|
|
<if test="personnelTeam != null and personnelTeam != ''">
|
|
and PERSONNEL_TEAM = #{personnelTeam}
|
|
and PERSONNEL_TEAM = #{personnelTeam}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="personnelWorkshopid != null">
|
|
|
|
+ and PERSONNEL_WORKSHOPID = #{personnelWorkshopid}
|
|
|
|
+ </if>
|
|
<if test="personnelShifts != null and personnelShifts != ''">
|
|
<if test="personnelShifts != null and personnelShifts != ''">
|
|
and PERSONNEL_SHIFTS = #{personnelShifts}
|
|
and PERSONNEL_SHIFTS = #{personnelShifts}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="inboundDistributeId != null">
|
|
|
|
+ and INBOUND_DISTRIBUTE_ID = #{inboundDistributeId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inboundGroupId != null">
|
|
|
|
+ and INBOUND_GROUP_ID = #{inboundGroupId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultNumber != null">
|
|
|
|
+ and RESULT_NUMBER = #{resultNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isupload != null">
|
|
|
|
+ and ISUPLOAD = #{isupload}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inboundOnlyValue != null">
|
|
|
|
+ and INBOUND_ONLY_VALUE = #{inboundOnlyValue}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -123,29 +122,12 @@
|
|
<if test="inboundType != null">
|
|
<if test="inboundType != null">
|
|
and INBOUND_TYPE = #{inboundType}
|
|
and INBOUND_TYPE = #{inboundType}
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
<if test="inboundNumber != null and inboundNumber != ''">
|
|
<if test="inboundNumber != null and inboundNumber != ''">
|
|
and INBOUND_NUMBER LIKE '%${inboundNumber}%'
|
|
and INBOUND_NUMBER LIKE '%${inboundNumber}%'
|
|
</if>
|
|
</if>
|
|
- <if test="inboundDistributeId != null and inboundDistributeId != ''">
|
|
|
|
- and INBOUND_DISTRIBUTE_ID LIKE '%${inboundDistributeId}%'
|
|
|
|
- </if>
|
|
|
|
<if test="gridId != null">
|
|
<if test="gridId != null">
|
|
and GRID_ID = #{gridId}
|
|
and GRID_ID = #{gridId}
|
|
</if>
|
|
</if>
|
|
- <if test="inboundGroupId != null">
|
|
|
|
- and INBOUND_GROUP_ID = #{inboundGroupId}
|
|
|
|
- </if>
|
|
|
|
-
|
|
|
|
- <if test="personnelWorkshopid != null">
|
|
|
|
- and PERSONNEL_WORKSHOPID = #{personnelWorkshopid}
|
|
|
|
- </if>
|
|
|
|
- <if test="resultNumber != null">
|
|
|
|
- and RESULT_NUMBER = #{resultNumber}
|
|
|
|
- </if>
|
|
|
|
- <if test="isupload != null">
|
|
|
|
- and ISUPLOAD = #{isupload}
|
|
|
|
- </if>
|
|
|
|
<if test="resultStatus != null">
|
|
<if test="resultStatus != null">
|
|
and RESULT_STATUS = #{resultStatus}
|
|
and RESULT_STATUS = #{resultStatus}
|
|
</if>
|
|
</if>
|
|
@@ -179,46 +161,45 @@
|
|
<if test="personnelTeam != null and personnelTeam != ''">
|
|
<if test="personnelTeam != null and personnelTeam != ''">
|
|
and PERSONNEL_TEAM LIKE '%${personnelTeam}%'
|
|
and PERSONNEL_TEAM LIKE '%${personnelTeam}%'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="personnelWorkshopid != null">
|
|
|
|
+ and PERSONNEL_WORKSHOPID = #{personnelWorkshopid}
|
|
|
|
+ </if>
|
|
<if test="personnelShifts != null and personnelShifts != ''">
|
|
<if test="personnelShifts != null and personnelShifts != ''">
|
|
and PERSONNEL_SHIFTS LIKE '%${personnelShifts}%'
|
|
and PERSONNEL_SHIFTS LIKE '%${personnelShifts}%'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="inboundDistributeId != null">
|
|
|
|
+ and INBOUND_DISTRIBUTE_ID = #{inboundDistributeId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inboundGroupId != null">
|
|
|
|
+ and INBOUND_GROUP_ID = #{inboundGroupId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultNumber != null">
|
|
|
|
+ and RESULT_NUMBER = #{resultNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isupload != null">
|
|
|
|
+ and ISUPLOAD = #{isupload}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inboundOnlyValue != null">
|
|
|
|
+ and INBOUND_ONLY_VALUE = #{inboundOnlyValue}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
|
- delete from WMSP_INBOUND_RESULT
|
|
|
|
- where INBOUND_ID = #{inboundId,jdbcType=DECIMAL}
|
|
|
|
- </delete>
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
|
|
+ delete from WMSP_INBOUND_RESULT
|
|
|
|
+ where INBOUND_ID = #{inboundId,jdbcType=DECIMAL}
|
|
|
|
+ </delete>
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
delete from WMSP_INBOUND_RESULT
|
|
delete from WMSP_INBOUND_RESULT
|
|
where 1!=1
|
|
where 1!=1
|
|
<if test="inboundType != null">
|
|
<if test="inboundType != null">
|
|
or INBOUND_TYPE = #{inboundType}
|
|
or INBOUND_TYPE = #{inboundType}
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
<if test="inboundNumber != null and inboundNumber != ''">
|
|
<if test="inboundNumber != null and inboundNumber != ''">
|
|
or INBOUND_NUMBER = #{inboundNumber}
|
|
or INBOUND_NUMBER = #{inboundNumber}
|
|
</if>
|
|
</if>
|
|
- <if test="inboundDistributeId != null and inboundDistributeId != ''">
|
|
|
|
- or INBOUND_DISTRIBUTE_ID = #{inboundDistributeId}
|
|
|
|
- </if>
|
|
|
|
-
|
|
|
|
<if test="gridId != null">
|
|
<if test="gridId != null">
|
|
or GRID_ID = #{gridId}
|
|
or GRID_ID = #{gridId}
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
- <if test="inboundGroupId != null">
|
|
|
|
- or INBOUND_GROUP_ID = #{inboundGroupId}
|
|
|
|
- </if>
|
|
|
|
-
|
|
|
|
- <if test="personnelWorkshopid != null">
|
|
|
|
- or PERSONNEL_WORKSHOPID = #{personnelWorkshopid}
|
|
|
|
- </if>
|
|
|
|
- <if test="resultNumber != null">
|
|
|
|
- or RESULT_NUMBER = #{resultNumber}
|
|
|
|
- </if>
|
|
|
|
- <if test="isupload != null">
|
|
|
|
- or ISUPLOAD = #{isupload}
|
|
|
|
- </if>
|
|
|
|
<if test="resultStatus != null">
|
|
<if test="resultStatus != null">
|
|
or RESULT_STATUS = #{resultStatus}
|
|
or RESULT_STATUS = #{resultStatus}
|
|
</if>
|
|
</if>
|
|
@@ -252,24 +233,46 @@
|
|
<if test="personnelTeam != null and personnelTeam != ''">
|
|
<if test="personnelTeam != null and personnelTeam != ''">
|
|
or PERSONNEL_TEAM = #{personnelTeam}
|
|
or PERSONNEL_TEAM = #{personnelTeam}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="personnelWorkshopid != null">
|
|
|
|
+ or PERSONNEL_WORKSHOPID = #{personnelWorkshopid}
|
|
|
|
+ </if>
|
|
<if test="personnelShifts != null and personnelShifts != ''">
|
|
<if test="personnelShifts != null and personnelShifts != ''">
|
|
or PERSONNEL_SHIFTS = #{personnelShifts}
|
|
or PERSONNEL_SHIFTS = #{personnelShifts}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="inboundDistributeId != null">
|
|
|
|
+ or INBOUND_DISTRIBUTE_ID = #{inboundDistributeId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inboundGroupId != null">
|
|
|
|
+ or INBOUND_GROUP_ID = #{inboundGroupId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultNumber != null">
|
|
|
|
+ or RESULT_NUMBER = #{resultNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isupload != null">
|
|
|
|
+ or ISUPLOAD = #{isupload}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inboundOnlyValue != null">
|
|
|
|
+ or INBOUND_ONLY_VALUE = #{inboundOnlyValue}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.WmspInboundResult">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.WmspInboundResult">
|
|
- insert into WMSP_INBOUND_RESULT (INBOUND_ID, INBOUND_TYPE, INBOUND_NUMBER, INBOUND_DISTRIBUTE_ID,
|
|
|
|
- GRID_ID,INBOUND_GROUP_ID, PERSONNEL_WORKSHOPID,RESULT_NUMBER,ISUPLOAD,RESULT_STATUS, MATERIAL_ID,
|
|
|
|
- INBOUND_ISCOMPLETE, RESULT_DELETED, INBOUND_TIME,
|
|
|
|
- INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
|
|
- UPDATE_TIME, INSERT_UPDATE_REMARK, PERSONNEL_TEAM,
|
|
|
|
- PERSONNEL_SHIFTS)
|
|
|
|
- values (#{inboundId,jdbcType=DECIMAL}, #{inboundType,jdbcType=DECIMAL}, #{inboundNumber,jdbcType=VARCHAR},#{inboundDistributeId,jdbcType=DECIMAL},
|
|
|
|
- #{gridId,jdbcType=DECIMAL},#{inboundGroupId,jdbcType=DECIMAL},#{personnelWorkshopid,jdbcType=DECIMAL},#{resultNumber,jdbcType=DECIMAL},#{isupload,jdbcType=DECIMAL}, #{resultStatus,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL},
|
|
|
|
- #{inboundIscomplete,jdbcType=DECIMAL}, #{resultDeleted,jdbcType=DECIMAL}, #{inboundTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
- #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{personnelTeam,jdbcType=VARCHAR},
|
|
|
|
- #{personnelShifts,jdbcType=VARCHAR})
|
|
|
|
- </insert>
|
|
|
|
|
|
+ insert into WMSP_INBOUND_RESULT (INBOUND_ID, INBOUND_TYPE, INBOUND_NUMBER,
|
|
|
|
+ GRID_ID, RESULT_STATUS, MATERIAL_ID,
|
|
|
|
+ INBOUND_ISCOMPLETE, RESULT_DELETED, INBOUND_TIME,
|
|
|
|
+ INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
|
|
+ UPDATE_TIME, INSERT_UPDATE_REMARK, PERSONNEL_TEAM,
|
|
|
|
+ PERSONNEL_WORKSHOPID, PERSONNEL_SHIFTS, INBOUND_DISTRIBUTE_ID,
|
|
|
|
+ INBOUND_GROUP_ID, RESULT_NUMBER, ISUPLOAD,
|
|
|
|
+ INBOUND_ONLY_VALUE)
|
|
|
|
+ values (#{inboundId,jdbcType=DECIMAL}, #{inboundType,jdbcType=DECIMAL}, #{inboundNumber,jdbcType=VARCHAR},
|
|
|
|
+ #{gridId,jdbcType=DECIMAL}, #{resultStatus,jdbcType=DECIMAL}, #{materialId,jdbcType=DECIMAL},
|
|
|
|
+ #{inboundIscomplete,jdbcType=DECIMAL}, #{resultDeleted,jdbcType=DECIMAL}, #{inboundTime,jdbcType=TIMESTAMP},
|
|
|
|
+ #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{personnelTeam,jdbcType=VARCHAR},
|
|
|
|
+ #{personnelWorkshopid,jdbcType=DECIMAL}, #{personnelShifts,jdbcType=VARCHAR}, #{inboundDistributeId,jdbcType=DECIMAL},
|
|
|
|
+ #{inboundGroupId,jdbcType=DECIMAL}, #{resultNumber,jdbcType=DECIMAL}, #{isupload,jdbcType=DECIMAL},
|
|
|
|
+ #{inboundOnlyValue,jdbcType=DECIMAL})
|
|
|
|
+ </insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.WmspInboundResult">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.WmspInboundResult">
|
|
insert into WMSP_INBOUND_RESULT
|
|
insert into WMSP_INBOUND_RESULT
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -282,26 +285,9 @@
|
|
<if test="inboundNumber != null">
|
|
<if test="inboundNumber != null">
|
|
INBOUND_NUMBER,
|
|
INBOUND_NUMBER,
|
|
</if>
|
|
</if>
|
|
- <if test="inboundDistributeId != null">
|
|
|
|
- INBOUND_DISTRIBUTE_ID,
|
|
|
|
- </if>
|
|
|
|
-
|
|
|
|
<if test="gridId != null">
|
|
<if test="gridId != null">
|
|
GRID_ID,
|
|
GRID_ID,
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
- <if test="inboundGroupId != null">
|
|
|
|
- INBOUND_GROUP_ID,
|
|
|
|
- </if>
|
|
|
|
- <if test="personnelWorkshopid != null">
|
|
|
|
- PERSONNEL_WORKSHOPID,
|
|
|
|
- </if>
|
|
|
|
- <if test="resultNumber != null">
|
|
|
|
- RESULT_NUMBER,
|
|
|
|
- </if>
|
|
|
|
- <if test="isupload != null">
|
|
|
|
- ISUPLOAD,
|
|
|
|
- </if>
|
|
|
|
<if test="resultStatus != null">
|
|
<if test="resultStatus != null">
|
|
RESULT_STATUS,
|
|
RESULT_STATUS,
|
|
</if>
|
|
</if>
|
|
@@ -335,9 +321,27 @@
|
|
<if test="personnelTeam != null">
|
|
<if test="personnelTeam != null">
|
|
PERSONNEL_TEAM,
|
|
PERSONNEL_TEAM,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="personnelWorkshopid != null">
|
|
|
|
+ PERSONNEL_WORKSHOPID,
|
|
|
|
+ </if>
|
|
<if test="personnelShifts != null">
|
|
<if test="personnelShifts != null">
|
|
PERSONNEL_SHIFTS,
|
|
PERSONNEL_SHIFTS,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="inboundDistributeId != null">
|
|
|
|
+ INBOUND_DISTRIBUTE_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inboundGroupId != null">
|
|
|
|
+ INBOUND_GROUP_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultNumber != null">
|
|
|
|
+ RESULT_NUMBER,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isupload != null">
|
|
|
|
+ ISUPLOAD,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inboundOnlyValue != null">
|
|
|
|
+ INBOUND_ONLY_VALUE,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="inboundId != null">
|
|
<if test="inboundId != null">
|
|
@@ -349,26 +353,9 @@
|
|
<if test="inboundNumber != null">
|
|
<if test="inboundNumber != null">
|
|
#{inboundNumber,jdbcType=VARCHAR},
|
|
#{inboundNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="inboundDistributeId != null">
|
|
|
|
- #{inboundDistributeId,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
-
|
|
|
|
<if test="gridId != null">
|
|
<if test="gridId != null">
|
|
#{gridId,jdbcType=DECIMAL},
|
|
#{gridId,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
- <if test="inboundGroupId != null">
|
|
|
|
- #{inboundGroupId,jdbcType=DECIMAL},
|
|
|
|
- </if>
|
|
|
|
- <if test="personnelWorkshopid != null">
|
|
|
|
- #{personnelWorkshopid,jdbcType=DECIMAL},
|
|
|
|
- </if>
|
|
|
|
- <if test="resultNumber != null">
|
|
|
|
- #{resultNumber,jdbcType=DECIMAL},
|
|
|
|
- </if>
|
|
|
|
- <if test="isupload != null">
|
|
|
|
- #{isupload,jdbcType=DECIMAL},
|
|
|
|
- </if>
|
|
|
|
<if test="resultStatus != null">
|
|
<if test="resultStatus != null">
|
|
#{resultStatus,jdbcType=DECIMAL},
|
|
#{resultStatus,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
@@ -402,36 +389,54 @@
|
|
<if test="personnelTeam != null">
|
|
<if test="personnelTeam != null">
|
|
#{personnelTeam,jdbcType=VARCHAR},
|
|
#{personnelTeam,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="personnelWorkshopid != null">
|
|
|
|
+ #{personnelWorkshopid,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
<if test="personnelShifts != null">
|
|
<if test="personnelShifts != null">
|
|
#{personnelShifts,jdbcType=VARCHAR},
|
|
#{personnelShifts,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="inboundDistributeId != null">
|
|
|
|
+ #{inboundDistributeId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inboundGroupId != null">
|
|
|
|
+ #{inboundGroupId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultNumber != null">
|
|
|
|
+ #{resultNumber,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isupload != null">
|
|
|
|
+ #{isupload,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inboundOnlyValue != null">
|
|
|
|
+ #{inboundOnlyValue,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.WmspInboundResult">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.WmspInboundResult">
|
|
- update WMSP_INBOUND_RESULT
|
|
|
|
- set INBOUND_TYPE = #{inboundType,jdbcType=DECIMAL},
|
|
|
|
- INBOUND_NUMBER = #{inboundNumber,jdbcType=VARCHAR},
|
|
|
|
- INBOUND_DISTRIBUTE_ID = #{inboundDistributeId,jdbcType=DECIMAL},
|
|
|
|
- GRID_ID = #{gridId,jdbcType=DECIMAL},
|
|
|
|
- PERSONNEL_WORKSHOPID = #{personnelWorkshopid,jdbcType=DECIMAL},
|
|
|
|
- RESULT_NUMBER = #{resultNumber,jdbcType=DECIMAL},
|
|
|
|
- ISUPLOAD = #{isupload,jdbcType=DECIMAL},
|
|
|
|
- INBOUND_GROUP_ID = #{inboundGroupId,jdbcType=DECIMAL},
|
|
|
|
- RESULT_STATUS = #{resultStatus,jdbcType=DECIMAL},
|
|
|
|
- MATERIAL_ID = #{materialId,jdbcType=DECIMAL},
|
|
|
|
- INBOUND_ISCOMPLETE = #{inboundIscomplete,jdbcType=DECIMAL},
|
|
|
|
- RESULT_DELETED = #{resultDeleted,jdbcType=DECIMAL},
|
|
|
|
- INBOUND_TIME = #{inboundTime,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},
|
|
|
|
- PERSONNEL_TEAM = #{personnelTeam,jdbcType=VARCHAR},
|
|
|
|
-
|
|
|
|
- PERSONNEL_SHIFTS = #{personnelShifts,jdbcType=VARCHAR}
|
|
|
|
- where INBOUND_ID = #{inboundId,jdbcType=DECIMAL}
|
|
|
|
- </update>
|
|
|
|
|
|
+ update WMSP_INBOUND_RESULT
|
|
|
|
+ set INBOUND_TYPE = #{inboundType,jdbcType=DECIMAL},
|
|
|
|
+ INBOUND_NUMBER = #{inboundNumber,jdbcType=VARCHAR},
|
|
|
|
+ GRID_ID = #{gridId,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_STATUS = #{resultStatus,jdbcType=DECIMAL},
|
|
|
|
+ MATERIAL_ID = #{materialId,jdbcType=DECIMAL},
|
|
|
|
+ INBOUND_ISCOMPLETE = #{inboundIscomplete,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_DELETED = #{resultDeleted,jdbcType=DECIMAL},
|
|
|
|
+ INBOUND_TIME = #{inboundTime,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},
|
|
|
|
+ PERSONNEL_TEAM = #{personnelTeam,jdbcType=VARCHAR},
|
|
|
|
+ PERSONNEL_WORKSHOPID = #{personnelWorkshopid,jdbcType=DECIMAL},
|
|
|
|
+ PERSONNEL_SHIFTS = #{personnelShifts,jdbcType=VARCHAR},
|
|
|
|
+ INBOUND_DISTRIBUTE_ID = #{inboundDistributeId,jdbcType=DECIMAL},
|
|
|
|
+ INBOUND_GROUP_ID = #{inboundGroupId,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_NUMBER = #{resultNumber,jdbcType=DECIMAL},
|
|
|
|
+ ISUPLOAD = #{isupload,jdbcType=DECIMAL},
|
|
|
|
+ INBOUND_ONLY_VALUE = #{inboundOnlyValue,jdbcType=DECIMAL}
|
|
|
|
+ where INBOUND_ID = #{inboundId,jdbcType=DECIMAL}
|
|
|
|
+ </update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.WmspInboundResult">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.WmspInboundResult">
|
|
update WMSP_INBOUND_RESULT
|
|
update WMSP_INBOUND_RESULT
|
|
<set>
|
|
<set>
|
|
@@ -441,26 +446,9 @@
|
|
<if test="inboundNumber != null">
|
|
<if test="inboundNumber != null">
|
|
INBOUND_NUMBER = #{inboundNumber,jdbcType=VARCHAR},
|
|
INBOUND_NUMBER = #{inboundNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="inboundDistributeId != null">
|
|
|
|
- INBOUND_DISTRIBUTE_ID = #{inboundDistributeId,jdbcType=DECIMAL},
|
|
|
|
- </if>
|
|
|
|
-
|
|
|
|
<if test="gridId != null">
|
|
<if test="gridId != null">
|
|
GRID_ID = #{gridId,jdbcType=DECIMAL},
|
|
GRID_ID = #{gridId,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
- <if test="inboundGroupId != null">
|
|
|
|
- INBOUND_GROUP_ID = #{inboundGroupId,jdbcType=DECIMAL},
|
|
|
|
- </if>
|
|
|
|
- <if test="personnelWorkshopid != null">
|
|
|
|
- PERSONNEL_WORKSHOPID = #{personnelWorkshopid,jdbcType=DECIMAL},
|
|
|
|
- </if>
|
|
|
|
- <if test="resultNumber != null">
|
|
|
|
- RESULT_NUMBER = #{resultNumber,jdbcType=DECIMAL},
|
|
|
|
- </if>
|
|
|
|
- <if test="isupload != null">
|
|
|
|
- ISUPLOAD = #{isupload,jdbcType=DECIMAL},
|
|
|
|
- </if>
|
|
|
|
<if test="resultStatus != null">
|
|
<if test="resultStatus != null">
|
|
RESULT_STATUS = #{resultStatus,jdbcType=DECIMAL},
|
|
RESULT_STATUS = #{resultStatus,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
@@ -494,14 +482,31 @@
|
|
<if test="personnelTeam != null">
|
|
<if test="personnelTeam != null">
|
|
PERSONNEL_TEAM = #{personnelTeam,jdbcType=VARCHAR},
|
|
PERSONNEL_TEAM = #{personnelTeam,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
|
|
+ <if test="personnelWorkshopid != null">
|
|
|
|
+ PERSONNEL_WORKSHOPID = #{personnelWorkshopid,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
<if test="personnelShifts != null">
|
|
<if test="personnelShifts != null">
|
|
PERSONNEL_SHIFTS = #{personnelShifts,jdbcType=VARCHAR},
|
|
PERSONNEL_SHIFTS = #{personnelShifts,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="inboundDistributeId != null">
|
|
|
|
+ INBOUND_DISTRIBUTE_ID = #{inboundDistributeId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inboundGroupId != null">
|
|
|
|
+ INBOUND_GROUP_ID = #{inboundGroupId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="resultNumber != null">
|
|
|
|
+ RESULT_NUMBER = #{resultNumber,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="isupload != null">
|
|
|
|
+ ISUPLOAD = #{isupload,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="inboundOnlyValue != null">
|
|
|
|
+ INBOUND_ONLY_VALUE = #{inboundOnlyValue,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where INBOUND_ID = #{inboundId,jdbcType=DECIMAL}
|
|
where INBOUND_ID = #{inboundId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
<include refid="select" />
|
|
<include refid="select" />
|
|
where INBOUND_ID = #{inboundId,jdbcType=DECIMAL}
|
|
where INBOUND_ID = #{inboundId,jdbcType=DECIMAL}
|
|
</select>
|
|
</select>
|
|
@@ -516,24 +521,28 @@
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
insert into WMSP_INBOUND_RESULT
|
|
insert into WMSP_INBOUND_RESULT
|
|
(INBOUND_ID,
|
|
(INBOUND_ID,
|
|
- INBOUND_TYPE, INBOUND_NUMBER, GRID_ID,INBOUND_GROUP_ID,PERSONNEL_WORKSHOPID,RESULT_NUMBER,ISUPLOAD,INBOUND_DISTRIBUTE_ID,
|
|
|
|
|
|
+ INBOUND_TYPE, INBOUND_NUMBER, GRID_ID,
|
|
RESULT_STATUS, MATERIAL_ID, INBOUND_ISCOMPLETE,
|
|
RESULT_STATUS, MATERIAL_ID, INBOUND_ISCOMPLETE,
|
|
RESULT_DELETED, INBOUND_TIME,
|
|
RESULT_DELETED, INBOUND_TIME,
|
|
INSERT_USERNAME, INSERT_TIME,
|
|
INSERT_USERNAME, INSERT_TIME,
|
|
UPDATE_USERNAME, UPDATE_TIME,
|
|
UPDATE_USERNAME, UPDATE_TIME,
|
|
INSERT_UPDATE_REMARK, PERSONNEL_TEAM,
|
|
INSERT_UPDATE_REMARK, PERSONNEL_TEAM,
|
|
- PERSONNEL_SHIFTS
|
|
|
|
|
|
+ PERSONNEL_WORKSHOPID, PERSONNEL_SHIFTS,
|
|
|
|
+ INBOUND_DISTRIBUTE_ID, INBOUND_GROUP_ID,
|
|
|
|
+ RESULT_NUMBER, ISUPLOAD, INBOUND_ONLY_VALUE
|
|
)
|
|
)
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
#{item.inboundId,jdbcType=DECIMAL},
|
|
#{item.inboundId,jdbcType=DECIMAL},
|
|
- #{item.inboundType,jdbcType=DECIMAL}, #{item.inboundNumber,jdbcType=VARCHAR}, #{item.inboundGroupId,jdbcType=DECIMAL}, #{item.gridId,jdbcType=DECIMAL}, #{item.personnelWorkshopid,jdbcType=DECIMAL}, #{item.resultNumber,jdbcType=DECIMAL}, #{item.isupload,jdbcType=DECIMAL} , #{item.inboundDistributeId,jdbcType=DECIMAL},
|
|
|
|
|
|
+ #{item.inboundType,jdbcType=DECIMAL}, #{item.inboundNumber,jdbcType=VARCHAR}, #{item.gridId,jdbcType=DECIMAL},
|
|
#{item.resultStatus,jdbcType=DECIMAL}, #{item.materialId,jdbcType=DECIMAL}, #{item.inboundIscomplete,jdbcType=DECIMAL},
|
|
#{item.resultStatus,jdbcType=DECIMAL}, #{item.materialId,jdbcType=DECIMAL}, #{item.inboundIscomplete,jdbcType=DECIMAL},
|
|
#{item.resultDeleted,jdbcType=DECIMAL}, #{item.inboundTime,jdbcType=TIMESTAMP},
|
|
#{item.resultDeleted,jdbcType=DECIMAL}, #{item.inboundTime,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.personnelTeam,jdbcType=VARCHAR},
|
|
#{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.personnelTeam,jdbcType=VARCHAR},
|
|
- #{item.personnelShifts,jdbcType=VARCHAR}
|
|
|
|
|
|
+ #{item.personnelWorkshopid,jdbcType=DECIMAL}, #{item.personnelShifts,jdbcType=VARCHAR},
|
|
|
|
+ #{item.inboundDistributeId,jdbcType=DECIMAL}, #{item.inboundGroupId,jdbcType=DECIMAL},
|
|
|
|
+ #{item.resultNumber,jdbcType=DECIMAL}, #{item.isupload,jdbcType=DECIMAL}, #{item.inboundOnlyValue,jdbcType=DECIMAL}
|
|
from dual
|
|
from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
@@ -552,31 +561,10 @@
|
|
<foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
<foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
when #{item.inboundId,jdbcType=DECIMAL} then #{item.inboundNumber,jdbcType=VARCHAR}
|
|
when #{item.inboundId,jdbcType=DECIMAL} then #{item.inboundNumber,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
- ,INBOUND_DISTRIBUTE_ID=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
|
|
- when #{item.inboundId,jdbcType=DECIMAL} then #{item.inboundDistributeId,jdbcType=VARCHAR}
|
|
|
|
- </foreach>
|
|
|
|
,GRID_ID=
|
|
,GRID_ID=
|
|
<foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
<foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
when #{item.inboundId,jdbcType=DECIMAL} then #{item.gridId,jdbcType=DECIMAL}
|
|
when #{item.inboundId,jdbcType=DECIMAL} then #{item.gridId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
-
|
|
|
|
- ,INBOUND_GROUP_ID=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
|
|
- when #{item.inboundId,jdbcType=DECIMAL} then #{item.inboundGroupId,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- ,PERSONNEL_WORKSHOPID=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
|
|
- when #{item.inboundId,jdbcType=DECIMAL} then #{item.personnelWorkshopid,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- ,RESULT_NUMBER=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
|
|
- when #{item.inboundId,jdbcType=DECIMAL} then #{item.resultNumber,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
- ,ISUPLOAD=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
|
|
- when #{item.inboundId,jdbcType=DECIMAL} then #{item.isupload,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
,RESULT_STATUS=
|
|
,RESULT_STATUS=
|
|
<foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
<foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
when #{item.inboundId,jdbcType=DECIMAL} then #{item.resultStatus,jdbcType=DECIMAL}
|
|
when #{item.inboundId,jdbcType=DECIMAL} then #{item.resultStatus,jdbcType=DECIMAL}
|
|
@@ -621,16 +609,39 @@
|
|
<foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
<foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
when #{item.inboundId,jdbcType=DECIMAL} then #{item.personnelTeam,jdbcType=VARCHAR}
|
|
when #{item.inboundId,jdbcType=DECIMAL} then #{item.personnelTeam,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,PERSONNEL_WORKSHOPID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
|
|
+ when #{item.inboundId,jdbcType=DECIMAL} then #{item.personnelWorkshopid,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
,PERSONNEL_SHIFTS=
|
|
,PERSONNEL_SHIFTS=
|
|
<foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
<foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
when #{item.inboundId,jdbcType=DECIMAL} then #{item.personnelShifts,jdbcType=VARCHAR}
|
|
when #{item.inboundId,jdbcType=DECIMAL} then #{item.personnelShifts,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,INBOUND_DISTRIBUTE_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
|
|
+ when #{item.inboundId,jdbcType=DECIMAL} then #{item.inboundDistributeId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INBOUND_GROUP_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
|
|
+ when #{item.inboundId,jdbcType=DECIMAL} then #{item.inboundGroupId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,RESULT_NUMBER=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
|
|
+ when #{item.inboundId,jdbcType=DECIMAL} then #{item.resultNumber,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,ISUPLOAD=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
|
|
+ when #{item.inboundId,jdbcType=DECIMAL} then #{item.isupload,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,INBOUND_ONLY_VALUE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case INBOUND_ID" separator=" ">
|
|
|
|
+ when #{item.inboundId,jdbcType=DECIMAL} then #{item.inboundOnlyValue,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
where INBOUND_ID in
|
|
where INBOUND_ID in
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
#{item.inboundId,jdbcType=DECIMAL}
|
|
#{item.inboundId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
-
|
|
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
delete from WMSP_INBOUND_RESULT
|
|
delete from WMSP_INBOUND_RESULT
|
|
where INBOUND_ID in
|
|
where INBOUND_ID in
|
|
@@ -675,7 +686,6 @@
|
|
AND wir.INBOUND_ISCOMPLETE != 2
|
|
AND wir.INBOUND_ISCOMPLETE != 2
|
|
AND wir.ISUPLOAD='0'
|
|
AND wir.ISUPLOAD='0'
|
|
AND rpg.WAREHOUSE_ID = #{warehouseId}
|
|
AND rpg.WAREHOUSE_ID = #{warehouseId}
|
|
- AND wgm.UPDATE_TIME IS NULL
|
|
|
|
<if test="oneDate != null">
|
|
<if test="oneDate != null">
|
|
and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= wir.inbound_time
|
|
and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= wir.inbound_time
|
|
</if>
|
|
</if>
|
|
@@ -948,7 +958,6 @@
|
|
where wir.inbound_type = 0
|
|
where wir.inbound_type = 0
|
|
and wir.result_deleted = 0
|
|
and wir.result_deleted = 0
|
|
and wir.INBOUND_ISCOMPLETE = 2
|
|
and wir.INBOUND_ISCOMPLETE = 2
|
|
- and wgm.UPDATE_TIME is null
|
|
|
|
and rpg.WAREHOUSE_ID = #{warehouseId}
|
|
and rpg.WAREHOUSE_ID = #{warehouseId}
|
|
order by wir.inbound_time desc
|
|
order by wir.inbound_time desc
|
|
)
|
|
)
|