@ -3,7 +3,7 @@
<mapper namespace= "com.letian.modules.production.dao.PalletMapper" >
<mapper namespace= "com.letian.modules.production.dao.PalletMapper" >
<select id= "getPalletData" resultType= "com.letian.modules.production.entity.PalletListData" >
<select id= "getPalletData" resultType= "com.letian.modules.production.entity.PalletListData" >
SELECT top 5 000 id,site,pallet_no,pallet_desc,status,virtual_flag,area,current_location,created_date,created_by,update_date,update_by,
SELECT top 2 000 id,site,pallet_no,pallet_desc,status,virtual_flag,area,current_location,created_date,created_by,update_date,update_by,
version from pallet_list
version from pallet_list
<where >
<where >
<if test= "status != null and status != ''" >
<if test= "status != null and status != ''" >
@ -22,7 +22,7 @@
AND created_date>#{date2}
AND created_date>#{date2}
</if>
</if>
</where>
</where>
order By created_date DESC
order By pallet_no DESC
</select>
</select>
<insert id= "savePallet" parameterType= "com.letian.modules.production.entity.PalletListData" >
<insert id= "savePallet" parameterType= "com.letian.modules.production.entity.PalletListData" >
@ -184,6 +184,12 @@
<update id= "updateQtyReported" >
<update id= "updateQtyReported" >
update SOScheduledRouting set QtyReported=QtyReported+1 where Site =#{site} and OrderNo=#{orderNo} and S_ScheduledDate=#{orderDate} and S_ShiftNo=#{shiftId}
update SOScheduledRouting set QtyReported=QtyReported+1 where Site =#{site} and OrderNo=#{orderNo} and S_ScheduledDate=#{orderDate} and S_ShiftNo=#{shiftId}
</update>
</update>
<update id= "updateSOSdelFlag" >
update SOScheduledRouting set ClosedFlag='Y',Closedby=#{userId},ClosedDate=GetDate() where Site =#{site} and OrderNo=#{orderNo} and S_ScheduledDate=#{orderDate} and S_ShiftNo=#{shiftId}
</update>
<select id= "getSOScheduleData" resultType= "SOScheduledRoutingData" >
select top 1 QtyReported,QtyRequired,SeqNo,S_WorkCenterNo,S_ResourceID from SOScheduledRouting where Site =#{site} and OrderNo=#{orderNo} and S_ScheduledDate=#{orderDate} and S_ShiftNo=#{shiftId}
</select>
<select id= "getNotifyHeaderData" resultType= "com.letian.modules.pda.entity.NotifyHeaderOutData" >
<select id= "getNotifyHeaderData" resultType= "com.letian.modules.pda.entity.NotifyHeaderOutData" >
SELECT pickupStatus from CODelNotifyHeader where Site=#{site} and DelNotifyNo=#{delNotifyNo}
SELECT pickupStatus from CODelNotifyHeader where Site=#{site} and DelNotifyNo=#{delNotifyNo}
</select>
</select>
@ -191,4 +197,8 @@
<update id= "finishPreparation" >
<update id= "finishPreparation" >
update CODelNotifyHeader set pickupStatus='备货完成',Pickupdate=GetDate(),Pickupby=#{username} where Site =#{site} and DelNotifyNo=#{delNotifyNo}
update CODelNotifyHeader set pickupStatus='备货完成',Pickupdate=GetDate(),Pickupby=#{username} where Site =#{site} and DelNotifyNo=#{delNotifyNo}
</update>
</update>
<delete id= "deleteSOSList" >
delete from SOScheduledList where Site=#{site} and WorkCenterNo=#{workCenterNo} and ResourceID=#{resourceId} and LinkedSeqNo=#{seqNo}
</delete>
</mapper>
</mapper>