From 81aa0cb2a8f563075eef1d4101024c3fd9cb2205 Mon Sep 17 00:00:00 2001 From: TWW <15834156+tangweiwei111@user.noreply.gitee.com> Date: 星期五, 08 八月 2025 15:30:04 +0800 Subject: [PATCH] 考勤管理后端代码 --- src/main/resources/mapper/purchase/PaymentRegistrationMapper.xml | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/purchase/PaymentRegistrationMapper.xml b/src/main/resources/mapper/purchase/PaymentRegistrationMapper.xml index 61bbdfc..d245389 100644 --- a/src/main/resources/mapper/purchase/PaymentRegistrationMapper.xml +++ b/src/main/resources/mapper/purchase/PaymentRegistrationMapper.xml @@ -167,6 +167,12 @@ <if test="params.searchText != null and params.searchText != '' "> AND T2.supplier_name LIKE CONCAT('%',#{params.searchText},'%') </if> + <if test="params.paymentDateStart != null and params.paymentDateStart !='' "> + AND T1.payment_date >= date_format(#{params.paymentDateStart},'%Y-%m-%d') + </if> + <if test="params.paymentDateEnd != null and params.paymentDateEnd !='' "> + AND T1.payment_date <= date_format(#{params.paymentDateEnd},'%Y-%m-%d') + </if> </where> ORDER BY T1.payment_date,T1.create_time DESC </select> -- Gitblit v1.9.3