|
@@ -135,58 +135,6 @@ public class WithdrawRecordApiController {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- @GetMapping("/delete")
|
|
|
|
- @ApiOperation(value = "withdrawRecord删除",httpMethod = "GET")
|
|
|
|
- public Result delete(@RequestParam Integer id) {
|
|
|
|
- if(id == null){
|
|
|
|
- return ResultGenerator.genFailResult(ResultCode.ID_IS_NULL);
|
|
|
|
- }
|
|
|
|
- try {
|
|
|
|
- withdrawRecordService.deleteById(id);
|
|
|
|
- } catch (Exception e) {
|
|
|
|
- log.error("删除对象操作异常e:{}",e);
|
|
|
|
- return ResultGenerator.genFailResult(ResultCode.INTERNAL_SERVER_ERROR);
|
|
|
|
- }
|
|
|
|
- return ResultGenerator.genSuccessResult();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @PostMapping("/update")
|
|
|
|
- @ApiOperation(value = "withdrawRecord更新",httpMethod = "POST")
|
|
|
|
- public Result update(@RequestBody WithdrawRecord withdrawRecord) {
|
|
|
|
- if(withdrawRecord == null){
|
|
|
|
- return ResultGenerator.genFailResult(ResultCode.OBJECT_IS_NULL);
|
|
|
|
- }
|
|
|
|
- if(withdrawRecord.getId() == null){
|
|
|
|
- return ResultGenerator.genFailResult(ResultCode.ID_IS_NULL);
|
|
|
|
- }
|
|
|
|
- try {
|
|
|
|
- // withdrawRecord.setUpdateTime(new Date());
|
|
|
|
- // withdrawRecord.setUpdateUserId(userId);
|
|
|
|
- withdrawRecordService.update(withdrawRecord);
|
|
|
|
- } catch (Exception e) {
|
|
|
|
- log.error("更新对象操作异常e:{}",e);
|
|
|
|
- return ResultGenerator.genFailResult(ResultCode.INTERNAL_SERVER_ERROR);
|
|
|
|
- }
|
|
|
|
- return ResultGenerator.genSuccessResult();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @GetMapping("/detail")
|
|
|
|
- @ApiOperation(value = "withdrawRecord获取详情",httpMethod = "GET")
|
|
|
|
- public Result<WithdrawRecord> detail(@RequestParam Integer id) {
|
|
|
|
- if(id == null){
|
|
|
|
- return ResultGenerator.genFailResult(ResultCode.ID_IS_NULL);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- WithdrawRecord withdrawRecord = null;
|
|
|
|
- try {
|
|
|
|
- withdrawRecord = withdrawRecordService.findById(id);
|
|
|
|
- } catch (Exception e) {
|
|
|
|
- log.error("查询对象操作异常e:{}",e);
|
|
|
|
- return ResultGenerator.genFailResult(ResultCode.INTERNAL_SERVER_ERROR);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return ResultGenerator.genSuccessResult(withdrawRecord);
|
|
|
|
- }
|
|
|
|
|
|
|
|
@PostMapping("/list")
|
|
@PostMapping("/list")
|
|
@ApiOperation(value = "withdrawRecord获取列表",httpMethod = "POST")
|
|
@ApiOperation(value = "withdrawRecord获取列表",httpMethod = "POST")
|