dos 1 개월 전
부모
커밋
4cb6eb8cc1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      game-business/src/main/java/com/game/business/mapper/AppUsersChargeMapper.java

+ 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);
 }