src/main/resources/mapper/LocMastMapper.xml
@@ -215,5 +215,13 @@ #{item} </foreach> </select> <select id="selectNotFull" resultType="com.zy.asrs.entity.LocMast"> SELECT TOP 1 * FROM asr_loc_mast WHERE barcode IN (SELECT zpallet FROM asr_loc_detl ald INNER JOIN man_mat mt ON ald.matnr = mt.matnr AND ald.supp_code = mt.supp_code WHERE mt.loc_type =#{locType} AND area_id = #{id} GROUP BY zpallet HAVING COUNT ( * ) < 2) ORDER BY loc_no, modi_time ASC </select> </mapper>