LiquidatedStatService.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: tandunzhao
  5. * Date: 2017/12/7
  6. * Time: 下午2:09
  7. */
  8. namespace App\Modules\Finance\Services;
  9. use App\Modules\Finance\Models\LiquidatedStat;
  10. class LiquidatedStatService
  11. {
  12. /**
  13. * 添加更新清算汇总
  14. * @param $amount 添加正数,减少负数
  15. * @param $pay_merchant_source
  16. * @return mixed
  17. */
  18. public static function createOrUpdate($pay_merchant_source, $amount) {
  19. return LiquidatedStat::createOrUpdate($pay_merchant_source, $amount);
  20. }
  21. /**
  22. * 更新支付渠道余额
  23. * @param $pay_merchant_source
  24. * @param $amount
  25. * @return mixed
  26. */
  27. public static function updateAccountBalanceAmount($pay_merchant_source, $amount) {
  28. return LiquidatedStat::updateAccountBalanceAmount($pay_merchant_source, $amount);
  29. }
  30. /**
  31. * 更新支付渠道余额当天
  32. * @param $pay_merchant_source
  33. * @param $amount
  34. * @return mixed
  35. */
  36. public static function updateAccountBalanceAmountDay($pay_merchant_source, $amount) {
  37. return LiquidatedStat::updateAccountBalanceAmountDay($pay_merchant_source, $amount);
  38. }
  39. /**
  40. * 清算汇总列表
  41. * @return mixed
  42. */
  43. public static function getLiquidatedStatList() {
  44. return LiquidatedStat::getLiquidatedStatList();
  45. }
  46. /**
  47. * 根据支付通道获取
  48. * @param $pay_merchant_source
  49. * @return mixed
  50. */
  51. public static function getLiquidatedStatSingleBySource($pay_merchant_source) {
  52. return LiquidatedStat::getLiquidatedStatSingleBySource($pay_merchant_source);
  53. }
  54. }