update 添加分页参数

This commit is contained in:
Lemon
2025-04-11 16:22:53 +08:00
parent 162911acd9
commit dc3efa717d
3 changed files with 26 additions and 9 deletions

View File

@@ -821,7 +821,19 @@
join adapay_member_account t3 on t1.adapay_member_id = t3.adapay_member_id
join pile_merchant_info t4 on t3.merchant_id = t4.id
WHERE
t1.station_id = #{dto.stationId,jdbcType=VARCHAR}
AND t1.trade_date BETWEEN #{dto.startTime,jdbcType=VARCHAR} AND #{dto.endTime,jdbcType=VARCHAR}
t1.order_code in
<foreach collection="orderCodeList" item="orderCode" open="(" close=")" separator=",">
#{orderCode}
</foreach>
</select>
<select id="queryOrderCodesByParams" resultType="java.lang.String">
SELECT
order_code
from
order_split_record
where
station_id = #{dto.stationId,jdbcType=VARCHAR}
AND trade_date BETWEEN #{dto.startTime,jdbcType=VARCHAR} AND #{dto.endTime,jdbcType=VARCHAR}
</select>
</mapper>