1.优化离线测算导出报错

S
This commit is contained in:
weiyunlong 2025-02-24 12:29:07 +08:00
parent 99659e0273
commit 248d1184cd
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl
Object fid = queryOne.get("id");
DynamicObject single = BusinessDataServiceHelper.loadSingle(fid,"recos_measureci");
DynamicObjectCollection cientry = single.getDynamicObjectCollection("cientry");
if (cientry.isEmpty()) {
this.getView().showErrorNotification("该测算分录没有数据,不支持导出");
}
String sheetname= cientry.get(0).getDynamicObject("entry_producttype").getString("name");//产品类型名称
for (DynamicObject dynamicObject : cientry) {
DynamicObject entry_costaccount = dynamicObject.getDynamicObject("entry_costaccount");//科目