Fix bugs of updating context 63/131863/1
authorzhangfan345 <zhangfan345@huawei.com>
Tue, 1 Nov 2022 01:55:29 +0000 (09:55 +0800)
committerKeguang He <hekeguang@chinamobile.com>
Tue, 1 Nov 2022 02:21:49 +0000 (02:21 +0000)
Issue-ID: USECASEUI-749
Signed-off-by: zhangfan345 <zhangfan345@huawei.com>
Change-Id: I220eabf9ab12d78973918552514d5ae944e9461c
(cherry picked from commit 122a35f6445f71d67efe71ec53c13a69be714a1f)

intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/service/impl/ContextServiceImpl.java

index 9623917..bfe5ca2 100644 (file)
@@ -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);