供应商
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user