| | |
| | | @Autowired |
| | | private InternalAuditCarryService carryService; |
| | | |
| | | @Autowired |
| | | private SupplierSureService sureService; |
| | | |
| | | @Autowired |
| | | private CustomerService customerService; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 合格供应商列表 |
| | | * @param sure |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "合格供应商列表(分页)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | }) |
| | | @GetMapping("/supplier/list") |
| | | public CommonResult listSupplier(SupplierSure sure){ |
| | | return CommonResult.success(sureService.selectSupplierList(sure)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 合格供应商新增 |
| | | * @param sure |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "合格供应商新增") |
| | | @PostMapping("/supplier/insert") |
| | | public CommonResult insertSupplier(@RequestBody SupplierSure sure){ |
| | | return sureService.insertSupplier(sure); |
| | | } |
| | | |
| | | /** |
| | | * 合格供应商修改 |
| | | * @param sure |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "合格供应商修改") |
| | | @PostMapping("/supplier/update") |
| | | public CommonResult updateSupplier(@RequestBody SupplierSure sure){ |
| | | return sureService.updateSupplier(sure); |
| | | } |
| | | |
| | | /** |
| | | * 合格供应商删除 |
| | | * @param supplierId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "合格供应商删除") |
| | | @GetMapping("/supplier/deleted") |
| | | public CommonResult deletedSupplier(@RequestParam("supplierId") Integer supplierId){ |
| | | return sureService.deletedSupplier(supplierId); |
| | | } |
| | | |
| | | |
| | | /** |