liurunyu
2024-10-15 34b2fc4c457397cef1f0cc920344c82a9f4a3bc9
Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV
1 文件已重命名
9个文件已修改
222 ■■■■ 已修改文件
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/excel/CellWriteHandler.java 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voPr/VoController.java 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voPr/VoIntake.java 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voSe/VoTradeDetails.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrControllerMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOnHourReportLastMapper.xml 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/user/UserCtrl.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/controller/ControllerCtrl.java 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/intake/IntakeCtrl.java 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/general/GeneralCtrl.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/excel/CellWriteHandler.java
File was renamed from pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/excel/ReportExportCellWriteHandler.java
@@ -21,17 +21,16 @@
/**
 * @author ZhuBaoMin
 * @date 2024-08-26 14:18
 * @LastEditTime 2024-08-26 14:18
 * @Description
 * @date 2024-10-12 11:40
 * @LastEditTime 2024-10-12 11:40
 * @Description 总账表格设置
 */
public class ReportExportCellWriteHandler extends AbstractVerticalCellStyleStrategy  {
public class CellWriteHandler extends AbstractVerticalCellStyleStrategy {
    private String title;
    PropertyPlaceholderHelper propertyPlaceholderHelper = new PropertyPlaceholderHelper("${", "}");
    public ReportExportCellWriteHandler(String title) {
    public CellWriteHandler(String title) {
        this.title = title;
    }
@@ -110,40 +109,10 @@
        if (cell.getRowIndex() >= 2){
            ((XSSFCellStyle) originCellStyle).setFillForegroundColor(new XSSFColor(new java.awt.Color(237, 237, 237), new DefaultIndexedColorMap()));
            // 票面总价
            //if (cell.getColumnIndex() == 10){
            //    int actualCellRowNum =  context.getCell().getRowIndex() + 1;
            //    context.getCell().setCellFormula("I" + actualCellRowNum +"+J" + actualCellRowNum);
            //    System.out.println("第" +   context.getCell().getRowIndex() + "行,第" +  context.getCell().getColumnIndex() + "票面总价写入公式完成");
            //}else if (cell.getColumnIndex() == 12){
            //    // 支付票款
            //    int actualCellRowNum =  context.getCell().getRowIndex() + 1;
            //    context.getCell().setCellFormula("K" + actualCellRowNum +"-L" + actualCellRowNum);
            //    System.out.println("第" +   context.getCell().getRowIndex() + "行,第" +  context.getCell().getColumnIndex() + "支付票款写入公式完成");
            //}else if (cell.getColumnIndex() == 15){
            //    // 支付总额
            //    int actualCellRowNum =  context.getCell().getRowIndex() + 1;
            //    context.getCell().setCellFormula("M" + actualCellRowNum +"+N" + actualCellRowNum +"+O" + actualCellRowNum);
            //    System.out.println("第" +   context.getCell().getRowIndex() + "行,第" +  context.getCell().getColumnIndex() + "支付总额写入公式完成");
            //}else if (cell.getColumnIndex() == 17){
            //    // 实际利润
            //    int actualCellRowNum =  context.getCell().getRowIndex() + 1;
            //    context.getCell().setCellFormula("L" + actualCellRowNum +"+Q" + actualCellRowNum);
            //    System.out.println("第" +   context.getCell().getRowIndex() + "行,第" +  context.getCell().getColumnIndex() + "实际利润写入公式完成");
            //}else if (cell.getColumnIndex() == 18){
            //    // 应收款
            //    int actualCellRowNum =  context.getCell().getRowIndex() + 1;
            //    context.getCell().setCellFormula("P" + actualCellRowNum +"+R" + actualCellRowNum);
            //    System.out.println("第" +   context.getCell().getRowIndex() + "行,第" +  context.getCell().getColumnIndex() + "应收款写入公式完成");
            //}else if (cell.getColumnIndex() == 20){
            //    // 未收款
            //    int actualCellRowNum =  context.getCell().getRowIndex() + 1;
            //    context.getCell().setCellFormula("S" + actualCellRowNum +"-T" + actualCellRowNum);
            //    System.out.println("第" +   context.getCell().getRowIndex() + "行,第" +  context.getCell().getColumnIndex() + "未收款写入公式完成");
            //}else if (cell.getColumnIndex() >= 2){
            //    ((XSSFCellStyle) originCellStyle).setFillForegroundColor(new XSSFColor(new java.awt.Color(189, 215, 238), new DefaultIndexedColorMap()));
            //}else if (cell.getColumnIndex() < 2){
            //    ((XSSFCellStyle) originCellStyle).setFillForegroundColor(new XSSFColor(new java.awt.Color(255, 192, 0), new DefaultIndexedColorMap()));
            //}
        }
@@ -169,5 +138,4 @@
        cellData.getWriteCellStyle().setWriteFont(headWriteFont);
    }
}
}
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voPr/VoController.java
@@ -1,12 +1,14 @@
package com.dy.pipIrrGlobal.voPr;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.dy.common.po.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@@ -16,39 +18,40 @@
 * @author ZhuBaoMin
 * @date 2023-12-29 10:27
 * @LastEditTime 2023-12-29 10:27
 * @Description
 * @Description 控制器视图对象
 */
