燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-08-11 36e192f20803e0504b20ec068656a1ac579eeb5f
1
已修改5个文件
38 ■■■■ 文件已修改
src/main/java/com/yssh/entity/xls/MonthExcel.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/yssh/entity/xls/WeekExcel.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/yssh/service/XlsReportService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/month.xlsx 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/week.xlsx 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/yssh/entity/xls/MonthExcel.java
@@ -27,11 +27,6 @@
    private String ytb;
    /**
     * 月环比2
     */
    private String yhb2;
    /**
     * 累计
     */
    private String lj;
@@ -76,7 +71,6 @@
     * @param yhb  月环比
     * @param ytq  月同期
     * @param ytb  月同比
     * @param yhb2 月环比2
     * @param lj   累计
     * @param ljtb 累计同比
     * @param qyn  较前一年均值变化幅度
@@ -85,12 +79,11 @@
     * @param fx   风向
     * @param wd   温度
     */
    public MonthExcel(String sy, String yhb, String ytq, String ytb, String yhb2, String lj, String ljtb, String qyn, String ys, String fs, String fx, String wd) {
    public MonthExcel(String sy, String yhb, String ytq, String ytb, String lj, String ljtb, String qyn, String ys, String fs, String fx, String wd) {
        this.sy = sy;
        this.yhb = yhb;
        this.ytq = ytq;
        this.ytb = ytb;
        this.yhb2 = yhb2;
        this.lj = lj;
        this.ljtb = ljtb;
        this.qyn = qyn;
@@ -130,14 +123,6 @@
    public void setYtb(String ytb) {
        this.ytb = ytb;
    }
    public String getYhb2() {
        return yhb2;
    }
    public void setYhb2(String yhb2) {
        this.yhb2 = yhb2;
    }
    public String getLj() {
src/main/java/com/yssh/entity/xls/WeekExcel.java
@@ -27,11 +27,6 @@
    private String ztb;
    /**
     * 周环比2
     */
    private String zhb2;
    /**
     * 累计
     */
    private String lj;
@@ -76,7 +71,6 @@
     * @param zhb  周环比
     * @param ztq  周同期
     * @param ztb  周同比
     * @param zhb2 周环比2
     * @param lj   累计
     * @param ljtb 累计同比
     * @param syn  较上一年度变化幅度
@@ -85,12 +79,11 @@
     * @param fx   风向
     * @param wd   温度
     */
    public WeekExcel(String sz, String zhb, String ztq, String ztb, String zhb2, String lj, String ljtb, String syn, String ys, String fs, String fx, String wd) {
    public WeekExcel(String sz, String zhb, String ztq, String ztb, String lj, String ljtb, String syn, String ys, String fs, String fx, String wd) {
        this.sz = sz;
        this.zhb = zhb;
        this.ztq = ztq;
        this.ztb = ztb;
        this.zhb2 = zhb2;
        this.lj = lj;
        this.ljtb = ljtb;
        this.syn = syn;
@@ -130,14 +123,6 @@
    public void setZtb(String ztb) {
        this.ztb = ztb;
    }
    public String getZhb2() {
        return zhb2;
    }
    public void setZhb2(String zhb2) {
        this.zhb2 = zhb2;
    }
    public String getLj() {
src/main/java/com/yssh/service/XlsReportService.java
@@ -220,7 +220,7 @@
                List<SuYuan700> suList = mapper.selectSuYuanByStartAndEnd(id, name, yjz, intMon, intSun);
                String ys = getYs(suList);
                list.add(new WeekExcel("" + sz, zhb + "%", "", ztb + "%", "", "" + lj, "" + ljtb, "", ys, "", "", ""));
                list.add(new WeekExcel("" + sz, zhb + "%", "", ztb + "%", "" + lj, "" + ljtb, "", ys, "", "", ""));
            }
            saveResult("week", sun, list);
        } catch (Exception ex) {
@@ -229,7 +229,7 @@
    }
    /**
     * 创建月报:new MonthExcel("AI-" + (i < 10 ? "0" : "") + i, "yhb", "ytq", "ytb", "yhb2", "lj", "ljtb", "qyn", "ys", "fs", "fx", "°c");
     * 创建月报:new MonthExcel("AI-" + (i < 10 ? "0" : "") + i, "yhb", "ytq", "ytb", "lj", "ljtb", "qyn", "ys", "fs", "fx", "°c");
     */
    public void createMonthReport(Date date) {
        try {
src/main/resources/templates/month.xlsx
Binary files differ
src/main/resources/templates/week.xlsx
Binary files differ