Commit e0406573 authored by 季圣华's avatar 季圣华
Browse files

解决初始化的时候出库明细报表报错的bug

parent 20e2c141
......@@ -234,7 +234,7 @@ public class DepotHeadService {
||BusinessConstants.SUB_TYPE_SALES_RETURN.equals(subType) ) {
//采购订单里面选择销售订单的时候不要过滤
if(StringUtil.isEmpty(purchaseStatus)) {
if (null != supplierList) {
if (null != supplierList && supplierList.size() > 0) {
boolean customerFlag = systemConfigService.getCustomerFlag();
List<String> organList = new ArrayList<>();
for (Supplier supplier : supplierList) {
......@@ -243,7 +243,9 @@ public class DepotHeadService {
organList.add(supplier.getId().toString());
}
}
organArray = StringUtil.listToStringArray(organList);
if(organList.size() > 0) {
organArray = StringUtil.listToStringArray(organList);
}
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment