From d30da60c4fe5beb018fbb90738d0dff3fdca0299 Mon Sep 17 00:00:00 2001 From: gaoqr <13665037151@163.com> Date: Fri, 7 Nov 2025 11:13:25 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=B5=84=E9=87=91=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E7=BB=9F=E8=AE=A1=E5=87=BD=E6=95=B0=E8=BF=94?= =?UTF-8?q?=E5=9B=9Enull=E5=A4=84=E7=90=86=EF=BC=8C=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86;2=E3=80=81=E8=BD=AF?= =?UTF-8?q?=E4=BB=B6=E8=B4=AD=E4=B9=B0=E8=AE=B0=E5=BD=95=E5=85=A5=E5=8F=82?= =?UTF-8?q?=E8=B5=A0=E9=80=81=E6=97=B6=E9=95=BF=E8=A1=A5=E5=85=85=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchase/vo/PurchaseRecordPageReqVO.java | 3 +++ .../funds/purchase/PurchaseRecordMapper.java | 1 + .../IncomeExpenseDetailsMapper.xml | 4 ++-- .../funds/invoice/InvoiceRecordsMapper.xml | 5 +++-- .../mapper/funds/pay/PayOrderMapper.xml | 2 +- .../mapper/funds/purchase/PurchaseMapper.xml | 20 +++++++++---------- 6 files changed, 20 insertions(+), 15 deletions(-) diff --git a/cf-module-system/cf-module-system-biz/src/main/java/com/cf/imes/module/system/controller/admin/funds/purchase/vo/PurchaseRecordPageReqVO.java b/cf-module-system/cf-module-system-biz/src/main/java/com/cf/imes/module/system/controller/admin/funds/purchase/vo/PurchaseRecordPageReqVO.java index 6f1f91c2f..ee45fb35b 100644 --- a/cf-module-system/cf-module-system-biz/src/main/java/com/cf/imes/module/system/controller/admin/funds/purchase/vo/PurchaseRecordPageReqVO.java +++ b/cf-module-system/cf-module-system-biz/src/main/java/com/cf/imes/module/system/controller/admin/funds/purchase/vo/PurchaseRecordPageReqVO.java @@ -37,6 +37,9 @@ public class PurchaseRecordPageReqVO extends PageParam { @Schema(description = "购买时长") private Integer purchaseDuration; + @Schema(description = "赠送时长") + private Integer giftDuration; + @Schema(description = "购买时间", example = "[2022-07-01 01:01:01 ,2022-07-01 01:01:01]") @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) diff --git a/cf-module-system/cf-module-system-biz/src/main/java/com/cf/imes/module/system/dal/mysql/funds/purchase/PurchaseRecordMapper.java b/cf-module-system/cf-module-system-biz/src/main/java/com/cf/imes/module/system/dal/mysql/funds/purchase/PurchaseRecordMapper.java index e9acd1038..3b840086b 100644 --- a/cf-module-system/cf-module-system-biz/src/main/java/com/cf/imes/module/system/dal/mysql/funds/purchase/PurchaseRecordMapper.java +++ b/cf-module-system/cf-module-system-biz/src/main/java/com/cf/imes/module/system/dal/mysql/funds/purchase/PurchaseRecordMapper.java @@ -47,6 +47,7 @@ public interface PurchaseRecordMapper extends BaseMapperX { .likeIfPresent(PurchaseRecordDO::getProductName, pageReqVO.getProductName()) .likeIfPresent(PurchaseRecordDO::getId, pageReqVO.getId()) .eqIfPresent(PurchaseRecordDO::getPurchaseDuration, pageReqVO.getPurchaseDuration()) + .eqIfPresent(PurchaseRecordDO::getGiftDuration, pageReqVO.getGiftDuration()) .betweenIfPresent(PurchaseRecordDO::getCreateTime, pageReqVO.getCreateTime()) .likeIfPresent(PurchaseRecordDO::getCreator, pageReqVO.getCreator()) .eqIfPresent(PurchaseRecordDO::getTotalAmount, pageReqVO.getProductPrice()) diff --git a/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/incomeandexpense/IncomeExpenseDetailsMapper.xml b/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/incomeandexpense/IncomeExpenseDetailsMapper.xml index cfd6cc881..9d904c780 100644 --- a/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/incomeandexpense/IncomeExpenseDetailsMapper.xml +++ b/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/incomeandexpense/IncomeExpenseDetailsMapper.xml @@ -18,7 +18,7 @@ - select sum(amount) as amount + select COALESCE(sum(amount) ,0) as amount from income_expense_details where create_time between #{req.createTime[0]} and #{req.createTime[1]} diff --git a/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/invoice/InvoiceRecordsMapper.xml b/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/invoice/InvoiceRecordsMapper.xml index 3d8777981..ab00f27e1 100644 --- a/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/invoice/InvoiceRecordsMapper.xml +++ b/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/invoice/InvoiceRecordsMapper.xml @@ -2,8 +2,9 @@ \ No newline at end of file diff --git a/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/pay/PayOrderMapper.xml b/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/pay/PayOrderMapper.xml index 13157a72e..977df1a96 100644 --- a/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/pay/PayOrderMapper.xml +++ b/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/pay/PayOrderMapper.xml @@ -3,7 +3,7 @@ \ No newline at end of file diff --git a/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/purchase/PurchaseMapper.xml b/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/purchase/PurchaseMapper.xml index bc97161f1..fc4ffbb08 100644 --- a/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/purchase/PurchaseMapper.xml +++ b/cf-module-system/cf-module-system-biz/src/main/resources/mapper/funds/purchase/PurchaseMapper.xml @@ -2,7 +2,7 @@ @@ -10,35 +10,35 @@ select - sum(total_amount) as amount + COALESCE(sum(total_amount) ,0) as amount from purchase_record where deleted = false and initial != true; @@ -58,7 +58,7 @@