diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java index 83fcde2a94..0527344140 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java @@ -1181,7 +1181,7 @@ public class BugService { for (BugCustomField bugCustomField : updateFields) { BugCustomFieldExample bugCustomFieldExample = new BugCustomFieldExample(); bugCustomFieldExample.createCriteria().andBugIdEqualTo(bugCustomField.getBugId()).andFieldIdEqualTo(bugCustomField.getFieldId()); - bugCustomFieldMapper.updateByExample(bugCustomField, bugCustomFieldExample); + bugCustomFieldMapper.updateByExampleSelective(bugCustomField, bugCustomFieldExample); } sqlSession.flushStatements(); SqlSessionUtils.closeSqlSession(sqlSession, sqlSessionFactory);