计划参考数增加睡眠间隔

This commit is contained in:
yuxueliang0813 2025-05-12 12:12:08 +08:00
parent 6270a9f153
commit 9ca27fda3e
1 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,11 @@ public class FundPlanPaymentTask extends AbstractTask implements Plugin {
//自动触发调用保存操作现在测试出来前台保存后才会有这个维度分录
doinfo = BusinessDataServiceHelper.loadSingle(doinfo.getPkValue(),entityName);
OperationServiceHelper.executeOperate("save", entityName, new DynamicObject[]{doinfo}, option);
try {
Thread.sleep(1000);//休眠1秒后再去加载对象
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
doinfo = BusinessDataServiceHelper.loadSingle(doinfo.getPkValue(),entityName);
maindimentrys = doinfo.getDynamicObjectCollection("maindimentry");//主维度分录
if(maindimentrys.isEmpty()){