From 2c2d06ae36cee890417abd0df2f8df189e8e0d47 Mon Sep 17 00:00:00 2001 From: zhangfan345 Date: Tue, 1 Nov 2022 09:55:29 +0800 Subject: Fix bugs of updating context Issue-ID: USECASEUI-749 Signed-off-by: zhangfan345 Change-Id: I220eabf9ab12d78973918552514d5ae944e9461c (cherry picked from commit 122a35f6445f71d67efe71ec53c13a69be714a1f) --- .../onap/usecaseui/intentanalysis/service/impl/ContextServiceImpl.java | 1 + 1 file changed, 1 insertion(+) 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); -- cgit 1.2.3-korg