|
|
@@ -888,9 +888,14 @@ public class SalesOrderController {
|
|
|
return brand;
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
|
+ String[] codeArray1 = new String[viewItemSelList.size()];
|
|
|
+ for (int i = 0; i < viewItemSelList.size(); i++) {
|
|
|
+ codeArray1[i] = viewItemSelList.get(i).getItemCode();
|
|
|
+ }
|
|
|
+
|
|
|
// 查询库存视图并映射为库存列表
|
|
|
QueryWrapper<ViewWhqohSel> stockQuery = new QueryWrapper<>();
|
|
|
- stockQuery.in(codeArray.length > 0, "PubDescSeg4_Name", codeArray);
|
|
|
+ stockQuery.in(codeArray.length > 0, "Item_Code", codeArray);
|
|
|
List<ViewWhqohSel> viewWhqohSelList = zcrmViewWhqohSelService.list(stockQuery);
|
|
|
System.err.println("库存视图查询结果数量:" + viewWhqohSelList.size());
|
|
|
if (viewWhqohSelList.isEmpty()) {
|