| | |
| | | import com.zy.asrs.entity.AgvBasDevp; |
| | | import org.apache.ibatis.annotations.Delete; |
| | | 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; |
| | | import java.util.Map; |
| | | |
| | | @Mapper |
| | | @Repository |
| | | public interface AgvBasDevpMapper extends BaseMapper<AgvBasDevp> { |
| | | |
| | | @Delete("delete from agv_bas_devp") |
| | | public void deleteAll(); |
| | | void deleteAll(); |
| | | |
| | | @Select("select dev_no from agv_bas_devp where loc_sts = 'O'") |
| | | List<String> getAvailableEmptyInSite(); |
| | | |
| | | @Select("select station_code from agv_bas_devp where cache_shelves = 'N' and in_enable = 'Y' group by station_code") |
| | | List<String> selectCacheShelvesStationCodeByFloor(@Param("floor") int floor); |
| | | |
| | | //@Select("select dev_no from agv_bas_devp where loc_type1 = #{locType} and out_enable = 'Y'") |
| | | @Select("SELECT\n" + |
| | | "\tdev_no \n" + |
| | | "FROM\n" + |
| | | "\tagv_bas_devp\n" + |
| | | "\tLEFT JOIN agv_wrk_mast ON agv_bas_devp.dev_no = agv_wrk_mast.loc_no \n" + |
| | | "WHERE\n" + |
| | | "\tagv_wrk_mast.loc_no IS NULL \n" + |
| | | "\tAND agv_bas_devp.loc_type1 = #{locType} \n" + |
| | | "\tAND agv_bas_devp.floor = #{floor} \n" + |
| | | "\tAND agv_bas_devp.out_enable = 'Y'") |
| | | List<String> selectCacheShelvesStationCodeByLocType(@Param("locType") Short locType, @Param("floor") int floor); |
| | | |
| | | @Select("SELECT\n" + |
| | | "\tbas.dev_no,\n" + |
| | | "\tCOUNT ( mast.loc_no ) AS num \n" + |
| | | "FROM\n" + |
| | | "\tagv_bas_devp bas\n" + |
| | | "\tLEFT JOIN agv_wrk_mast mast ON bas.dev_no = mast.loc_no \n" + |
| | | "WHERE\n" + |
| | | "\tbas.station_code = #{stationCode} AND bas.loc_sts != 'X' \n" + |
| | | "GROUP BY\n" + |
| | | "\tbas.dev_no \n" + |
| | | "ORDER BY\n" + |
| | | "\tnum") |
| | | List<Map<String,Object>> selectDevNoAndNumBystationCode(@Param("stationCode") String stationCode); |
| | | |
| | | @Select("select station_code from agv_bas_devp group by station_code") |
| | | List<String> selectAllStationCode(); |
| | | } |