src/main/java/com/ruoyi/stock/controller/StockInventoryController.java
@@ -10,10 +10,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; /** @@ -41,7 +38,7 @@ @PostMapping("/addstockInventory") @ApiOperation("新增库存") public R addstockInventory(StockInventoryDto stockInventoryDto) { public R addstockInventory(@RequestBody StockInventoryDto stockInventoryDto) { stockInventoryDto.setRecordType(String.valueOf(StockRecordTypeEnum.CUSTOMIZATION_STOCK_IN.getCode())); stockInventoryDto.setRecordId(0L); return R.ok(stockInventoryService.addstockInventory(stockInventoryDto)); @@ -50,7 +47,7 @@ @PostMapping("/subtractStockInventory") @ApiOperation("扣减库存") public R subtractStockInventory(StockInventoryDto stockInventoryDto) { public R subtractStockInventory(@RequestBody StockInventoryDto stockInventoryDto) { stockInventoryDto.setRecordType(String.valueOf(StockRecordTypeEnum.CUSTOMIZATION_STOCK_OUT.getCode())); stockInventoryDto.setRecordId(0L); return R.ok(stockInventoryService.subtractStockInventory(stockInventoryDto)); src/main/java/com/ruoyi/stock/controller/StockUninventoryController.java
@@ -10,10 +10,7 @@ import com.ruoyi.stock.service.StockUninventoryService; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.*; /** * <p> @@ -38,7 +35,7 @@ @PostMapping("/addstockUninventory") @ApiOperation("新增库存") public R addstockUninventory(StockUninventoryDto stockUninventoryDto) { public R addstockUninventory(@RequestBody StockUninventoryDto stockUninventoryDto) { stockUninventoryDto.setRecordType(String.valueOf(StockRecordTypeEnum.CUSTOMIZATION_UNSTOCK_IN.getCode())); stockUninventoryDto.setRecordId(0L); return R.ok(stockUninventoryService.addStockUninventory(stockUninventoryDto)); @@ -47,7 +44,7 @@ @PostMapping("/subtractstockUninventory") @ApiOperation("扣减库存") public R subtractstockUninventory(StockUninventoryDto stockUninventoryDto) { public R subtractstockUninventory(@RequestBody StockUninventoryDto stockUninventoryDto) { stockUninventoryDto.setRecordType(String.valueOf(StockRecordTypeEnum.CUSTOMIZATION_UNSTOCK_OUT.getCode())); stockUninventoryDto.setRecordId(0L); return R.ok(stockUninventoryService.subtractStockUninventory(stockUninventoryDto));