Ver código fonte

修复getUserLinkGoods

bai 1 mês atrás
pai
commit
c90814b43d

+ 6 - 0
blade-service/blade-factory/src/main/java/org/springblade/factory/api/controller/SalesOrderController.java

@@ -855,6 +855,12 @@ public class SalesOrderController {
 		}
 		System.err.println(viewCustomerSel);
 		String pubDescSeg4Name = viewCustomerSel.getPubDescSeg4Name();
+		if (Objects.equals(pubDescSeg4Name, "") || pubDescSeg4Name == null) {
+			Map<String, Object> resultMap1 = new HashMap<>();
+			resultMap1.put("pjpfStockDescList", new ArrayList<>());
+			resultMap1.put("pjpfBrandDescList", new ArrayList<>());
+			return R.data(resultMap1, "获取成功");
+		}
 		System.err.println(pubDescSeg4Name);
 		// 按逗号分割成数组(处理null或空字符串)
 		String[] codeArray = pubDescSeg4Name != null && !pubDescSeg4Name.isEmpty()