修改方法

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); tbHandoverService.download(tbHandoverService.queryAll(criteria), response);
} }
@GetMapping @PostMapping
@Log("查询查询交班记录") @Log("查询查询交班记录")
@ApiOperation("查询查询交班记录") @ApiOperation("查询查询交班记录")
public ResponseEntity<Object> queryTbHandover(TbHandoverQueryCriteria criteria, Pageable pageable){ public ResponseEntity<Object> queryTbHandover(TbHandoverQueryCriteria criteria, Pageable pageable){
return new ResponseEntity<>(tbHandoverService.queryAll(criteria,pageable),HttpStatus.OK); 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 @PutMapping
@Log("修改查询交班记录") @Log("修改查询交班记录")
@ApiOperation("修改查询交班记录") @ApiOperation("修改查询交班记录")

View File

@@ -12,8 +12,8 @@ import cn.ysk.cashier.annotation.Query;
public class TbHandoverQueryCriteria{ public class TbHandoverQueryCriteria{
/** 精确 */ /** 精确 */
@Query @Query(type = Query.Type.BETWEEN)
private String tradeDay; private List<String> tradeDay;
/** 精确 */ /** 精确 */
@Query @Query