| | |
| | | } |
| | | |
| | | |
| | | |
| | | @DeleteMapping("/deleteUserPointCopyByIds") |
| | | public R deleteUserPointCopyByIds(@RequestParam("ids") List<Long> ids){ |
| | | userPointCopyMapper.deleteBatchIds(ids); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/getUserPointCopy") |
| | | public R<List<UserPointCopy>> getUserPointCopy(@RequestParam("orderId") Long orderId, @RequestParam("type") List<Integer> type) { |
| | | List<UserPointCopy> list = userPointCopyMapper.selectList(new LambdaQueryWrapper<UserPointCopy>().in(UserPointCopy::getType, type) |
| | |
| | | record.setExtention(data.getOrderNumber()); |
| | | } |
| | | } |
| | | int i = record.getHistoricalPoint() - record.getBalance(); |
| | | if (i>0){ |
| | | if (record.getChangeDirection() == -1){ |
| | | record.setVariableType(2); |
| | | }else if (i<0){ |
| | | record.setVariableType(1); |
| | | }else{ |
| | | record.setVariableType(0); |
| | | record.setVariableType(1); |
| | | } |
| | | } |
| | | return R.ok(page); |