修改方法
This commit is contained in:
@@ -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("修改查询交班记录")
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user