|  |  |  | 
|---|
|  |  |  | @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(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Select("select count(1) from asr_wrk_mast where 1=1 and io_type = #{ioType} and sta_no = #{staNo}") | 
|---|
|  |  |  | int selectWrkMastBareBoardStaNo(Integer ioType,Integer staNo); | 
|---|
|  |  |  | int selectWrkMastBareBoardStaNo(Integer ioType, Integer staNo); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<WrkMast> selectWrkMastWrkDetlMatnrBatch(@Param("ioType") Integer ioType, @Param("matnr") String matnr , @Param("batch") String batch , @Param("grade") String grade , @Param("crnNo") Integer crnNo); | 
|---|
|  |  |  | List<WrkMast> selectWrkMastWrkDetlMatnrBatch(@Param("ioType") Integer ioType, @Param("matnr") String matnr, @Param("batch") String batch, @Param("grade") String grade, @Param("crnNo") Integer crnNo); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Insert("insert into asr_wrk_mast_log select * from asr_wrk_mast where wrk_no=#{workNo}") | 
|---|
|  |  |  | int saveWrkMastLog(Integer workNo); | 
|---|