|
|
|
@@ -42,6 +42,7 @@ public class PosPayOrderController extends BaseController { |
|
|
|
public ResultData add(@RequestBody PosPayOrder posPayOrder) { |
|
|
|
//Assert.notNull(posPayOrder.getName(), "角色名不能为空"); |
|
|
|
//Assert.isTrue(!checkUnique(sysRole.getName(), null), "重复的角色名"); |
|
|
|
posPayOrder.updateTenantInfo(getTenantInfo()); |
|
|
|
posPayOrderService.saveOrUpdate(posPayOrder); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
@@ -49,23 +50,24 @@ public class PosPayOrderController extends BaseController { |
|
|
|
@ApiOperation("根据id更新接口") |
|
|
|
@PostMapping("update") |
|
|
|
public ResultData update(@RequestBody PosPayOrder posPayOrder) { |
|
|
|
posPayOrder.updateTenantInfo(getTenantInfo()); |
|
|
|
posPayOrderService.saveOrUpdate(posPayOrder); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据id删除接口") |
|
|
|
@GetMapping("/del") |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) |
|
|
|
public ResultData delete(Long id) { |
|
|
|
posPayOrderService.deleteById(id); |
|
|
|
return new ResultData(Result.SUCCESS, "删除成功", null); |
|
|
|
} |
|
|
|
// @ApiOperation("根据id删除接口") |
|
|
|
// @GetMapping("/del") |
|
|
|
// @ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) |
|
|
|
// public ResultData delete(Long id) { |
|
|
|
// posPayOrderService.deleteById(id); |
|
|
|
// return new ResultData(Result.SUCCESS, "删除成功", null); |
|
|
|
// } |
|
|
|
|
|
|
|
@ApiOperation("根据id查询接口") |
|
|
|
@GetMapping("/findById") |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) |
|
|
|
public ResultData findById(Long id) { |
|
|
|
return new ResultData(Result.SUCCESS, "查询成功", posPayOrderService.getById(id)); |
|
|
|
return new ResultData(Result.SUCCESS, "查询成功", posPayOrderService.getById(id,getTenantInfo().getTenantId())); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|