aboutsummaryrefslogtreecommitdiffstats
path: root/intentanalysis/src/main/java/org/onap
diff options
context:
space:
mode:
authorzhangfan345 <zhangfan345@huawei.com>2022-11-01 09:55:29 +0800
committerzhangfan345 <zhangfan345@huawei.com>2022-11-01 09:55:29 +0800
commit122a35f6445f71d67efe71ec53c13a69be714a1f (patch)
tree2e6b5cc2f8f5c13a9c4a9d3fd848445c92f32e42 /intentanalysis/src/main/java/org/onap
parentf80da8c8ae6c38ae5fbb2b20498133c68c2ed761 (diff)
Fix bugs of updating context
Issue-ID: USECASEUI-749 Signed-off-by: zhangfan345 <zhangfan345@huawei.com> Change-Id: I220eabf9ab12d78973918552514d5ae944e9461c
Diffstat (limited to 'intentanalysis/src/main/java/org/onap')
-rw-r--r--intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/service/impl/ContextServiceImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/service/impl/ContextServiceImpl.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/service/impl/ContextServiceImpl.java
index 9623917..bfe5ca2 100644
--- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/service/impl/ContextServiceImpl.java
+++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/service/impl/ContextServiceImpl.java
@@ -123,6 +123,7 @@ public class ContextServiceImpl implements ContextService {
}
for (Context context : contextList) {
if (contextIdListFromDB.contains(context.getContextId())) {
+ conditionService.updateConditionList(context.getContextConditions(), context.getContextId());
if (contextMapper.updateContext(context) < 1) {
String msg = "Failed to update context list to database.";
log.error(msg);