This commit is contained in:
zengtao01
2024-04-11 16:46:34 +08:00
parent 45f0373541
commit 2d86436cbd

View File

@ -41,6 +41,6 @@ public interface CardMapper extends BaseMapperX<CardDO> {
.orderByDesc(CardDO::getId));
}
@Select("select IFNULL(sum(money),0) as money,count(*) as count FROM member_card where user_id = #{userId} and flag = #{flag} and create_time BETWEEN #{startTime} and #{endTime}")
@Select("select IFNULL(sum(change_money),0) as money,count(*) as count FROM member_card where user_id = #{userId} and flag = #{flag} and create_time BETWEEN #{startTime} and #{endTime}")
AppCardMonthVO selectMonth(@Param("userId") Long userId,@Param("flag") String flag, @Param("startTime") LocalDateTime startTime, @Param("endTime")LocalDateTime endTime);
}