src/main/java/com/zy/asrs/entity/param/DigitalTwin.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/zy/asrs/mapper/ReportQueryMapper.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/zy/asrs/entity/param/DigitalTwin.java
@@ -11,12 +11,18 @@ private int oqty;//空库位 private int uqty;//使用库位 private int xqty;//禁用库位 // private Integer artificialWarehousecount; //平库总量 // private Integer automatedWarehousecount; //立库总量 // private Integer artificialWarehouseF; //平库非空总量 // private Integer automatedWarehouseF; //立库非空总量 // private Integer artificialWarehouseO; //平库空总量 // private Integer automatedWarehouseO; //立库空总量 private Integer countL; //总量 private int fqtyL; //立库在库库位 private int oqtyL;//立库空库位 private int uqtyL;//立库使用库位 private int xqtyL;//立库禁用库位 private Integer countP; //总量 private int fqtyP; //平库在库库位 private int oqtyP;//平库空库位 private int uqtyP;//平库使用库位 private int xqtyP;//平库禁用库位 public DigitalTwin(){} public DigitalTwin(Integer count){ this.count=count; src/main/java/com/zy/asrs/mapper/ReportQueryMapper.java
@@ -64,6 +64,15 @@ //饼状图 @Select("select * from asr_loc_use_view") public LocChartPie getLocUseRate(); //立库数据 @Select("select * from asr_loc_use_view_L") public LocChartPie getLocUseRateL(); //平库数据 @Select("select * from asr_loc_use_view_P") public LocChartPie getLocUseRateP(); //曲线图 @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") src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
@@ -514,6 +514,8 @@ public DigitalTwin inventoryQuantity() { DigitalTwin digitalTwin = new DigitalTwin(); LocChartPie locUseRate = reportQueryMapper.getLocUseRate(); LocChartPie locUseRateL = reportQueryMapper.getLocUseRateL(); LocChartPie locUseRateP = reportQueryMapper.getLocUseRateP(); if(locUseRate!=null) { digitalTwin.setCount(locUseRate.getOqty()+locUseRate.getFqty()+locUseRate.getUqty()+locUseRate.getXqty()); digitalTwin.setOqty(locUseRate.getOqty()); @@ -521,6 +523,20 @@ digitalTwin.setUqty(locUseRate.getUqty()); digitalTwin.setXqty(locUseRate.getXqty()); } if(locUseRateL!=null) { digitalTwin.setCountL(locUseRateL.getOqty()+locUseRateL.getFqty()+locUseRateL.getUqty()+locUseRateL.getXqty()); digitalTwin.setOqtyL(locUseRateL.getOqty()); digitalTwin.setFqtyL(locUseRateL.getFqty()); digitalTwin.setUqtyL(locUseRateL.getUqty()); digitalTwin.setXqtyL(locUseRateL.getXqty()); } if (locUseRateP!=null){ digitalTwin.setCountP(locUseRateP.getOqty()+locUseRateP.getFqty()+locUseRateP.getUqty()+locUseRateP.getXqty()); digitalTwin.setOqtyP(locUseRateP.getOqty()); digitalTwin.setFqtyP(locUseRateP.getFqty()); digitalTwin.setUqtyP(locUseRateP.getUqty()); digitalTwin.setXqtyP(locUseRateP.getXqty()); } return digitalTwin; }