@Data
@Schema(title = "控制器视图对象")
@JsonPropertyOrder({ "id", "rtuAddr", "intakeName", "bindNumber", "findDt", "isOnLine", "protocol", "remarks"})
@HeadRowHeight(30)
@ContentRowHeight(20)
public class VoController implements BaseEntity {
    private static final long serialVersionUID = 202401241704003L;
    @Schema(title = "ID")
    @ExcelProperty("ID")
    @ColumnWidth(10)
    @ExcelIgnore
    private String id;
    @Schema(title = "控制器地址")
    @ExcelProperty("控制器地址")
    @ExcelProperty(value = {"${title}", "阀控器地址"})
    @ColumnWidth(15)
    private String rtuAddr;
    @Schema(title = "绑定取水口")
    @ExcelProperty("绑定取水口")
    @ColumnWidth(10)
    @ExcelProperty(value = {"${title}", "取水口编号"})
    @ColumnWidth(15)
    private String intakeName;
    @Schema(title = "绑定次数")
    @ExcelProperty("绑定次数")
    @ExcelProperty(value = {"${title}", "绑定次数"})
    @ColumnWidth(10)
    private Integer bindNumber;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(title = "发现日期时间")
    @ExcelProperty("发现日期时间")
    @ColumnWidth(30)
    @ExcelProperty(value = {"${title}", "发现时间"})
    @ColumnWidth(20)
    private Date findDt;
//    @Schema(title = "在线状态")
@@ -59,16 +62,15 @@
    /**
     * 是否在线
     */
    @ExcelIgnore
    private Boolean isOnLine;
    @Schema(title = "通讯协议")
    @ExcelProperty("通讯协议")
    @ColumnWidth(10)
    @ExcelIgnore
    private String protocol;
    @Schema(title = "备注")
    @ExcelProperty("备注")
    @ColumnWidth(10)
    @ExcelIgnore
    private String remarks;
}
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voPr/VoIntake.java
@@ -3,8 +3,11 @@
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.dy.common.po.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@@ -19,62 +22,61 @@
 */
