|
@@ -8,6 +8,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
import com.game.business.dto.FinTranRecordDTO;
|
|
|
import com.game.business.service.IAppGameBettingService;
|
|
|
+import com.game.business.service.IAppUserService;
|
|
|
import com.game.common.core.domain.R;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -47,6 +48,9 @@ public class FinTranRecordController extends BaseController
|
|
|
@Autowired
|
|
|
private IAppGameBettingService appGameBettingService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IAppUserService appUserService;
|
|
|
+
|
|
|
|
|
|
* 查询消费记录列表
|
|
|
*/
|
|
@@ -78,6 +82,10 @@ public class FinTranRecordController extends BaseController
|
|
|
Map<String, BigDecimal> bettingAmountDateSum = appGameBettingService.getBettingAmountByDateSum(finTranRecord);
|
|
|
jsonObject.put("bettingAmountDateSum", bettingAmountDateSum);
|
|
|
|
|
|
+
|
|
|
+ Map<String, BigDecimal> userCount = appUserService.getUserCount(finTranRecord.getUserId());
|
|
|
+ jsonObject.put("userCount", userCount);
|
|
|
+
|
|
|
return R.ok(jsonObject);
|
|
|
}
|
|
|
|