| | |
| | | } |
| | | |
| | | |
| | | |
| | | @DeleteMapping("/deleteShopBalanceStatementCopyByIds") |
| | | public R<Boolean> deleteShopBalanceStatementCopyByIds(@RequestParam("ids") List<Long> ids){ |
| | | shopBalanceStatementCopyMapper.deleteBatchIds(ids); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/getShopBalanceStatementCopy") |
| | | public R<List<ShopBalanceStatementCopy>> getShopBalanceStatementCopy(@RequestParam("orderId") Long orderId, @RequestParam("type") List<Integer> type) { |
| | | List<ShopBalanceStatementCopy> shopBalanceStatementCopies = shopBalanceStatementCopyMapper.selectList(new LambdaQueryWrapper<ShopBalanceStatementCopy>().in(ShopBalanceStatementCopy::getType, type) |
| | |
| | | detail.setTime(copy.getCreateTime()); |
| | | detail.setAmount(copy.getVariableAmount()); |
| | | |
| | | BigDecimal beforeAmount = copy.getHistoricalBalance(); |
| | | BigDecimal afterAmount = copy.getBalance(); |
| | | if (beforeAmount.compareTo(afterAmount) > 0) { |
| | | if (copy.getChangeDirection() == -1) { |
| | | detail.setType(2); |
| | | } else { |
| | | detail.setType(1); |
| | |
| | | detail.setTime(statement.getCreateTime()); |
| | | detail.setAmount(statement.getVariableAmount()); |
| | | |
| | | BigDecimal beforeAmount = statement.getHistoricalBalance(); |
| | | BigDecimal afterAmount = statement.getBalance(); |
| | | if (beforeAmount.compareTo(afterAmount) > 0) { |
| | | if (statement.getChangeDirection() == -1) { |
| | | detail.setType(2); |
| | | } else { |
| | | detail.setType(1); |