//package cn.ysk.cashier.cons.rest;
//
//import cn.ysk.cashier.annotation.Log;
//import cn.ysk.cashier.cons.domain.TbHandover;
//import cn.ysk.cashier.cons.service.TbHandoverService;
//import cn.ysk.cashier.cons.service.dto.TbHandoverQueryCriteria;
//import org.springframework.data.domain.Pageable;
//import lombok.RequiredArgsConstructor;
//import org.springframework.http.HttpStatus;
//import org.springframework.http.ResponseEntity;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.*;
//import io.swagger.annotations.*;
//import java.io.IOException;
//import javax.servlet.http.HttpServletResponse;
//
///**
//* @author admin
//* @date 2024-07-25
//**/
//@RestController
//@RequiredArgsConstructor
//@Api(tags = "查询交班记录管理")
//@RequestMapping("/api/tbHandover")
//public class TbHandoverController {
//
//    private final TbHandoverService tbHandoverService;
//
//    @Log("导出数据")
//    @ApiOperation("导出数据")
//    @GetMapping(value = "/download")
//    public void exportTbHandover(HttpServletResponse response, TbHandoverQueryCriteria criteria) throws IOException {
//        tbHandoverService.download(tbHandoverService.queryAll(criteria), response);
//    }
//
//    @GetMapping
//    @ApiOperation("查询查询交班记录")
//    public ResponseEntity<Object> queryTbHandover(TbHandoverQueryCriteria criteria, Pageable pageable){
//        return new ResponseEntity<>(tbHandoverService.queryAll(criteria,pageable),HttpStatus.OK);
//    }
//
//    @PutMapping
//    @Log("修改查询交班记录")
//    @ApiOperation("修改查询交班记录")
//    public ResponseEntity<Object> updateTbHandover(@Validated @RequestBody TbHandover resources){
//        tbHandoverService.update(resources);
//        return new ResponseEntity<>(HttpStatus.NO_CONTENT);
//    }
//
//    @DeleteMapping
//    @Log("删除查询交班记录")
//    @ApiOperation("删除查询交班记录")
//    public ResponseEntity<Object> deleteTbHandover(@RequestBody Integer[] ids) {
//        tbHandoverService.deleteAll(ids);
//        return new ResponseEntity<>(HttpStatus.OK);
//    }
//}