debug:对账查询错误

This commit is contained in:
磷叶 2025-01-29 18:38:56 +08:00
parent 42a9850cca
commit e985a7b8c4

View File

@ -21,10 +21,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="searchCondition">
<if test="query.id != null "> and sbr.id = #{query.id}</if>
<if test="query.bonusId != null "> and sbr.bonus_id = #{query.bonusId}</if>
<if test="query.createDate != null "> and date(sb.create_time) = #{query.createDate}</if>
<if test="query.createDate != null "> and date(sbr.create_time) = #{query.createDate}</if>
<if test="query.bonusArrivalType != null and query.bonusArrivalType != '' "> and sb.arrival_type = #{query.bonusArrivalType}</if>
<if test="query.bonusArrivalName != null and query.bonusArrivalName != '' "> and sb.arrival_name like concat('%', #{query.bonusArrivalName}, '%')</if>
<if test="query.bonusArrivalTypes != null ">
<if test="query.bonusArrivalTypes != null ">
and sb.arrival_type in
<foreach collection="query.bonusArrivalTypes" item="item" open="(" separator="," close=")">
#{item}
@ -144,7 +144,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</delete>
<!-- selectSumOfAmount -->
<!-- selectSumOfAmount -->
<select id="selectSumOfAmount" parameterType="BonusRefundQuery" resultType="BigDecimal">
select sum(sbr.refund_amount)
@ -154,5 +154,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="searchCondition"/>
</where>
</select>
</mapper>