sgj
2026-02-13 1cd2e610fdbd581f609e002e738b0e5cea97ad40
fzzy-igdss-view/src/main/java/com/fzzy/igds/ReportInoutPR.java
@@ -15,7 +15,9 @@
import com.ruoyi.common.utils.StringUtils;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.text.DecimalFormat;
import java.util.*;
/**
@@ -51,20 +53,20 @@
        result.put("deptId", deptId);
        //获取分库编码对应的分库名称
        String deptName = "";
        SysDept subDept = sysDeptService.getCacheDept(null, ContextUtil.subDeptId(null));
        if (null != subDept) {
            deptName = subDept.getDeptName();
        }
//        String deptName = "";
//        SysDept subDept = sysDeptService.getCacheDept(null, ContextUtil.subDeptId(null));
//        if (null != subDept) {
//            deptName = subDept.getDeptName();
//        }
        String title = "汇总表";
        if ("IN".equals(type)) {
            title= deptName + "入库明细汇总";
            title =  "入库明细汇总";
        }
        if ("OUT".equals(type)) {
            title= deptName + "出库明细汇总";
            title =  "出库明细汇总";
        }
        if ("STORE".equals(type)) {
            title= deptName + "库存汇总表";
            title =  "库存汇总表";
        }
        result.put("end", new Date());
@@ -78,7 +80,6 @@
        result.put("createTime", new Date());
        result.put("title", title);
        result.put("type", type);
        return result;
    }
@@ -98,12 +99,12 @@
        result.put("deptId", deptId);
        //获取分库编码对应的分库名称
        String deptName = "";
        SysDept subDept = sysDeptService.getCacheDept(null, ContextUtil.subDeptId(null));
        if (null != subDept) {
            deptName = subDept.getDeptName();
        }
        String title = deptName + "库存汇总表";
//        String deptName = "";
//        SysDept subDept = sysDeptService.getCacheDept(null, ContextUtil.subDeptId(null));
//        if (null != subDept) {
//            deptName = subDept.getDeptName();
//        }
        String title = "库存汇总表";
        result.put("end", new Date());
        Date start = DateUtil.getNewByDay(new Date(), -30);
@@ -115,7 +116,6 @@
        result.put("createUser", ContextUtil.getLoginUserName());
        result.put("createTime", new Date());
        result.put("title", title);
        return result;
    }