fix:
1.订舱通知单保存时更新表头业务类型
This commit is contained in:
parent
a02ae13270
commit
30a0bb693f
@ -18,7 +18,6 @@ import kd.bos.orm.query.QFilter;
|
|||||||
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||||
import kd.bos.servicehelper.botp.ConvertMetaServiceHelper;
|
import kd.bos.servicehelper.botp.ConvertMetaServiceHelper;
|
||||||
import kd.bos.servicehelper.operation.OperationServiceHelper;
|
import kd.bos.servicehelper.operation.OperationServiceHelper;
|
||||||
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
@ -42,6 +41,17 @@ public class StorageTransSaveOp extends AbstractOperationServicePlugIn {
|
|||||||
for (DynamicObject storageTran : storageTrans) {
|
for (DynamicObject storageTran : storageTrans) {
|
||||||
repairRelation(storageTran);
|
repairRelation(storageTran);
|
||||||
repairRelationShipping(storageTran);
|
repairRelationShipping(storageTran);
|
||||||
|
//保存时更新表头业务类型
|
||||||
|
DynamicObjectCollection collection = storageTran.getDynamicObjectCollection("yem_es_materialinfo");
|
||||||
|
Boolean bood = false;
|
||||||
|
for (DynamicObject dynamicObject : collection) {
|
||||||
|
if (dynamicObject.getString("yem_businesssort").equals("Z")){
|
||||||
|
bood = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (bood){
|
||||||
|
storageTran.set("yem_combo","Z");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user