mapper
This commit is contained in:
@@ -46,7 +46,8 @@ public class ShiftController {
|
||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataTypeClass=Integer.class) ,
|
||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataTypeClass=Integer.class) ,
|
||||
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataTypeClass=String.class) ,
|
||||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class)
|
||||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class),
|
||||
@ApiImplicitParam(name = "id", value = "id", paramType = "query", dataTypeClass = Long.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:page')")
|
||||
public Result<PageData<ShiftDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
@@ -66,7 +67,7 @@ public class ShiftController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
@LogOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:save')")
|
||||
public Result save(@RequestBody ShiftDTO dto){
|
||||
//效验数据
|
||||
@@ -79,7 +80,7 @@ public class ShiftController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
@LogOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:update')")
|
||||
public Result update(@RequestBody ShiftDTO dto){
|
||||
//效验数据
|
||||
@@ -92,7 +93,7 @@ public class ShiftController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
@LogOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:shift:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
@@ -105,7 +106,7 @@ public class ShiftController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
@LogOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@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