供应商

This commit is contained in:
2024-06-26 14:20:53 +08:00
parent 29299d3689
commit 6f9afcb246
6 changed files with 107 additions and 187 deletions

View File

@@ -44,23 +44,15 @@ public class TbShopPurveyorTransactController {
private final TbShopPurveyorTransactService tbShopPurveyorTransactService;
@ApiOperation("导出数据")
@GetMapping(value = "/download")
@PreAuthorize("@el.check('tbShopPurveyorTransact:list')")
public void exportTbShopPurveyorTransact(HttpServletResponse response, TbShopPurveyorTransactQueryCriteria criteria) throws IOException {
tbShopPurveyorTransactService.download(tbShopPurveyorTransactService.queryAll(criteria), response);
}
/**
* 进货账目
* 供应商列表
* @param criteria
* @param pageable
* @return
*/
@GetMapping
@ApiOperation("查询帐目往来")
public ResponseEntity<Object> queryTbShopPurveyorTransactSum(TbShopPurveyorTransactQueryCriteria criteria, Pageable pageable){
return new ResponseEntity<>(tbShopPurveyorTransactService.queryTransactDate(criteria,pageable),HttpStatus.OK);
@ApiOperation("供应商列表")
public ResponseEntity<Object> queryTransactDate(TbShopPurveyorTransactQueryCriteria criteria){
return new ResponseEntity<>(tbShopPurveyorTransactService.queryTransactDate(criteria),HttpStatus.OK);
}
/**
@@ -79,10 +71,17 @@ public class TbShopPurveyorTransactController {
* @return
*/
@GetMapping("/sum")
public ResponseEntity<Object> queryTransactSum( TbShopPurveyorTransactQueryCriteria criteria){
public ResponseEntity<Object> queryTransactSum(TbShopPurveyorTransactQueryCriteria criteria){
return new ResponseEntity<>(tbShopPurveyorTransactService.queryTransactSum(criteria),HttpStatus.OK);
}
@PostMapping("/payTransact")
@ApiOperation("账单付款")
public ResponseEntity<Object> payTransact(@RequestBody TbShopPurveyorTransact resources){
tbShopPurveyorTransactService.payTransact(resources);
return new ResponseEntity<>(HttpStatus.OK);
}
@PostMapping
@ApiOperation("新增帐目往来")
public ResponseEntity<Object> createTbShopPurveyorTransact(@Validated @RequestBody TbShopPurveyorTransact resources){