@Data
@Schema(title = "取水口视图对象")
@JsonPropertyOrder({ "intakeId", "intakeName", "divideId", "divideName", "blockId", "blockName", "isBind", "address", "lng", "lat", "operator", "operateDt", "remarks", "controllerId", "rtuAddr"})
@HeadRowHeight(30)
@ContentRowHeight(20)
public class VoIntake implements BaseEntity {
    private static final long serialVersionUID = 202312261049001L;
    @Schema(title = "取水口ID")
    @ExcelProperty("取水口ID")
    @ColumnWidth(10)
    @ExcelIgnore
    private String intakeId;
    @Schema(title = "取水口名称")
    @ExcelProperty("取水口名称")
    @ExcelProperty(value = {"${title}", "取水口编号"})
    @ColumnWidth(15)
    private String intakeName;
    @Schema(title = "分水房ID")
    @ExcelProperty("分水房ID")
    @ColumnWidth(10)
    @ExcelIgnore
    private String divideId;
    @Schema(title = "所属分水房")
    @ExcelProperty("所属分水房")
    @ExcelProperty(value = {"${title}", "所属分水房"})
    @ColumnWidth(15)
    private String divideName;
    @Schema(title = "片区ID")
    @ExcelProperty("片区ID")
    @ColumnWidth(15)
    @ExcelIgnore
    private String blockId;
    @Schema(title = "所属片区")
    @ExcelProperty("所属片区")
    @ExcelProperty(value = {"${title}", "所属片区"})
    @ColumnWidth(15)
    private String blockName;
    @Schema(title = "绑定设备")
    @ExcelProperty("绑定设备")
    @ColumnWidth(6)
    @ExcelProperty(value = {"${title}", "绑定设备"})
    @ColumnWidth(10)
    private String isBind;
    @Schema(title = "地址")
    @ExcelProperty("地址")
    @ColumnWidth(25)
    @ExcelProperty(value = {"${title}", "地址"})
    @ColumnWidth(30)
    private String address;
    @Schema(title = "经度")
    @ExcelProperty("经度")
    @ColumnWidth(25)
    @ExcelProperty(value = {"${title}", "经度"})
    @ColumnWidth(20)
    private String lng;
    @Schema(title = "纬度")
    @ExcelProperty("纬度")
    @ColumnWidth(25)
    @ExcelProperty(value = {"${title}", "纬度"})
    @ColumnWidth(20)
    private String lat;
    @Schema(title = "操作人")
    @ExcelProperty("操作人")
    @ExcelIgnore
    @ColumnWidth(25)
    private String operator;
@@ -85,17 +87,15 @@
    private Date operateDt;
    @Schema(title = "备注")
    @ExcelProperty("备注")
    @ColumnWidth(250)
    @ExcelIgnore
    private String remarks;
    @Schema(title = "控制器ID")
    @ExcelProperty("控制器ID")
    @ColumnWidth(15)
    @ExcelIgnore
    private String controllerId;
    @Schema(title = "控制器地址")
    @ExcelProperty("控制器地址")
    @ExcelProperty(value = {"${title}", "控制器地址"})
    @ColumnWidth(15)
    private String rtuAddr;
}
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/voSe/VoTradeDetails.java
@@ -31,6 +31,7 @@
    /**
     * 订单号
     */
    @ExcelProperty(value = {"${title}", "订单号"})
    @ColumnWidth(25)
    private String orderNumber;
@@ -45,19 +46,21 @@
     * 水卡编号
     */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    @ColumnWidth(15)
    private Long cardNum;
    @ExcelProperty(value = {"${title}", "水卡编号"})
    @ColumnWidth(20)
    private String cardNum;
    /**
     * 身份证号
     */
    @ExcelProperty(value = {"${title}", "身份证号"})
    @ColumnWidth(15)
    private String idCard;
    /**
     * 农户编号
     */
    //@ExcelIgnore
    @ExcelProperty(value = {"${title}", "农户编号"})
    @ColumnWidth(15)
    private String clientNum;
@@ -113,6 +116,7 @@
    /**
     * 余额
     */
    @ExcelProperty(value = {"${title}", "余额"})
    @ColumnWidth(15)
    private Double money;
@@ -141,12 +145,14 @@
    /**
     * 收银员姓名
     */
    @ExcelProperty(value = {"${title}", "收银员姓名"})
    @ColumnWidth(15)
    private String cashierName;
    /**
     * 卡片状态
     */
    @ExcelProperty(value = {"${title}", "卡片状态"})
    @ColumnWidth(15)
    private String cardState;
