提交 66c5475f 编写于 作者: sq3536's avatar sq3536

修改bug

上级 aaf3bfbc
...@@ -45,7 +45,7 @@ public class WorkflowModel extends BaseModel{ ...@@ -45,7 +45,7 @@ public class WorkflowModel extends BaseModel{
if(refGroups==null) if(refGroups==null)
{ {
refGroups=new LinkedHashMap<>(); refGroups=new LinkedHashMap<>();
if(ObjectUtils.isEmpty(getWFVer().getPSWFProcesses())) if(!ObjectUtils.isEmpty(getWFVer().getPSWFProcesses()))
{ {
getWFVer().getPSWFProcesses().forEach(WFProcess->{ getWFVer().getPSWFProcesses().forEach(WFProcess->{
List<IPSWFProcessRole> roles=null; List<IPSWFProcessRole> roles=null;
...@@ -78,20 +78,24 @@ public class WorkflowModel extends BaseModel{ ...@@ -78,20 +78,24 @@ public class WorkflowModel extends BaseModel{
private Map<String,EntityModel> bookings; private Map<String,EntityModel> bookings;
public Map<String,EntityModel> getBookings() public Map<String,EntityModel> getBookings()
{ {
if(bookings==null) if(getWFVer().getPSWorkflow()!=null&&getWFVer().getPSWorkflow().getPSWFDEs()!=null)
{ {
bookings=new LinkedHashMap<>(); if(bookings==null)
getWFVer().getPSWorkflow().getPSWFDEs().forEach(de->{ {
bookings.put(de.getCodeName(),getSystem().getEntity(de.getCodeName())); bookings=new LinkedHashMap<>();
}); getWFVer().getPSWorkflow().getPSWFDEs().forEach(de->{
bookings.put(de.getCodeName(),getSystem().getEntity(de.getCodeName()));
});
}
} }
return bookings; return bookings;
} }
private Map<String,Map<String,AppModel>> mobApps; private Map<String,Map<String,AppModel>> mobApps;
public Map<String,Map<String,AppModel>> getMobApps() { public Map<String,Map<String,AppModel>> getMobApps() {
if (mobApps == null) { if (mobApps == null&&getBookings()!=null) {
mobApps=new LinkedHashMap<>(); mobApps=new LinkedHashMap<>();
getBookings().keySet().forEach(entity->{ getBookings().keySet().forEach(entity->{
if(ObjectUtils.isEmpty(getSystem().getApps())) if(ObjectUtils.isEmpty(getSystem().getApps()))
...@@ -125,7 +129,7 @@ public class WorkflowModel extends BaseModel{ ...@@ -125,7 +129,7 @@ public class WorkflowModel extends BaseModel{
private Map<String,Map<String,AppModel>> webApps; private Map<String,Map<String,AppModel>> webApps;
public Map<String,Map<String,AppModel>> getWebApps() { public Map<String,Map<String,AppModel>> getWebApps() {
if (webApps == null) { if (webApps == null&&getBookings()!=null) {
webApps=new LinkedHashMap<>(); webApps=new LinkedHashMap<>();
getBookings().keySet().forEach(entity->{ getBookings().keySet().forEach(entity->{
if(ObjectUtils.isEmpty(getSystem().getApps())) if(ObjectUtils.isEmpty(getSystem().getApps()))
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
{{/each}} {{/each}}
{{/if}} {{/if}}
{{#each item.psWorkflow().psWFDEs as |wfde|}} {{#each workflow.psWorkflow.psWFDEs as |wfde|}}
{{#if wfde.wFStepPSDEField}} {{#if wfde.wFStepPSDEField}}
<flowable:field name="wfstepfield_{{pluralize wfde.psDataEntity.codeName}}"> <flowable:field name="wfstepfield_{{pluralize wfde.psDataEntity.codeName}}">
<flowable:string>{{lowerCase wfde.wFStepPSDEField.codeName}}</flowable:string> <flowable:string>{{lowerCase wfde.wFStepPSDEField.codeName}}</flowable:string>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册