|
@@ -410,13 +410,17 @@
|
|
|
left join rms_material_steel rms on rms.MATERIAL_STEEL_ID=wir.material_Id
|
|
|
left join rms_material rm on rm.material_Id=rms.material_Id
|
|
|
where wir.INBOUND_DISTRIBUTE_ID in( select * from(
|
|
|
- select DISTRIBUTE_ID from WMSP_INBOUND_DISTRIBUTE where RESULT_STATUS=1 and PERSONNEL_WORKSHOPID=#{personnelWorkshopid} order by insert_time asc
|
|
|
+ select DISTRIBUTE_ID from WMSP_INBOUND_DISTRIBUTE where RESULT_STATUS=2 and PERSONNEL_WORKSHOPID=#{personnelWorkshopid} order by insert_time asc
|
|
|
) where rownum=1)
|
|
|
</select>
|
|
|
<select id="getDistributeStatus" resultType="java.lang.Integer">
|
|
|
select RESULT_STATUS from WMSP_INBOUND_DISTRIBUTE where DISTRIBUTE_ID=#{distributeId}
|
|
|
</select>
|
|
|
<update id="grabDistribute">
|
|
|
- update WMSP_INBOUND_DISTRIBUTE set DRIVING_ID=#{drivingId} , RESULT_STATUS='2' where DISTRIBUTE_ID=#{distributeId}
|
|
|
+ update WMSP_INBOUND_DISTRIBUTE set DRIVING_ID=#{drivingId} , RESULT_STATUS='3' where DISTRIBUTE_ID=#{distributeId}
|
|
|
+ </update>
|
|
|
+ <update id="updateDistributeStatus">
|
|
|
+ update WMSP_INBOUND_DISTRIBUTE
|
|
|
+ set RESULT_STATUS=2 where DISTRIBUTE_ID=#{distributeId}
|
|
|
</update>
|
|
|
</mapper>
|