@@ -154,7 +160,7 @@
     * 村庄名称
     */
    @ExcelProperty(value = {"${title}", "村庄名称"})
    @ColumnWidth(20)
    @ColumnWidth(35)
    private String districtTitle;
    /**
pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrControllerMapper.xml
@@ -217,7 +217,7 @@
        con.protocol,
        inta.remarks,
        rtus.isOnLine,
        (SELECT COUNT(*) FROM pr_intake_controller WHERE controllerId = con.id AND intakeId = inta.id AND operateType = 1) AS bindNumber,
        (SELECT COUNT(*) FROM pr_intake_controller WHERE controllerId = con.id AND operateType = 1) AS bindNumber,
        con.findDt AS findDt
    FROM pr_controller con
        LEFT JOIN pr_intake_controller ic ON ic.controllerId = con.id
pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmOnHourReportLastMapper.xml
@@ -428,9 +428,9 @@
        <if test="timeStart != null and timeStart != '' ">
            OR rohrl.rtu_dt  &lt; #{timeStart}
        </if>
        <if test="timeStop != null and timeStop != '' ">
            OR rohrl.rtu_dt &gt; #{timeStop}
        </if>
<!--        <if test="timeStop != null and timeStop != '' ">-->
<!--            OR rohrl.rtu_dt &gt; #{timeStop}-->
<!--        </if>-->
        ORDER BY rtu_dt ASC
    </select>
    <!--获取最近未报数的取水口-->
@@ -446,9 +446,9 @@
        <if test="timeStart != null">
            OR rohrl.rtu_dt  &lt; #{timeStart}
        </if>
        <if test="timeStop != null">
            OR rohrl.rtu_dt &gt; #{timeStop}
        </if>
<!--        <if test="timeStop != null">-->
<!--            OR rohrl.rtu_dt &gt; #{timeStop}-->
<!--        </if>-->
        ORDER BY rtu_dt ASC
    </select>
</mapper>
pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/user/UserCtrl.java
@@ -244,13 +244,13 @@
    @SsoAop()
    public BaseResponse<Boolean> changePassword(String id, String oldPassword, String newPassword) throws Exception {
        if (id == null) {
            return BaseResponseUtils.buildFail("id不能为空");
            return BaseResponseUtils.buildErrorMsg("id不能为空");
        }
        if (StringUtils.isNullOrEmpty(oldPassword)) {
            return BaseResponseUtils.buildFail("旧密码不能为空");
            return BaseResponseUtils.buildErrorMsg("旧密码不能为空");
        }
        if (StringUtils.isNullOrEmpty(newPassword)) {
            return BaseResponseUtils.buildFail("新密码不能为空");
            return BaseResponseUtils.buildErrorMsg("新密码不能为空");
        }
        /*
        如果前端进行了base64加密
@@ -265,10 +265,10 @@
        try {
            BaUser po = this.sv.selectById(idLg);
            if (Objects.isNull(po)) {
                return BaseResponseUtils.buildFail("未得到用户,请求失败");
                return BaseResponseUtils.buildErrorMsg("未得到用户,请求失败");
            } else {
                if (!po.password.equalsIgnoreCase(oldPassword)) {
                    return BaseResponseUtils.buildFail("旧密码不正确,请求失败");
                    return BaseResponseUtils.buildErrorMsg("旧密码不正确,请求失败");
                } else {
                    count = this.sv.changePassword(idLg, newPassword);
                }
@@ -278,7 +278,7 @@
            return BaseResponseUtils.buildException(e.getMessage());
        }
        if (count <= 0) {
            return BaseResponseUtils.buildFail("数据库存储失败");
            return BaseResponseUtils.buildErrorMsg("数据库存储失败");
        } else {
            return BaseResponseUtils.buildSuccess(true);
        }
pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/controller/ControllerCtrl.java
@@ -1,13 +1,14 @@
package com.dy.pipIrrProject.controller;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.support.ExcelTypeEnum;
import com.alibaba.fastjson2.JSONArray;
import com.dy.common.aop.SsoAop;
import com.dy.common.webUtil.BaseResponse;
import com.dy.common.webUtil.BaseResponseUtils;
import com.dy.common.webUtil.QueryResultVo;
import com.dy.common.webUtil.ResultCodeMsg;
import com.dy.pipIrrGlobal.excel.CellWriteHandler;
import com.dy.pipIrrGlobal.excel.ExcelUtil;
import com.dy.pipIrrGlobal.pojoBa.BaClient;
import com.dy.pipIrrGlobal.pojoPr.PrController;
import com.dy.pipIrrGlobal.voPr.VoController;
@@ -32,6 +33,7 @@
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.time.LocalDate;
import java.util.*;
/**
@@ -224,15 +226,19 @@
    @SneakyThrows(IOException.class)
    @RequestMapping(value = "/export", method = RequestMethod.GET)
    public void export(HttpServletResponse response, QueryVo vo) {
        setExcelRespProp(response, "控制器列表");
        //List<VoDivide> memberList = LocalJsonUtil.getListFromJson("json/members.json", VoDivide.class);
        List<VoController> memberList = controllerSv.export(vo);
        //setExcelRespProp(response, "控制器列表");
        List<VoController> controllerList = controllerSv.export(vo);
        ExcelUtil.setExcelRespProp(response, "控制器列表" + LocalDate.now());
        EasyExcel.write(response.getOutputStream(), VoController.class)
                .registerWriteHandler(new CellWriteHandler("控制器列表"))
                .sheet("控制器")
                .doWrite(controllerList);
        EasyExcel.write(response.getOutputStream())
                .head(VoController.class)
                .excelType(ExcelTypeEnum.XLSX)
                .sheet("控制器列表")
                .doWrite(memberList);
        //EasyExcel.write(response.getOutputStream())
        //        .head(VoController.class)
        //        .excelType(ExcelTypeEnum.XLSX)
        //        .sheet("控制器列表")
        //        .doWrite(memberList);
    }
    /**
pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/intake/IntakeCtrl.java
@@ -1,12 +1,13 @@
package com.dy.pipIrrProject.intake;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.support.ExcelTypeEnum;
import com.dy.common.aop.SsoAop;
import com.dy.common.webUtil.BaseResponse;
import com.dy.common.webUtil.BaseResponseUtils;
import com.dy.common.webUtil.QueryResultVo;
import com.dy.common.webUtil.ResultCodeMsg;
import com.dy.pipIrrGlobal.excel.CellWriteHandler;
import com.dy.pipIrrGlobal.excel.ExcelUtil;
import com.dy.pipIrrGlobal.pojoPr.PrIntake;
import com.dy.pipIrrGlobal.voPr.VoIntake;
import com.dy.pipIrrGlobal.voPr.VoOnLineIntake;
@@ -35,6 +36,7 @@
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.*;
@@ -240,8 +242,6 @@
            log.error("保存分水口异常", e);
            return BaseResponseUtils.buildException(e.getMessage());
        }
    }
    /**
@@ -252,16 +252,15 @@
     */
    @SneakyThrows(IOException.class)
    @GetMapping(value = "exportIntakes")
    @SsoAop()
    public void exportIntakes(HttpServletResponse response, QueryVo vo) {
        setExcelRespProp(response, "取水口列表");
        //List<VoDivide> memberList = LocalJsonUtil.getListFromJson("json/members.json", VoDivide.class);
        List<VoIntake> memberList = intakeSv.exportIntakes(vo);
        List<VoIntake> intakeList = intakeSv.exportIntakes(vo);
        EasyExcel.write(response.getOutputStream())
                .head(VoIntake.class)
                .excelType(ExcelTypeEnum.XLSX)
                .sheet("取水口列表")
                .doWrite(memberList);
        ExcelUtil.setExcelRespProp(response, "取水口列表" + LocalDate.now());
        EasyExcel.write(response.getOutputStream(), VoIntake.class)
                .registerWriteHandler(new CellWriteHandler("取水口列表"))
                .sheet("取水口")
                .doWrite(intakeList);
    }
    /**
pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/general/GeneralCtrl.java
@@ -6,8 +6,8 @@
import com.dy.common.webUtil.BaseResponseUtils;
import com.dy.common.webUtil.QueryResultVo;
import com.dy.common.webUtil.ResultCodeMsg;
import com.dy.pipIrrGlobal.excel.CellWriteHandler;
import com.dy.pipIrrGlobal.excel.ExcelUtil;
import com.dy.pipIrrGlobal.excel.ReportExportCellWriteHandler;
import com.dy.pipIrrGlobal.pojoBa.BaClient;
import com.dy.pipIrrGlobal.pojoSe.SeAudits;
import com.dy.pipIrrGlobal.pojoSe.SeGeneral;
@@ -94,7 +94,7 @@
        List<VoGeneral> generalList = generalSv.exportGenerals(vo).getObj();
        EasyExcel.write(response.getOutputStream(), VoGeneral.class)
                .registerWriteHandler(new ReportExportCellWriteHandler("财务对账-总账"))
                .registerWriteHandler(new CellWriteHandler("财务对账-总账"))
                .sheet("总账")
                .doWrite(generalList);
    }
@@ -270,8 +270,9 @@
        list.add(po);
        EasyExcel.write(response.getOutputStream(), VoTradeDetails.class)
                .registerWriteHandler(new ReportExportCellWriteHandler("财务对账-交易明细"))
                .registerWriteHandler(new CellWriteHandler("财务对账-交易明细"))
                .sheet("交易明细")
                .doWrite(list);
    }
}