自动化立体仓库 - WMS系统
src/main/java/com/zy/asrs/service/impl/DigitalTwinServiceImpl.java
@@ -49,10 +49,19 @@
     */
    public DtOverviewVo overview(String areaId) {
        if (areaId != null) {
            areaId = areaId.trim();
            if (areaId.isEmpty()) {
                areaId = null;
            }
        }
        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)))
@@ -189,7 +198,7 @@
        return dtInAndOutBoundVos;
    }
    /**
     * 近期近期呆滞品信息,默认超过30天为呆滞品
     * 近期近期呆滞品信息,默认超过14天为呆滞品
     *
     * @param areaId
     * @param overDayNum
@@ -200,7 +209,7 @@
     */
    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;