|  |  | 
 |  |  | import com.baomidou.mybatisplus.mapper.BaseMapper; | 
 |  |  | import com.zy.asrs.entity.WrkMast; | 
 |  |  | import org.apache.ibatis.annotations.Mapper; | 
 |  |  | import org.apache.ibatis.annotations.Select; | 
 |  |  | import org.apache.ibatis.annotations.Param; | 
 |  |  | import org.apache.ibatis.annotations.Update; | 
 |  |  | import org.springframework.stereotype.Repository; | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  | 
 |  |  | @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(); | 
 |  |  |  | 
 |  |  |     WrkMast selectByLocNoOfPakin(@Param("locNo") String locNo); | 
 |  |  |  | 
 |  |  |     WrkMast selectBySourceLocNoOfPakout(@Param("sourceLocNo") String sourceLocNo); | 
 |  |  |  | 
 |  |  |     @Update("update asr_wrk_mast set ste_no = null where wrk_no = #{wrkNo}") | 
 |  |  |     int setSteEmpty(Integer wrkNo); | 
 |  |  |  | 
 |  |  |     WrkMast selectOfPick(@Param("wrkNo") Integer wrkNo, @Param("ioType") Integer ioType); | 
 |  |  |  | 
 |  |  | } |