Revert "fix:"

This reverts commit 2fe307d844.
This commit is contained in:
ljw 2025-01-21 11:33:44 +08:00
parent 71e482b3aa
commit b72473634d

View File

@ -5,6 +5,7 @@ import com.yem.wm.utils.DynamicObjectUtil;
import com.yem.wm.utils.YEM; import com.yem.wm.utils.YEM;
import kd.bos.dataentity.entity.DynamicObject; import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.dataentity.entity.DynamicObjectCollection; import kd.bos.dataentity.entity.DynamicObjectCollection;
import kd.bos.dataentity.entity.MulBasedataDynamicObjectCollection;
import kd.bos.entity.BillEntityType; import kd.bos.entity.BillEntityType;
import kd.bos.entity.ExtendedDataEntity; import kd.bos.entity.ExtendedDataEntity;
import kd.bos.entity.botp.plugin.AbstractConvertPlugIn; import kd.bos.entity.botp.plugin.AbstractConvertPlugIn;
@ -34,30 +35,30 @@ public class DeclareDocxToExportinvoiceConvert extends AbstractConvertPlugIn {
String name = this.getSrcMainType().getName(); String name = this.getSrcMainType().getName();
ExtendedDataEntity[] findByEntityKeys = e.getTargetExtDataEntitySet().FindByEntityKey(targetName); ExtendedDataEntity[] findByEntityKeys = e.getTargetExtDataEntitySet().FindByEntityKey(targetName);
for (ExtendedDataEntity findByEntityKey : findByEntityKeys) { for (ExtendedDataEntity findByEntityKey : findByEntityKeys) {
// List<DynamicObject> shippingDetails = (List<DynamicObject>) findByEntityKey.getValue("ConvertSource"); List<DynamicObject> shippingDetails = (List<DynamicObject>) findByEntityKey.getValue("ConvertSource");
DynamicObject dataEntity = findByEntityKey.getDataEntity();//单据主实体 DynamicObject dataEntity = findByEntityKey.getDataEntity();//单据主实体
// for (DynamicObject shippingDetail : shippingDetails) { for (DynamicObject shippingDetail : shippingDetails) {
////
//// Long value = shippingDetail.getLong("id"); Long value = shippingDetail.getLong("id");
//// DynamicObject findBynames = BusinessDataServiceHelper.loadSingle(value, name); DynamicObject findBynames = BusinessDataServiceHelper.loadSingle(value, name);
//// MulBasedataDynamicObjectCollection yemDestport = (MulBasedataDynamicObjectCollection ) findByEntityKey.getValue("yem_shipports"); MulBasedataDynamicObjectCollection yemDestport = (MulBasedataDynamicObjectCollection ) findByEntityKey.getValue("yem_shipports");
//// DynamicObjectCollection fourBookColls = new DynamicObjectCollection(); DynamicObjectCollection fourBookColls = new DynamicObjectCollection();
//// DynamicObject tempDyObjs = new DynamicObject(yemDestport.getDynamicObjectType()); DynamicObject tempDyObjs = new DynamicObject(yemDestport.getDynamicObjectType());
//// tempDyObjs.set("fbasedataid",findBynames.getDynamicObject("yem_despportcodebase")); tempDyObjs.set("fbasedataid",findBynames.getDynamicObject("yem_despportcodebase"));
//// fourBookColls.add(tempDyObjs); fourBookColls.add(tempDyObjs);
//// dataEntity.set("yem_shipports", fourBookColls); dataEntity.set("yem_shipports", fourBookColls);
////
////
//// MulBasedataDynamicObjectCollection yemDestports = (MulBasedataDynamicObjectCollection ) findByEntityKey.getValue("yem_destports"); MulBasedataDynamicObjectCollection yemDestports = (MulBasedataDynamicObjectCollection ) findByEntityKey.getValue("yem_destports");
//// DynamicObjectCollection fourBookColl = new DynamicObjectCollection(); DynamicObjectCollection fourBookColl = new DynamicObjectCollection();
//// DynamicObject tempDyObj = new DynamicObject(yemDestports.getDynamicObjectType()); DynamicObject tempDyObj = new DynamicObject(yemDestports.getDynamicObjectType());
//// tempDyObj.set("fbasedataid",findBynames.getDynamicObject("yem_distinateportbase")); tempDyObj.set("fbasedataid",findBynames.getDynamicObject("yem_distinateportbase"));
//// fourBookColl.add(tempDyObj); fourBookColl.add(tempDyObj);
//// dataEntity.set("yem_destports", fourBookColl); dataEntity.set("yem_destports", fourBookColl);
//
//
// }//携带合同中的佣金率 }//携带合同中的佣金率
setRate(findByEntityKey); setRate(findByEntityKey);
bringLatestExRate(dataEntity); bringLatestExRate(dataEntity);