dos 1 month ago
parent
commit
4cb6eb8cc1

+ 1 - 1
game-business/src/main/java/com/game/business/mapper/AppUsersChargeMapper.java

@@ -67,6 +67,6 @@ public interface AppUsersChargeMapper extends BaseMapper<AppUsersCharge> {
     @Select("select next_val from sys_sequence where sequence_name = 'app_users_charge'")
     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);
 }