From 8bf5905eadd83054354759e28383d99c258865bb Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期五, 11 七月 2025 14:46:23 +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