|
@@ -123,11 +123,12 @@ public class AppUsersChargeServiceImpl extends ServiceImpl<AppUsersChargeMapper,
|
|
|
|
|
|
@Override
|
|
|
@DataSource(DataSourceType.SLAVE)
|
|
|
- public double isChargeToday(Long userId) {
|
|
|
+ public double isChargeToday(Long userId,int coinType) {
|
|
|
Date now = new Date();
|
|
|
LambdaQueryWrapper<AppUsersCharge> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
queryWrapper.eq(AppUsersCharge::getUid,userId);
|
|
|
queryWrapper.eq(AppUsersCharge::getStatus,1);
|
|
|
+ queryWrapper.eq(AppUsersCharge::getCoinType,coinType);
|
|
|
queryWrapper.ge(AppUsersCharge::getUpdateTime, DateUtil.format(now,"yyyy-MM-dd").concat(" 00:00:00"));
|
|
|
queryWrapper.le(AppUsersCharge::getUpdateTime, DateUtil.format(now,"yyyy-MM-dd").concat(" 23:59:59"));
|
|
|
List<AppUsersCharge> appUsersCharges = appUsersChargeMapper.selectList(queryWrapper);
|