| | |
| | | integralService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("调整积分") |
| | | @PostMapping("/updateIntegral") |
| | | @RequiresPermissions("business:member:update") |
| | | public ApiResponse updateIntegral(@RequestBody Integral param) { |
| | | integralService.updateIntegral(param); |
| | | return ApiResponse.success(null); |
| | | } |
| | | @ApiOperation("根据ID修改") |
| | | @PostMapping("/updateById") |
| | | @RequiresPermissions("business:integral:update") |
| | |
| | | @RequiresPermissions("business:integral:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<Integral> pageWrap, HttpServletResponse response) throws Exception { |
| | | List<Integral> list=integralService.findPage(pageWrap).getRecords(); |
| | | for(Integral model:list){ |
| | | if(Constants.equalsInteger(model.getType(),Constants.ZERO)){ |
| | | model.setStrType("收入"); |
| | | }else if(Constants.equalsInteger(model.getType(),Constants.ONE)){ |
| | | model.setStrType("支出"); |
| | | } |
| | | model.setStrObjType(Constants.IntegralObjType.getName(model.getObjType())); |
| | | |
| | | } |
| | | ExcelExporter.build(Integral.class).export(list, "用户积分明细"+ DateUtil.getNowLongTime(), response); |
| | | ExcelExporter.build(Integral.class).export(list, "经销商余额明细"+ DateUtil.getNowLongTime(), response); |
| | | } |
| | | |
| | | @ApiOperation("根据ID查询") |