|
@@ -9,8 +9,12 @@ import com.sqx.common.utils.Result;
|
|
|
import com.sqx.modules.app.dao.UserMoneyDetailsDao;
|
|
import com.sqx.modules.app.dao.UserMoneyDetailsDao;
|
|
|
import com.sqx.modules.app.entity.UserMoneyDetails;
|
|
import com.sqx.modules.app.entity.UserMoneyDetails;
|
|
|
import com.sqx.modules.app.service.UserMoneyDetailsService;
|
|
import com.sqx.modules.app.service.UserMoneyDetailsService;
|
|
|
|
|
+import com.sqx.modules.pay.controller.query.WalletDetailQuery;
|
|
|
|
|
+import com.sqx.modules.pay.vo.WalletDetailVO;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
|
|
+
|
|
|
@Service
|
|
@Service
|
|
|
public class UserMoneyDetailsServiceImpl extends ServiceImpl<UserMoneyDetailsDao, UserMoneyDetails> implements UserMoneyDetailsService {
|
|
public class UserMoneyDetailsServiceImpl extends ServiceImpl<UserMoneyDetailsDao, UserMoneyDetails> implements UserMoneyDetailsService {
|
|
|
|
|
|
|
@@ -57,4 +61,19 @@ public class UserMoneyDetailsServiceImpl extends ServiceImpl<UserMoneyDetailsDao
|
|
|
PageUtils pageUtils = new PageUtils(baseMapper.selectShopCashDeposit(pages, shopId, classify));
|
|
PageUtils pageUtils = new PageUtils(baseMapper.selectShopCashDeposit(pages, shopId, classify));
|
|
|
return Result.success().put("data", pageUtils);
|
|
return Result.success().put("data", pageUtils);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public PageUtils walletDetailList(WalletDetailQuery query) {
|
|
|
|
|
+ Page<UserMoneyDetails> pages = new Page<>(query.getPage(), query.getLimit());
|
|
|
|
|
+
|
|
|
|
|
+ IPage<WalletDetailVO> vo = baseMapper.walletDetailList(pages, query);
|
|
|
|
|
+
|
|
|
|
|
+ return new PageUtils(vo);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public BigDecimal walletDetailStatistics(WalletDetailQuery query) {
|
|
|
|
|
+ BigDecimal result = baseMapper.walletDetailStatistics(query);
|
|
|
|
|
+ return result;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|