fix:订舱下推寄单放单超时问题
This commit is contained in:
parent
4ea8b15ca7
commit
edbf2bf8d4
@ -38,15 +38,21 @@ public class StorgeTransToExportPresentConvert extends AbstractConvertPlugIn
|
||||
List<DynamicObject> storageTrans = (List<DynamicObject>) findByEntityKey.getValue("ConvertSource");
|
||||
Set<Long> shipIds = new HashSet();
|
||||
Set<Long> saleIds = new HashSet();
|
||||
Set<Long> st_ids = new HashSet();
|
||||
for (DynamicObject storageTran : storageTrans) {
|
||||
long id = storageTran.getLong("id");
|
||||
storageTran = BusinessDataServiceHelper.loadSingle(id, name);
|
||||
DynamicObjectCollection materialInfos = storageTran.getDynamicObjectCollection("yem_es_materialinfo");
|
||||
// storageTran = BusinessDataServiceHelper.loadSingle(id, name);
|
||||
st_ids.add(id);
|
||||
}
|
||||
DynamicObject[] st_load = BusinessDataServiceHelper.load(name, "yem_es_materialinfo.yem_sourcebillid_d, yem_es_materialinfo.yem_corebillid_d, id, billno", new QFilter[]{new QFilter("id", "in", st_ids)});
|
||||
for (DynamicObject st : st_load) {
|
||||
DynamicObjectCollection materialInfos = st.getDynamicObjectCollection("yem_es_materialinfo");
|
||||
for (DynamicObject materialInfo : materialInfos) {
|
||||
shipIds.add(materialInfo.getLong("yem_sourcebillid_d"));
|
||||
saleIds.add(materialInfo.getLong("yem_corebillid_d"));
|
||||
}
|
||||
}
|
||||
|
||||
Map<Long, DynamicObject> saleMap = new HashMap();
|
||||
String selectFields = DynamicObjectUtil.getSelectfields("yem_shippingdetails", false);
|
||||
DynamicObject[] shippingDetails = BusinessDataServiceHelper.load("yem_shippingdetails", selectFields,
|
||||
|
Loading…
Reference in New Issue
Block a user