|
@@ -6,10 +6,7 @@ import com.fjhx.constants.StatusConstant;
|
|
|
import com.fjhx.entity.product.ProductInfo;
|
|
|
import com.fjhx.entity.stock.StockCombination;
|
|
|
import com.fjhx.entity.stock.StockSplit;
|
|
|
-import com.fjhx.params.stock.GetQuantityByWarehouseIdDto;
|
|
|
-import com.fjhx.params.stock.StockCombinationPageDto;
|
|
|
-import com.fjhx.params.stock.StockCombinationPageVo;
|
|
|
-import com.fjhx.params.stock.StockSplitPageVo;
|
|
|
+import com.fjhx.params.stock.*;
|
|
|
import com.fjhx.service.product.ProductInfoService;
|
|
|
import com.fjhx.service.stock.StockCombinationService;
|
|
|
import com.fjhx.service.stock.StockSplitService;
|
|
@@ -90,6 +87,15 @@ public class StockCombinationController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ * 批量拆分组合
|
|
|
+ */
|
|
|
+ @PostMapping("/split_batch")
|
|
|
+ public R split(@Validated @RequestBody List<StockSplit> stockSplits) {
|
|
|
+ stockCombinationService.splitBatch(stockSplits);
|
|
|
+ return R.success();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
* 获取可组合数量
|
|
|
*/
|
|
|
@PostMapping("/getQuantityByWarehouseId")
|
|
@@ -99,6 +105,15 @@ public class StockCombinationController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ * 获取可拆分数量
|
|
|
+ */
|
|
|
+ @PostMapping("/getSplitQuantityByWarehouseId")
|
|
|
+ public R getSplitQuantityByWarehouseId(@Validated @RequestBody GetSplitQuantityByWarehouseIdDto getSplitQuantityByWarehouseIdDto) {
|
|
|
+ int quantity = stockCombinationService.getSplitQuantityByWarehouseId(getSplitQuantityByWarehouseIdDto);
|
|
|
+ return R.success(quantity);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
* 获取组合名称列表
|
|
|
*/
|
|
|
@PostMapping("/getCombinationList")
|