|
@@ -67,6 +67,6 @@ public interface AppUsersChargeMapper extends BaseMapper<AppUsersCharge> {
|
|
@Select("select next_val from sys_sequence where sequence_name = 'app_users_charge'")
|
|
@Select("select next_val from sys_sequence where sequence_name = 'app_users_charge'")
|
|
public Long getMaxId();
|
|
public Long getMaxId();
|
|
|
|
|
|
- @Select("select IFNULL(sum(coin),0) from app_users_charge where uid = #{userId} and status = 1")
|
|
|
|
|
|
+ @Select("select IFNULL(sum(coin),0) from app_users_charge where uid = #{userId} and status = 1 and coin_type = 1")
|
|
public Double sumCharge(@Param("userId") Long userId);
|
|
public Double sumCharge(@Param("userId") Long userId);
|
|
}
|
|
}
|