| | |
| | | package com.ruoyi.management.controller; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.management.domain.InventoriesSuppliesInfo; |
| | | import com.ruoyi.management.domain.dto.InventoriesSuppDTO; |
| | | import com.ruoyi.management.domain.dto.InventoriesSuppliesInfoDTO; |
| | | import com.ruoyi.management.domain.dto.InventoriesSuppliesInfoQuery; |
| | | import com.ruoyi.management.domain.dto.InventoriesSuppliesQuery; |
| | | import com.ruoyi.management.domain.vo.InventoriesSuppliesInfoVO; |
| | | import com.ruoyi.management.domain.vo.InventoriesSuppliesVO; |
| | | import com.ruoyi.management.service.InventoriesSuppliesInfoService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequestMapping("/inventories-supplies-info") |
| | | public class InventoriesSuppliesInfoController { |
| | | |
| | | @Resource |
| | | private InventoriesSuppliesInfoService inventoriesSuppliesInfoService; |
| | | @PostMapping("/getInventoriesSuppliesInfoList") |
| | | @ApiOperation(value = "分页获物资盘点详情") |
| | | public R<PageDTO<InventoriesSuppliesInfoVO>> inventoriesSuppliesInfoService(@RequestBody InventoriesSuppliesInfoQuery inventoriesSuppliesInfoQuery) { |
| | | return R.ok(inventoriesSuppliesInfoService.inventoriesSuppliesInfoService(inventoriesSuppliesInfoQuery)); |
| | | } |
| | | |
| | | @PostMapping("/addInventoriesSuppliesInfo") |
| | | @ApiOperation(value = "添加/修改物资盘点详情") |
| | | public R addInventoriesSuppliesInfo(@RequestBody InventoriesSuppliesInfoDTO inventoriesSuppliesInfoDTO) { |
| | | inventoriesSuppliesInfoService.addInventoriesSuppliesInfo(inventoriesSuppliesInfoDTO); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/getInventoriesSuppliesInfo") |
| | | @ApiOperation(value = "通过入库id查询是否已经有物资详情") |
| | | public R<InventoriesSuppliesInfo> getInventoriesSuppliesInfo(@RequestBody InventoriesSuppliesInfoDTO inventoriesSuppliesInfoDTO) { |
| | | return R.ok( inventoriesSuppliesInfoService.getInventoriesSuppliesInfo(inventoriesSuppliesInfoDTO)); |
| | | } |
| | | |
| | | @PostMapping("/submitInventoriesSuppliesInfo") |
| | | @ApiOperation(value = "提交物资盘点数据") |
| | | public R submitInventoriesSuppliesInfo(@RequestBody InventoriesSuppliesInfoDTO inventoriesSuppliesInfoDTO) { |
| | | inventoriesSuppliesInfoService.getInventoriesSuppliesInfo(inventoriesSuppliesInfoDTO); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/accomplishInventoriesSuppliesInfo") |
| | | @ApiOperation(value = "完成物资盘点数据") |
| | | public R accomplishInventoriesSuppliesInfo(@RequestBody InventoriesSuppliesInfoDTO inventoriesSuppliesInfoDTO) { |
| | | inventoriesSuppliesInfoService.accomplishInventoriesSuppliesInfo(inventoriesSuppliesInfoDTO); |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |