guoyujia 2 settimane fa
parent
commit
e252a9b74a

+ 1 - 2
src/main/java/cn/ezhizao/project/business/controller/BizTaksStockLotController.java

@@ -255,7 +255,7 @@ public class BizTaksStockLotController extends BaseController {
         //查询出未收回的批次信息
         List<BizTaksStockCertificateLot> data = bizTaksStockCertificateLotService.query().eq("take_stock_period_id", bizTaksStockCertificateLot.getTakeStockPeriodId()).list();
         if(data.isEmpty()){
-            return error("没有可盘点的批次");
+            throw new RuntimeException("没有可盘点的批次");
         }
         data.forEach(item -> {
             item.setTaksStockNum(item.getProdNum().intValue());
@@ -266,7 +266,6 @@ public class BizTaksStockLotController extends BaseController {
     @PostMapping(value = "/saveAnyInboundInfo")
     @Log(title = "一键盘点部分入库", businessType = BusinessType.UPDATE)
     public AjaxResult saveAnyInboundInfo(@RequestBody BizTaksStockCertificateLot bizTaksStockCertificateLot) {
-
         //查询出未收回的批次信息
         List<BizTaksStockInboundOrderDetail> data = bizTaksStockInboundOrderDetailService.query().eq("take_stock_period_id", bizTaksStockCertificateLot.getTakeStockPeriodId()).list();
         if(data.isEmpty()){