package com.zy.asrs.mapper; import com.baomidou.mybatisplus.mapper.BaseMapper; import com.zy.asrs.entity.AgvWrkMast; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.springframework.stereotype.Repository; import java.util.List; @Mapper @Repository public interface AgvWrkMastMapper extends BaseMapper { List selectToBeCompleteData(); List selectToBeHistoryData(); @Select("select count(1) from agv_wrk_mast where 1=1 and io_type = #{ioType} and sta_no = #{staNo}") int selectWrkMastBareBoardStaNo(Integer ioType, Integer staNo); List selectWrkMastWrkDetlMatnrBatch(@Param("ioType") Integer ioType, @Param("matnr") String matnr, @Param("batch") String batch, @Param("grade") String grade, @Param("crnNo") Integer crnNo); @Insert("insert into agv_wrk_mast_log select * from agv_wrk_mast where wrk_no=#{workNo}") int saveWrkMastLog(Integer workNo); List selectToShuttleTask(); List selectToShuttleOutTask(); @Insert("insert into agv_wrk_detl_log select * from agv_wrk_detl where wrk_no=#{workNo}") int saveWrkDetlLog(Integer workNo); }