Selaa lähdekoodia

修改bug:
数据报表11、12、13增加分页参数和分页的返回值

jiakai 1 kuukausi sitten
vanhempi
commit
6fee074860

+ 27 - 1
commons/src/main/java/com/jzg/commons/entity/report/dto/ReportMeetDataDetailDto.java

@@ -50,7 +50,7 @@ public class ReportMeetDataDetailDto {
     /**
      * 银行卡号
      */
-    @ExcelProperty(value = "手机号", index = 2)
+    @ExcelProperty(value = "银行卡号", index = 2)
     @ColumnWidth(30)
     @Schema(description = "银行卡号")
     private String bankCardNumber;
@@ -95,4 +95,30 @@ public class ReportMeetDataDetailDto {
     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
     @Schema(description = "付款时间")
     private Date paidTime;
+
+    /**
+     * 付款账户
+     */
+    @ExcelProperty(value = "付款账户", index = 8)
+    @ColumnWidth(30)
+    @Schema(description = "付款账户")
+    private String payAccountName;
+
+    /**
+     * 驳回人
+     */
+    @ExcelProperty(value = "驳回人", index = 9)
+    @ColumnWidth(20)
+    @Schema(description = "驳回人")
+    private String rejectPerson;
+
+    /**
+     * 驳回时间
+     */
+    @ExcelProperty(value = "驳回时间", index = 10)
+    @ColumnWidth(30)
+    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @Schema(description = "驳回时间")
+    private Date rejectTime;
 }

+ 23 - 3
consoleStatistics/src/main/java/com/jzg/console/controller/ReportFinanceDataManageController.java

@@ -7,6 +7,7 @@ import com.jzg.commons.core.page.HttpResult;
 import com.jzg.commons.entity.report.dto.FeeAuditSummaryVo;
 import com.jzg.commons.entity.report.vo.FeeAuditDetailParam;
 import com.jzg.commons.entity.report.vo.FeeAuditSummaryParam;
+import com.jzg.commons.entity.report.vo.PayableStatisticsDetailParam;
 import com.jzg.commons.entity.report.vo.ReportSearchCommonVo;
 import com.jzg.commons.entity.orders.vo.FeeAuditVo;
 import com.jzg.console.service.*;
@@ -412,7 +413,7 @@ public class ReportFinanceDataManageController extends BaseController {
     public HttpResult<?> receivableStatistics(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
         try {
             String systemCode = getSystemCode();
-            List<?> list = reportReceivableDataService.getReceivableStatisticsByMonth(reportSearchCommonVo, systemCode);
+            IPage<?> list = reportReceivableDataService.getReceivableStatisticsByMonth(reportSearchCommonVo, systemCode);
             return HttpResult.ok(list);
         } catch (Exception e) {
             log.error("财务数据-应收统计异常", e);
@@ -442,7 +443,7 @@ public class ReportFinanceDataManageController extends BaseController {
     public HttpResult<?> receivableStatisticsDetail(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
         try {
             String systemCode = getSystemCode();
-            List<?> list = reportReceivableDataService.getReceivableStatisticsDetail(reportSearchCommonVo, systemCode);
+            IPage<?> list = reportReceivableDataService.getReceivableStatisticsDetail(reportSearchCommonVo, systemCode);
             return HttpResult.ok(list);
         } catch (Exception e) {
             log.error("财务数据-应收统计明细异常", e);
@@ -473,7 +474,7 @@ public class ReportFinanceDataManageController extends BaseController {
     public HttpResult<?> payableStatistics(@RequestBody ReportSearchCommonVo reportSearchCommonVo) {
         try {
             String systemCode = getSystemCode();
-            List<?> list = reportMeetDataService.getPayableStatisticsByMonth(reportSearchCommonVo, systemCode);
+            IPage<?> list = reportMeetDataService.getPayableStatisticsByMonth(reportSearchCommonVo, systemCode);
             return HttpResult.ok(list);
         } catch (Exception e) {
             log.error("财务数据-应付统计异常", e);
@@ -481,4 +482,23 @@ public class ReportFinanceDataManageController extends BaseController {
         }
     }
 
+    /**
+     * 财务数据-应付统计明细:查询指定年月的提现明细列表
+     * 根据年月查询 sys_amount_auditing 中 create_time 落在该年月的所有提现记录
+     * 返回:业务员名称/手机号/银行卡号/银行/状态/提现金额/付款人/付款账户/付款时间/驳回人/驳回时间
+     * @author: jk
+     */
+    @Operation(summary = "财务数据-应付统计明细", description = "财务数据-应付统计明细(按年月查询)")
+    @PostMapping(value = "/payableStatisticsDetail")
+    public HttpResult<?> payableStatisticsDetail(@RequestBody PayableStatisticsDetailParam param) {
+        try {
+            String systemCode = getSystemCode();
+            IPage<?> list = reportMeetDataService.getPayableStatisticsDetail(param, systemCode);
+            return HttpResult.ok(list);
+        } catch (Exception e) {
+            log.error("财务数据-应付统计明细异常", e);
+            return HttpResult.error(e.getMessage());
+        }
+    }
+
 }

+ 14 - 0
consoleStatistics/src/main/java/com/jzg/console/mapper/ReportMeetDataMapper.java

@@ -1,6 +1,8 @@
 package com.jzg.console.mapper;
 
+import com.jzg.commons.entity.report.dto.ReportMeetDataDetailDto;
 import com.jzg.commons.entity.report.dto.ReportMeetDataDto;
+import com.jzg.commons.entity.report.vo.PayableStatisticsDetailParam;
 import com.jzg.commons.entity.report.vo.ReportSearchCommonVo;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
@@ -24,4 +26,16 @@ public interface ReportMeetDataMapper {
      */
     List<ReportMeetDataDto> getPayableStatisticsByMonth(@Param("param") ReportSearchCommonVo reportSearchCommonVo,
                                                         @Param("systemCode") String systemCode);
+
+    /**
+     * 查询指定年月的应付统计明细列表
+     * 查询 sys_amount_auditing 中 create_time 落在该年月的所有提现记录
+     * 返回:业务员名称/手机号/银行卡号/银行/状态/提现金额/付款人/付款账户/付款时间/驳回人/驳回时间
+     *
+     * @param param 请求参数(yearAndMonthTime 格式 yyyy-MM)
+     * @param systemCode 系统编码(当前登录用户的租户编码)
+     * @return 应付统计明细列表
+     */
+    List<ReportMeetDataDetailDto> getPayableStatisticsDetail(@Param("param") PayableStatisticsDetailParam param,
+                                                             @Param("systemCode") String systemCode);
 }

+ 31 - 4
consoleStatistics/src/main/java/com/jzg/console/service/ReportMeetDataService.java

@@ -1,5 +1,7 @@
 package com.jzg.console.service;
 
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.jzg.commons.entity.report.vo.PayableStatisticsDetailParam;
 import com.jzg.commons.entity.report.vo.ReportSearchCommonVo;
 
 import java.util.List;
@@ -22,13 +24,38 @@ public interface ReportMeetDataService extends  ReportBaseService{
     List<?> getListByParams(ReportSearchCommonVo reportSearchCommonVo);
 
     /**
-     * 按月份汇总应付统计数据
+     * 按月份汇总应付统计数据 - 分页查询
      * 查询选中年份的应付数据,按年-月汇总
      * 返回:时间(年月)、保费、应付佣金、未提现、提现中、已付款
      *
-     * @param reportSearchCommonVo 查询参数(year 为年份集合,如 ["2026"]
+     * @param reportSearchCommonVo 查询参数(包含年份和分页参数
      * @param systemCode 系统编码(当前登录用户的租户编码)
-     * @return 按月份汇总的应付统计数据
+     * @return 按月份汇总的应付统计数据分页结果
      */
-    List<?> getPayableStatisticsByMonth(ReportSearchCommonVo reportSearchCommonVo, String systemCode);
+    IPage<?> getPayableStatisticsByMonth(ReportSearchCommonVo reportSearchCommonVo, String systemCode);
+
+    /**
+     * 查询指定年月的应付统计明细列表 - 分页查询
+     * 查询 sys_amount_auditing 中 create_time 落在该年月的所有提现记录
+     * 返回:业务员名称/手机号/银行卡号/银行/状态/提现金额/付款人/付款账户/付款时间/驳回人/驳回时间
+     *
+     * @param param 请求参数(包含 yearAndMonthTime 和分页参数)
+     * @param systemCode 系统编码(当前登录用户的租户编码)
+     * @return 应付统计明细分页结果
+     */
+    IPage<?> getPayableStatisticsDetail(PayableStatisticsDetailParam param, String systemCode);
+
+    /**
+     * 财务数据-应付统计导出Excel
+     * @param reportSearchCommonVo 查询参数
+     * @param systemCode 系统编码
+     */
+    void exportPayableStatistics(ReportSearchCommonVo reportSearchCommonVo, String systemCode);
+
+    /**
+     * 财务数据-应付统计明细导出Excel
+     * @param param 请求参数
+     * @param systemCode 系统编码
+     */
+    void exportPayableStatisticsDetail(PayableStatisticsDetailParam param, String systemCode);
 }

+ 11 - 16
consoleStatistics/src/main/java/com/jzg/console/service/ReportReceivableDataService.java

@@ -1,5 +1,6 @@
 package com.jzg.console.service;
 
+import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.jzg.commons.entity.report.vo.ReportSearchCommonVo;
 
 import java.util.List;
@@ -29,26 +30,20 @@ public interface ReportReceivableDataService extends  ReportBaseService{
     List<?> getDetailListByParams(ReportSearchCommonVo reportSearchCommonVo);
 
     /**
-     *  @version
-     *  @author: jk
-     *  @Date: 2026/7/20
-     *  @Description:  财务数据-应收统计(按月份汇总)
-     *  @param reportSearchCommonVo 查询参数(包含年份)
-     *  @param systemCode 系统编码
-     *  @return 按月份汇总的应收数据列表
+     * 财务数据-应收统计(按月份汇总)- 分页查询
+     * @param reportSearchCommonVo 查询参数(包含年份和分页参数)
+     * @param systemCode 系统编码
+     * @return 按月份汇总的应收数据分页结果
      */
-    List<?> getReceivableStatisticsByMonth(ReportSearchCommonVo reportSearchCommonVo, String systemCode);
+    IPage<?> getReceivableStatisticsByMonth(ReportSearchCommonVo reportSearchCommonVo, String systemCode);
 
     /**
-     *  @version
-     *  @author: jk
-     *  @Date: 2026/7/20
-     *  @Description:  财务数据-应收统计明细(按保险公司分组)
-     *  @param reportSearchCommonVo 查询参数(包含年月)
-     *  @param systemCode 系统编码
-     *  @return 按保险公司分组的应收明细数据列表
+     * 财务数据-应收统计明细(按保险公司分组)- 分页查询
+     * @param reportSearchCommonVo 查询参数(包含年月和分页参数)
+     * @param systemCode 系统编码
+     * @return 按保险公司分组的应收明细数据分页结果
      */
-    List<?> getReceivableStatisticsDetail(ReportSearchCommonVo reportSearchCommonVo, String systemCode);
+    IPage<?> getReceivableStatisticsDetail(ReportSearchCommonVo reportSearchCommonVo, String systemCode);
 
     /**
      * 财务数据-应收统计导出Excel

+ 84 - 4
consoleStatistics/src/main/java/com/jzg/console/service/impl/ReportMeetDataServiceImpl.java

@@ -2,14 +2,19 @@ package com.jzg.console.service.impl;
 
 
 import cn.hutool.core.collection.CollUtil;
+import cn.hutool.core.util.StrUtil;
 import cn.hutool.json.JSONUtil;
+import com.alibaba.excel.EasyExcel;
 import com.alibaba.excel.annotation.ExcelProperty;
 import com.alibaba.excel.annotation.write.style.ColumnWidth;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.jzg.commons.entity.report.dto.*;
+import com.jzg.commons.entity.report.vo.PayableStatisticsDetailParam;
 import com.jzg.commons.entity.report.vo.ReportSearchCommonVo;
+import com.jzg.commons.util.EasyExcelUtils;
+import com.jzg.commons.util.ServletUtils;
 import com.jzg.console.mapper.ReportMeetDataMapper;
 import com.jzg.console.service.ReportMeetDataService;
 import com.jzg.console.service.ReportReceivableDataService;
@@ -51,19 +56,94 @@ public class ReportMeetDataServiceImpl extends ReportBaseServiceImpl implements
     }
 
     /**
-     * 按月份汇总应付统计数据
+     * 按月份汇总应付统计数据 - 分页查询
      * 查询选中年份的应付数据,按年-月汇总
      * 返回:时间(年月)、保费、应付佣金、未提现、提现中、已付款
      */
     @Override
-    public List<?> getPayableStatisticsByMonth(ReportSearchCommonVo reportSearchCommonVo, String systemCode) {
+    public IPage<?> getPayableStatisticsByMonth(ReportSearchCommonVo reportSearchCommonVo, String systemCode) {
         log.info("财务数据-应付统计(按月份汇总). reportSearchCommonVo=[{}], systemCode=[{}]", JSONUtil.toJsonStr(reportSearchCommonVo), systemCode);
         List<String> years = reportSearchCommonVo.getYear();
         if (CollUtil.isEmpty(years)) {
             log.warn("查询年份为空,返回空列表");
-            return new ArrayList<>();
+            return new Page<>(reportSearchCommonVo.getPageNo() != null ? reportSearchCommonVo.getPageNo() : 1,
+                              reportSearchCommonVo.getPageSize() != null ? reportSearchCommonVo.getPageSize() : 10);
         }
-        return reportMeetDataMapper.getPayableStatisticsByMonth(reportSearchCommonVo, systemCode);
+        List<ReportMeetDataDto> dataList = reportMeetDataMapper.getPayableStatisticsByMonth(reportSearchCommonVo, systemCode);
+
+        // 内存分页
+        int pageNo = reportSearchCommonVo.getPageNo() != null ? reportSearchCommonVo.getPageNo() : 1;
+        int pageSize = reportSearchCommonVo.getPageSize() != null ? reportSearchCommonVo.getPageSize() : 10;
+        int total = dataList.size();
+        int fromIndex = (pageNo - 1) * pageSize;
+        int toIndex = Math.min(fromIndex + pageSize, total);
+
+        Page<ReportMeetDataDto> page = new Page<>(pageNo, pageSize, total);
+        if (fromIndex < total) {
+            page.setRecords(dataList.subList(fromIndex, toIndex));
+        } else {
+            page.setRecords(new ArrayList<>());
+        }
+        return page;
+    }
+
+    /**
+     * 查询指定年月的应付统计明细列表 - 分页查询
+     * 查询 sys_amount_auditing 中 create_time 落在该年月的所有提现记录
+     * 返回:业务员名称/手机号/银行卡号/银行/状态/提现金额/付款人/付款账户/付款时间/驳回人/驳回时间
+     */
+    @Override
+    public IPage<?> getPayableStatisticsDetail(PayableStatisticsDetailParam param, String systemCode) {
+        log.info("财务数据-应付统计明细. param=[{}], systemCode=[{}]", JSONUtil.toJsonStr(param), systemCode);
+        if (param == null || StrUtil.isBlank(param.getYearAndMonthTime())) {
+            log.warn("查询年月为空,返回空列表");
+            return new Page<>(param.getPages(), param.getSize());
+        }
+        List<ReportMeetDataDetailDto> dataList = reportMeetDataMapper.getPayableStatisticsDetail(param, systemCode);
+
+        // 内存分页
+        int pageNo = param.getPages();
+        int pageSize = param.getSize();
+        int total = dataList.size();
+        int fromIndex = (pageNo - 1) * pageSize;
+        int toIndex = Math.min(fromIndex + pageSize, total);
+
+        Page<ReportMeetDataDetailDto> page = new Page<>(pageNo, pageSize, total);
+        if (fromIndex < total) {
+            page.setRecords(dataList.subList(fromIndex, toIndex));
+        } else {
+            page.setRecords(new ArrayList<>());
+        }
+        return page;
+    }
+
+    /**
+     * 财务数据-应付统计导出Excel
+     */
+    @Override
+    public void exportPayableStatistics(ReportSearchCommonVo reportSearchCommonVo, String systemCode) {
+        log.info("财务数据-应付统计导出Excel. reportSearchCommonVo=[{}], systemCode=[{}]", JSONUtil.toJsonStr(reportSearchCommonVo), systemCode);
+        List<String> years = reportSearchCommonVo.getYear();
+        if (CollUtil.isEmpty(years)) {
+            log.warn("查询年份为空,不导出");
+            return;
+        }
+        List<ReportMeetDataDto> dataList = reportMeetDataMapper.getPayableStatisticsByMonth(reportSearchCommonVo, systemCode);
+        EasyExcelUtils.exportForWeb(ServletUtils.getResponse(), ReportMeetDataDto.class, dataList, "财务数据-应付统计");
+    }
+
+    /**
+     * 财务数据-应付统计明细导出Excel
+     */
+    @Override
+    public void exportPayableStatisticsDetail(PayableStatisticsDetailParam param, String systemCode) {
+        log.info("财务数据-应付统计明细导出Excel. param=[{}], systemCode=[{}]", JSONUtil.toJsonStr(param), systemCode);
+        if (param == null || StrUtil.isBlank(param.getYearAndMonthTime())) {
+            log.warn("查询年月为空,不导出");
+            return;
+        }
+        List<ReportMeetDataDetailDto> dataList = reportMeetDataMapper.getPayableStatisticsDetail(param, systemCode);
+        EasyExcelUtils.exportForWeb(ServletUtils.getResponse(), ReportMeetDataDetailDto.class, dataList, "财务数据-应付统计明细");
     }
 
     @Override

+ 39 - 6
consoleStatistics/src/main/java/com/jzg/console/service/impl/ReportReceivableDataServiceImpl.java

@@ -3,6 +3,7 @@ package com.jzg.console.service.impl;
 import cn.hutool.core.collection.CollUtil;
 import cn.hutool.json.JSONUtil;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.alibaba.excel.EasyExcel;
 import com.jzg.commons.entity.report.dto.*;
 import com.jzg.commons.entity.report.vo.ReportSearchCommonVo;
@@ -130,25 +131,57 @@ public class ReportReceivableDataServiceImpl extends ReportBaseServiceImpl imple
     }
 
     @Override
-    public List<?> getReceivableStatisticsByMonth(ReportSearchCommonVo reportSearchCommonVo, String systemCode) {
+    public IPage<?> getReceivableStatisticsByMonth(ReportSearchCommonVo reportSearchCommonVo, String systemCode) {
         log.info("财务数据-应收统计(按月份汇总). reportSearchCommonVo=[{}], systemCode=[{}]", JSONUtil.toJsonStr(reportSearchCommonVo), systemCode);
         List<String> years = reportSearchCommonVo.getYear();
         if (CollUtil.isEmpty(years)) {
             log.warn("查询年份为空,返回空列表");
-            return new ArrayList<>();
+            return new Page<>(reportSearchCommonVo.getPageNo() != null ? reportSearchCommonVo.getPageNo() : 1,
+                              reportSearchCommonVo.getPageSize() != null ? reportSearchCommonVo.getPageSize() : 10);
         }
-        return reportReceivableDataMapper.getReceivableStatisticsByMonth(reportSearchCommonVo, systemCode);
+        List<ReportReceivableDataDto> dataList = reportReceivableDataMapper.getReceivableStatisticsByMonth(reportSearchCommonVo, systemCode);
+
+        // 内存分页
+        int pageNo = reportSearchCommonVo.getPageNo() != null ? reportSearchCommonVo.getPageNo() : 1;
+        int pageSize = reportSearchCommonVo.getPageSize() != null ? reportSearchCommonVo.getPageSize() : 10;
+        int total = dataList.size();
+        int fromIndex = (pageNo - 1) * pageSize;
+        int toIndex = Math.min(fromIndex + pageSize, total);
+
+        Page<ReportReceivableDataDto> page = new Page<>(pageNo, pageSize, total);
+        if (fromIndex < total) {
+            page.setRecords(dataList.subList(fromIndex, toIndex));
+        } else {
+            page.setRecords(new ArrayList<>());
+        }
+        return page;
     }
 
     @Override
-    public List<?> getReceivableStatisticsDetail(ReportSearchCommonVo reportSearchCommonVo, String systemCode) {
+    public IPage<?> getReceivableStatisticsDetail(ReportSearchCommonVo reportSearchCommonVo, String systemCode) {
         log.info("财务数据-应收统计明细(按保险公司分组). reportSearchCommonVo=[{}], systemCode=[{}]", JSONUtil.toJsonStr(reportSearchCommonVo), systemCode);
         List<String> years = reportSearchCommonVo.getYear();
         if (CollUtil.isEmpty(years)) {
             log.warn("查询年份为空,返回空列表");
-            return new ArrayList<>();
+            return new Page<>(reportSearchCommonVo.getPageNo() != null ? reportSearchCommonVo.getPageNo() : 1,
+                              reportSearchCommonVo.getPageSize() != null ? reportSearchCommonVo.getPageSize() : 10);
+        }
+        List<ReportReceivableDetailDto> dataList = reportReceivableDataMapper.getReceivableStatisticsDetail(reportSearchCommonVo, systemCode);
+
+        // 内存分页
+        int pageNo = reportSearchCommonVo.getPageNo() != null ? reportSearchCommonVo.getPageNo() : 1;
+        int pageSize = reportSearchCommonVo.getPageSize() != null ? reportSearchCommonVo.getPageSize() : 10;
+        int total = dataList.size();
+        int fromIndex = (pageNo - 1) * pageSize;
+        int toIndex = Math.min(fromIndex + pageSize, total);
+
+        Page<ReportReceivableDetailDto> page = new Page<>(pageNo, pageSize, total);
+        if (fromIndex < total) {
+            page.setRecords(dataList.subList(fromIndex, toIndex));
+        } else {
+            page.setRecords(new ArrayList<>());
         }
-        return reportReceivableDataMapper.getReceivableStatisticsDetail(reportSearchCommonVo, systemCode);
+        return page;
     }
 
     @Override

+ 55 - 0
consoleStatistics/src/main/resources/mapper/ReportMeetDataMapper.xml

@@ -12,6 +12,21 @@
         <result column="paid_money" property="paidMoney"/>
     </resultMap>
 
+    <!-- 应付统计明细结果映射 -->
+    <resultMap id="PayableStatisticsDetailResultMap" type="com.jzg.commons.entity.report.dto.ReportMeetDataDetailDto">
+        <result column="salesman_name" property="salesmanName"/>
+        <result column="salesman_phone" property="salesmanPhone"/>
+        <result column="bank_card_number" property="bankCardNumber"/>
+        <result column="bank_name" property="bankName"/>
+        <result column="status_name" property="statusName"/>
+        <result column="withdrawal_money" property="withdrawalMoney"/>
+        <result column="paid_person_name" property="paidPersonName"/>
+        <result column="pay_account_name" property="payAccountName"/>
+        <result column="paid_time" property="paidTime"/>
+        <result column="reject_person" property="rejectPerson"/>
+        <result column="reject_time" property="rejectTime"/>
+    </resultMap>
+
     <!--
         按月份汇总应付统计数据
         说明:
@@ -104,4 +119,44 @@
         ) w ON m.year_and_month_time = w.year_and_month_time
         ORDER BY m.year_and_month_time ASC
     </select>
+
+    <!--
+        查询指定年月的应付统计明细
+        说明:
+        1. 以 sys_amount_auditing.create_time 作为年月筛选条件
+        2. 业务员名称/手机号:通过 user_id 关联 sys_user_jzg_info 获取 name,关联 sys_user 获取 mobile
+        3. 状态:auditing_status 转换为中文(0-待付款、1-已付款、2-拒绝付款)
+        4. 付款账户:关联 inv_account_card 根据 account_id 获取 card_name
+    -->
+    <select id="getPayableStatisticsDetail" resultMap="PayableStatisticsDetailResultMap">
+        SELECT
+            suji.name AS salesman_name,
+            su.mobile AS salesman_phone,
+            saa.bank_card_num AS bank_card_number,
+            saa.bank_name,
+            CASE saa.auditing_status
+                WHEN 0 THEN '待付款'
+                WHEN 1 THEN '已付款'
+                WHEN 2 THEN '拒绝付款'
+                ELSE CAST(saa.auditing_status AS CHAR)
+            END AS status_name,
+            saa.amount AS withdrawal_money,
+            saa.receive_user AS paid_person_name,
+            iac.card_name AS pay_account_name,
+            saa.payment_time AS paid_time,
+            saa.reject_person,
+            saa.reject_time
+        FROM sys_amount_auditing saa
+        LEFT JOIN sys_user_jzg_info suji ON suji.user_id = saa.user_id AND suji.is_delete = 0
+        LEFT JOIN sys_user su ON su.id = saa.user_id AND su.is_delete = 0
+        LEFT JOIN inv_account_card iac ON iac.id = saa.account_id AND iac.is_delete = 0
+        <where>
+            saa.is_delete = 0
+            AND saa.system_code = #{systemCode}
+            <if test="param.yearAndMonthTime != null and param.yearAndMonthTime != ''">
+                AND DATE_FORMAT(saa.create_time, '%Y-%m') = #{param.yearAndMonthTime}
+            </if>
+        </where>
+        ORDER BY saa.create_time DESC
+    </select>
 </mapper>