模版新增修改关联的相关实现
This commit is contained in:
@@ -210,7 +210,12 @@ public class TmplTpServiceImpl extends ServiceImpl<TmplTpMapper, TmplTpDO> imple
|
||||
List<Boolean> result=new ArrayList<>();
|
||||
sts.forEach(status -> {
|
||||
StatusEnum currentStatus = StatusEnum.fromCode(status);
|
||||
boolean transitionAllowed = currentStatus.isTransitionAllowed(status);
|
||||
boolean transitionAllowed = false;
|
||||
if (currentStatus != null) {
|
||||
transitionAllowed = currentStatus.isTransitionAllowed(status);
|
||||
}else {
|
||||
result.add(false);
|
||||
}
|
||||
result.add(transitionAllowed);
|
||||
});
|
||||
return !result.contains(false);
|
||||
|
||||
Reference in New Issue
Block a user