From 021496babb52a859294a8475ffef330009b0167c Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期一, 28 十月 2024 13:47:40 +0800 Subject: [PATCH] 1.小程序-供应商:钱包 --- src/main/resources/mapper/wallet/WalletBillRecordMapper.xml | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/wallet/WalletBillRecordMapper.xml b/src/main/resources/mapper/wallet/WalletBillRecordMapper.xml index b8e5c34..0d1a1ed 100644 --- a/src/main/resources/mapper/wallet/WalletBillRecordMapper.xml +++ b/src/main/resources/mapper/wallet/WalletBillRecordMapper.xml @@ -19,6 +19,23 @@ <result column="original_amount" property="originalAmount" /> <result column="change_amount" property="changeAmount" /> <result column="balance" property="balance" /> + <result column="transfer_detail_id" property="transferDetailId" /> + <result column="open_id" property="openId" /> </resultMap> + <select id="getPage" resultType="com.mzl.flower.dto.response.wallet.WalletBillRecordVO"> + select * + from t_wallet_bill_record wbr + where wbr.DELETED=0 + <if test="dto.supplierId != null and dto.supplierId != ''"> + and wbr.supplier_id= #{dto.supplierId} + </if> + <if test="dto.startDate != null"> + and DATE_FORMAT(wbr.create_time, '%Y-%m-%d') >= #{dto.startDate} + </if> + <if test="dto.endDate != null"> + and DATE_FORMAT(wbr.create_time, '%Y-%m-%d') <= #{dto.endDate} + </if> + + </select> </mapper> -- Gitblit v1.9.3