| | |
| | | package com.example.erp.controller.sd; |
| | | |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.sd.GlassPriceBasic; |
| | | import com.example.erp.service.sd.GlassPriceBasicService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | return Result.seccess(glassPriceBasicService.glassPriceComputed(productId)); |
| | | } |
| | | |
| | | @ApiOperation("玻璃价格查询") |
| | | @PostMapping("/searchGlassPrice") |
| | | public Result searchGlassPrice(){ |
| | | return Result.seccess(glassPriceBasicService.searchGlassPrice()); |
| | | } |
| | | |
| | | @ApiOperation("玻璃价格修改") |
| | | @PostMapping("/updateGlassPriceById") |
| | | public Result updateGlassPriceById(@RequestBody GlassPriceBasic glassPriceBasic){ |
| | | return Result.seccess(glassPriceBasicService.updateGlassPriceById(glassPriceBasic)); |
| | | } |
| | | |
| | | @ApiOperation("玻璃价格删除") |
| | | @PostMapping("/deleteGlassPriceById/{id}") |
| | | public Result deleteGlassPriceById(@PathVariable String id){ |
| | | return Result.seccess(glassPriceBasicService.deleteGlassPriceById(id)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |