|
@@ -10,6 +10,7 @@
|
|
<result column="INBOUND_GROUP_ID" jdbcType="DECIMAL" property="inboundGroupId" />
|
|
<result column="INBOUND_GROUP_ID" jdbcType="DECIMAL" property="inboundGroupId" />
|
|
<result column="PERSONNEL_WORKSHOPID" jdbcType="DECIMAL" property="personnelWorkshopid" />
|
|
<result column="PERSONNEL_WORKSHOPID" jdbcType="DECIMAL" property="personnelWorkshopid" />
|
|
<result column="RESULT_NUMBER" jdbcType="DECIMAL" property="resultNumber" />
|
|
<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,15 +23,17 @@
|
|
<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_SHIFTS" jdbcType="VARCHAR" property="personnelShifts" />
|
|
<result column="PERSONNEL_SHIFTS" jdbcType="VARCHAR" property="personnelShifts" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
</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, RESULT_STATUS, MATERIAL_ID, INBOUND_ISCOMPLETE,
|
|
|
|
|
|
+ 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,
|
|
RESULT_DELETED, INBOUND_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
INSERT_UPDATE_REMARK, PERSONNEL_TEAM,, PERSONNEL_SHIFTS
|
|
INSERT_UPDATE_REMARK, PERSONNEL_TEAM,, PERSONNEL_SHIFTS
|
|
</sql>
|
|
</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, t.RESULT_STATUS, t.MATERIAL_ID,
|
|
|
|
|
|
+ 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.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.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.PERSONNEL_TEAM, ,
|
|
t.PERSONNEL_SHIFTS
|
|
t.PERSONNEL_SHIFTS
|
|
@@ -71,6 +74,9 @@
|
|
<if test="resultNumber != null">
|
|
<if test="resultNumber != null">
|
|
and RESULT_NUMBER = #{resultNumber}
|
|
and RESULT_NUMBER = #{resultNumber}
|
|
</if>
|
|
</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>
|
|
@@ -137,6 +143,9 @@
|
|
<if test="resultNumber != null">
|
|
<if test="resultNumber != null">
|
|
and RESULT_NUMBER = #{resultNumber}
|
|
and RESULT_NUMBER = #{resultNumber}
|
|
</if>
|
|
</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>
|
|
@@ -207,6 +216,9 @@
|
|
<if test="resultNumber != null">
|
|
<if test="resultNumber != null">
|
|
or RESULT_NUMBER = #{resultNumber}
|
|
or RESULT_NUMBER = #{resultNumber}
|
|
</if>
|
|
</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>
|
|
@@ -246,13 +258,13 @@
|
|
</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,
|
|
insert into WMSP_INBOUND_RESULT (INBOUND_ID, INBOUND_TYPE, INBOUND_NUMBER, INBOUND_DISTRIBUTE_ID,
|
|
- GRID_ID,INBOUND_GROUP_ID, PERSONNEL_WORKSHOPID,RESULT_NUMBER,RESULT_STATUS, MATERIAL_ID,
|
|
|
|
|
|
+ GRID_ID,INBOUND_GROUP_ID, PERSONNEL_WORKSHOPID,RESULT_NUMBER,ISUPLOAD,RESULT_STATUS, MATERIAL_ID,
|
|
INBOUND_ISCOMPLETE, RESULT_DELETED, INBOUND_TIME,
|
|
INBOUND_ISCOMPLETE, RESULT_DELETED, INBOUND_TIME,
|
|
INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK, PERSONNEL_TEAM,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK, PERSONNEL_TEAM,
|
|
PERSONNEL_SHIFTS)
|
|
PERSONNEL_SHIFTS)
|
|
values (#{inboundId,jdbcType=DECIMAL}, #{inboundType,jdbcType=DECIMAL}, #{inboundNumber,jdbcType=VARCHAR},#{inboundDistributeId,jdbcType=DECIMAL},
|
|
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}, #{resultStatus,jdbcType=DECIMAL}, #{materialId,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},
|
|
#{inboundIscomplete,jdbcType=DECIMAL}, #{resultDeleted,jdbcType=DECIMAL}, #{inboundTime,jdbcType=TIMESTAMP},
|
|
#{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
|
|
#{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{personnelTeam,jdbcType=VARCHAR},
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{personnelTeam,jdbcType=VARCHAR},
|
|
@@ -287,7 +299,9 @@
|
|
<if test="resultNumber != null">
|
|
<if test="resultNumber != null">
|
|
RESULT_NUMBER,
|
|
RESULT_NUMBER,
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
|
|
+ <if test="isupload != null">
|
|
|
|
+ ISUPLOAD,
|
|
|
|
+ </if>
|
|
<if test="resultStatus != null">
|
|
<if test="resultStatus != null">
|
|
RESULT_STATUS,
|
|
RESULT_STATUS,
|
|
</if>
|
|
</if>
|
|
@@ -352,7 +366,9 @@
|
|
<if test="resultNumber != null">
|
|
<if test="resultNumber != null">
|
|
#{resultNumber,jdbcType=DECIMAL},
|
|
#{resultNumber,jdbcType=DECIMAL},
|
|
</if>
|
|
</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>
|
|
@@ -399,6 +415,7 @@
|
|
GRID_ID = #{gridId,jdbcType=DECIMAL},
|
|
GRID_ID = #{gridId,jdbcType=DECIMAL},
|
|
PERSONNEL_WORKSHOPID = #{personnelWorkshopid,jdbcType=DECIMAL},
|
|
PERSONNEL_WORKSHOPID = #{personnelWorkshopid,jdbcType=DECIMAL},
|
|
RESULT_NUMBER = #{resultNumber,jdbcType=DECIMAL},
|
|
RESULT_NUMBER = #{resultNumber,jdbcType=DECIMAL},
|
|
|
|
+ ISUPLOAD = #{isupload,jdbcType=DECIMAL},
|
|
INBOUND_GROUP_ID = #{inboundGroupId,jdbcType=DECIMAL},
|
|
INBOUND_GROUP_ID = #{inboundGroupId,jdbcType=DECIMAL},
|
|
RESULT_STATUS = #{resultStatus,jdbcType=DECIMAL},
|
|
RESULT_STATUS = #{resultStatus,jdbcType=DECIMAL},
|
|
MATERIAL_ID = #{materialId,jdbcType=DECIMAL},
|
|
MATERIAL_ID = #{materialId,jdbcType=DECIMAL},
|
|
@@ -441,6 +458,9 @@
|
|
<if test="resultNumber != null">
|
|
<if test="resultNumber != null">
|
|
RESULT_NUMBER = #{resultNumber,jdbcType=DECIMAL},
|
|
RESULT_NUMBER = #{resultNumber,jdbcType=DECIMAL},
|
|
</if>
|
|
</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>
|
|
@@ -496,7 +516,7 @@
|
|
<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,INBOUND_DISTRIBUTE_ID,
|
|
|
|
|
|
+ INBOUND_TYPE, INBOUND_NUMBER, GRID_ID,INBOUND_GROUP_ID,PERSONNEL_WORKSHOPID,RESULT_NUMBER,ISUPLOAD,INBOUND_DISTRIBUTE_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,
|
|
@@ -507,7 +527,7 @@
|
|
( <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.inboundDistributeId,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.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},
|
|
@@ -553,7 +573,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.resultNumber,jdbcType=DECIMAL}
|
|
when #{item.inboundId,jdbcType=DECIMAL} then #{item.resultNumber,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</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}
|
|
@@ -650,6 +673,7 @@
|
|
wir.inbound_type = 0
|
|
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 wir.ISUPLOAD='0'
|
|
AND rpg.WAREHOUSE_ID = #{warehouseId}
|
|
AND rpg.WAREHOUSE_ID = #{warehouseId}
|
|
AND wgm.UPDATE_TIME IS NULL
|
|
AND wgm.UPDATE_TIME IS NULL
|
|
<if test="oneDate != null">
|
|
<if test="oneDate != null">
|
|
@@ -1509,7 +1533,9 @@
|
|
where rms.material_id=(
|
|
where rms.material_id=(
|
|
select distinct rms2.material_id from rms_material_steel rms2
|
|
select distinct rms2.material_id from rms_material_steel rms2
|
|
where material_steel_id =#{materialId}
|
|
where material_steel_id =#{materialId}
|
|
- ) and INBOUND_ISCOMPLETE='1' and wgm.deleted ='0' and to_char(wir.insert_time,'YYYY-MM-DD')=TO_CHAR(SYSDATE,'YYYY-MM-DD')
|
|
|
|
|
|
+ )
|
|
|
|
+ and ( select distinct wosr.INBOUND_RESULT_ID from WMSP_OUTBOUND_SCAN_RESULT wosr where wosr.INBOUND_RESULT_ID =wir.INBOUND_ID ) is null
|
|
|
|
+ and INBOUND_ISCOMPLETE='1' and wir.ISUPLOAD='0' and wgm.deleted ='0' and to_char(wir.insert_time,'YYYY-MM-DD')=TO_CHAR(SYSDATE,'YYYY-MM-DD')
|
|
order by wir.insert_time desc
|
|
order by wir.insert_time desc
|
|
) where Rownum='1'
|
|
) where Rownum='1'
|
|
)
|
|
)
|