|  |  |  | 
|---|
|  |  |  | package com.zy.asrs.mapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.zy.asrs.domain.vo.LocChartPie; | 
|---|
|  |  |  | import com.zy.asrs.domain.dto.LocChartPie; | 
|---|
|  |  |  | import com.zy.asrs.domain.dto.WorkChartAxis; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Mapper; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Select; | 
|---|
|  |  |  | import org.springframework.stereotype.Repository; | 
|---|
|  |  |  | 
|---|
|  |  |  | @Mapper | 
|---|
|  |  |  | @Repository | 
|---|
|  |  |  | public interface ReportQueryMapper { | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Select("select \n" + | 
|---|
|  |  |  | "Min(wm.io_time) as node,\n" + | 
|---|
|  |  |  | 
|---|
|  |  |  | "order by Min(wm.io_time) asc\n") | 
|---|
|  |  |  | List<Map<String, Object>> queryPakinRep(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //饼状图 | 
|---|
|  |  |  | @Select("select * from asr_loc_use_view") | 
|---|
|  |  |  | LocChartPie getLocUseRate(); | 
|---|
|  |  |  | public LocChartPie getLocUseRate(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Select("select count(1) as totalWrk from asr_wrk_mast_log where crn_no = #{crnNo}") | 
|---|
|  |  |  | Integer getTotalWrkByCrnId(Integer crnNo); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Select("select count(1) as totalLoc from asr_loc_mast") | 
|---|
|  |  |  | Integer getTotalLocByCrnId(); | 
|---|
|  |  |  | //曲线图 | 
|---|
|  |  |  | @Select("select ymd,SUM(sto_qty) inqty,SUM(ret_qty) outqty from asr_sta_inout_view " | 
|---|
|  |  |  | + "where ymd>DATE_FORMAT(NOW(),'%Y-%m-%d') group by ymd order by ymd") | 
|---|
|  |  |  | public List<WorkChartAxis> getChartAxis(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|