数据库字段更改
This commit is contained in:
@@ -48,7 +48,7 @@ public class ShiftController {
|
||||
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) ,
|
||||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class)
|
||||
})
|
||||
@PreAuthorize("@ex.hasAuthority('code:shift:page')")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:page')")
|
||||
public Result<PageData<ShiftDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<ShiftDTO> page = shiftService.page(params);
|
||||
|
||||
@@ -57,7 +57,7 @@ public class ShiftController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
@PreAuthorize("@ex.hasAuthority('code:shift:info')")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:info')")
|
||||
public Result<ShiftDTO> get(@PathVariable("id") Long id){
|
||||
ShiftDTO data = shiftService.get(id);
|
||||
|
||||
@@ -67,7 +67,7 @@ public class ShiftController {
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('code:shift:save')")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:save')")
|
||||
public Result save(@RequestBody ShiftDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -80,7 +80,7 @@ public class ShiftController {
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('code:shift:update')")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:update')")
|
||||
public Result update(@RequestBody ShiftDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -93,7 +93,7 @@ public class ShiftController {
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('code:shift:delete')")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -106,7 +106,7 @@ public class ShiftController {
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('code:shift:export')")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<ShiftDTO> list = shiftService.list(params);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user