自动化立体仓库 - WMS系统
野心家
2024-12-23 fffcf8f632eb551f11d018184547ce01dcc4907f
src/main/java/com/zy/asrs/mapper/WrkMastMapper.java
@@ -2,8 +2,9 @@
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zy.asrs.entity.WrkMast;
import com.zy.asrs.entity.result.InOutCountDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@@ -12,7 +13,14 @@
@Repository
public interface WrkMastMapper extends BaseMapper<WrkMast> {
    @Select("select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no")
//    @Select("select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no")
    List<WrkMast> selectToBeCompleteData();
    List<WrkMast> selectToBeHistoryData();
    Integer checkFinishByOrder(@Param("orderNo") String orderNo);
    List<InOutCountDto> selectTop100();
    List<WrkMast> selectSameMatnrs(@Param("matnr") String matnr, @Param("batch") String batch, @Param("grade") String grade);
}