| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.domain.dto.WorkChartAxis; |
| | | import com.zy.asrs.domain.vo.LocChartPie; |
| | | import com.zy.asrs.entity.ViewLocMapDto; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | "order by Min(wm.io_time) asc") |
| | | List<Map<String, Object>> queryPakOutRep(); |
| | | |
| | | //曲线图 |
| | | @Select("select ymd,SUM(sto_qty) inqty,SUM(ret_qty) outqty from asr_sta_inout_view " |
| | | + "where ymd>CONVERT(char(10), DATEADD(DAY,-12,GETDATE()), 120) group by ymd order by ymd") |
| | | public List<WorkChartAxis> getChartAxis(); |
| | | |
| | | @Select("select * from asr_loc_use_view") |
| | | LocChartPie getLocUseRate(); |
| | | |
| | |
| | | @Select("select count(1) as totalLoc from asr_loc_mast") |
| | | Integer getTotalLocByCrnId(); |
| | | |
| | | @Select("select distinct row1 from asr_loc_mast order by row1 asc") |
| | | List<Integer> getViewLocRowTotal(); |
| | | |
| | | @Select("select distinct lev1 from asr_loc_mast where row1=#{row1} order by lev1 desc") |
| | | List<String> getViewLocLevCount(@Param("row1") int row1); |
| | | |
| | | @Select("select distinct bay1 from asr_loc_mast where row1=#{row1} order by bay1") |
| | | List<String> getViewLocBayCount(@Param("row1") int row1); |
| | | |
| | | List<ViewLocMapDto> getViewLocBays(@Param("row1") int row1, @Param("lev1") int lev1); |
| | | |
| | | } |