| | |
| | | |
| | | List<Double> dbOverview = digitalTwinMapper.overview(areaId); |
| | | if (dbOverview != null && !dbOverview.isEmpty()){ |
| | | int total = (int)Math.round(dbOverview.get(0)); |
| | | total = Math.min(total, 40000); |
| | | DtOverviewVo dtOverviewVo = DtOverviewVo.builder() |
| | | .totalLoc((int)Math.round(dbOverview.get(0))) |
| | | .totalLoc(total) |
| | | .useLoc((int)Math.round(dbOverview.get(1))) |
| | | .remainingStock((int)Math.round(dbOverview.get(2))) |
| | | .todayWarehousing((int)Math.round(dbOverview.get(3))) |
| | |
| | | return dtInAndOutBoundVos; |
| | | } |
| | | /** |
| | | * 近期近期呆滞品信息,默认超过30天为呆滞品 |
| | | * 近期近期呆滞品信息,默认超过14天为呆滞品 |
| | | * |
| | | * @param areaId |
| | | * @param overDayNum |
| | |
| | | */ |
| | | public List<DtDetainMatVo> recentDetainMat(String areaId, Integer overDayNum, Integer pageIndex, Integer pageSize, String condition) { |
| | | |
| | | overDayNum = overDayNum == null ? 30 : overDayNum; |
| | | overDayNum = overDayNum == null ? 14 : overDayNum; |
| | | pageIndex = pageIndex == null ? 1 : pageIndex; |
| | | pageSize = pageSize == null ? 1000000 : pageSize; |
| | | |