2026.4.29 午 14:16

平库出库子单单据库存校验
等待最后测试,以及单据仓库区分字段
This commit is contained in:
1009473166@qq.com
2026-04-29 14:17:00 +08:00
parent 95656dccc4
commit 7984ccc7f1
7 changed files with 156 additions and 18 deletions

View File

@@ -18,6 +18,7 @@ import com.ruoyi.pda.domain.TrayCodeMsg;
import com.ruoyi.pda.service.PdaService;
import com.ruoyi.stock.stock.domain.BasStock;
import lombok.extern.slf4j.Slf4j;
import org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.security.access.prepost.PreAuthorize;
@@ -39,7 +40,6 @@ public class PdaController extends BaseController {
private IInStockinDetailService iInStockinDetailService;
@Autowired
private OutStockoutServiceImpl outStockoutService;
@Autowired
private OutStockoutDetailServiceImpl outStockoutDetailService;
@@ -273,8 +273,8 @@ public class PdaController extends BaseController {
@ResponseBody
public List<OutStockout> OutFillPk(@RequestBody OutStockout outStockout) {
outStockoutService.selectOutStockoutList(outStockout);
return null;
return outStockoutService.selectOutStockoutList(outStockout);
}
@@ -288,8 +288,8 @@ public class PdaController extends BaseController {
@ResponseBody
public List<OutStockoutDetail> OutFillPkDetail(@RequestBody OutStockout outStockout) {
List<OutStockout> outStockouts = outStockoutService.selectOutStockoutList(outStockout);
outStockoutDetailService.selectOutStockoutDetailByStockoutGuid(outStockouts.get(0).getStockoutId());
return null;
return outStockoutDetailService.selectOutStockoutDetailByStockoutGuid(outStockouts.get(0).getStockoutId());
}
@@ -304,8 +304,19 @@ public class PdaController extends BaseController {
@RequestMapping("/queryBasStockHc")
@ResponseBody
public AjaxResult queryBasStockHc(@RequestBody TrayCodeMsg trayCodeMsg) {
String trayCode = trayCodeMsg.getTrayCode();
String stockinDetailId = trayCodeMsg.getStockinDetailId();
OutStockoutDetail outStockoutDetail = outStockoutDetailService.selectOutStockoutDetailByStockoutDetailId(stockinDetailId);
String productId = outStockoutDetail.getProductId();
Integer integer=pdaService.selectBasStockHcCount(trayCode,productId);
if (integer>0)
{
return AjaxResult.success();
}else {
return AjaxResult.error("无该物料");
}
return AjaxResult.success();
}