修改方法

This commit is contained in:
牛叉闪闪
2024-07-30 14:39:00 +08:00
parent 820237d63e
commit f8e4834e69
2 changed files with 3 additions and 10 deletions

View File

@@ -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("修改查询交班记录")

View File

@@ -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