修改方法
This commit is contained in:
@@ -33,20 +33,13 @@ public class TbHandoverController {
|
||||
tbHandoverService.download(tbHandoverService.queryAll(criteria), response);
|
||||
}
|
||||
|
||||
@GetMapping
|
||||
@PostMapping
|
||||
@Log("查询查询交班记录")
|
||||
@ApiOperation("查询查询交班记录")
|
||||
public ResponseEntity<Object> queryTbHandover(TbHandoverQueryCriteria criteria, Pageable pageable){
|
||||
return new ResponseEntity<>(tbHandoverService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@Log("新增查询交班记录")
|
||||
@ApiOperation("新增查询交班记录")
|
||||
public ResponseEntity<Object> createTbHandover(@Validated @RequestBody TbHandover resources){
|
||||
return new ResponseEntity<>(tbHandoverService.create(resources),HttpStatus.CREATED);
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@Log("修改查询交班记录")
|
||||
@ApiOperation("修改查询交班记录")
|
||||
|
||||
@@ -12,8 +12,8 @@ import cn.ysk.cashier.annotation.Query;
|
||||
public class TbHandoverQueryCriteria{
|
||||
|
||||
/** 精确 */
|
||||
@Query
|
||||
private String tradeDay;
|
||||
@Query(type = Query.Type.BETWEEN)
|
||||
private List<String> tradeDay;
|
||||
|
||||
/** 精确 */
|
||||
@Query
|
||||
|
||||
Reference in New Issue
Block a user