| | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.management.domain.dto.*; |
| | | import com.ruoyi.management.domain.vo.InventoriesSuppliesVO; |
| | | import com.ruoyi.management.domain.vo.SlGoodsMaterialsVO; |
| | |
| | | @RequestMapping("/inventories-supplies") |
| | | @Api(value = "物资盘点接口", tags = "物资盘点接口", description = "物资盘点接口") |
| | | public class InventoriesSuppliesController { |
| | | |
| | | @Resource |
| | | private TokenService tokenService; |
| | | @Resource |
| | | private InventoriesSuppliesService inventoriesSuppliesService; |
| | | @PostMapping("/getInventoriesSuppliesList") |
| | | @ApiOperation(value = "分页获物资盘点") |
| | | public R<PageDTO<InventoriesSuppliesVO>> getInventoriesSuppliesList(@RequestBody InventoriesSuppliesQuery inventoriesSuppliesQuery) { |
| | | tokenService.getLoginUser(); |
| | | return R.ok(inventoriesSuppliesService.getInventoriesSuppliesList(inventoriesSuppliesQuery)); |
| | | } |
| | | |
| | | @PostMapping("/addInventoriesSupp") |
| | | @ApiOperation(value = "添加物资盘点") |
| | | public R addInventoriesSupp(@RequestBody InventoriesSuppDTO inventoriesSuppDTO) { |
| | | tokenService.getLoginUser(); |
| | | inventoriesSuppliesService.addInventoriesSupp(inventoriesSuppDTO); |
| | | return R.ok(); |
| | | } |