| | |
| | | import com.mzl.flower.entity.wallet.WalletDO; |
| | | |
| | | import javax.validation.constraints.Positive; |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * @author @TaoJie |
| | |
| | | if(null==currentSupplier){ |
| | | throw new ValidationException("供应商不能为空"); |
| | | } |
| | | final WalletDO walletDO = walletService.getCurrentSupplier(); |
| | | if(null!=walletDO){ |
| | | // 根据当前供应商获取待结算的钱 |
| | | BigDecimal waittingSettlementAmount = walletService.getWaittingSettlementAmount(walletDO); |
| | | walletDO.setSettlingAmount(waittingSettlementAmount); |
| | | // 总交易额度 |
| | | walletDO.setTotalTransactionAmount(walletService.getSupplierTotalTransactionAmount(walletDO)); |
| | | // 总扣款数量 |
| | | walletDO.setTotalDeduction(walletService.getSupplierDeductAmount(walletDO)); |
| | | |
| | | } |
| | | |
| | | return returnData(R.SUCCESS.getCode(), walletService.getCurrentSupplier()); |
| | | return returnData(R.SUCCESS.getCode(), walletDO); |
| | | } |
| | | |
| | | @GetMapping("/page") |