如果没有子表,移除掉jsonobjectList中key为null的

This commit is contained in:
hecan 2024-07-01 13:43:21 +08:00
parent 822a2d43eb
commit 52d60580b9
1 changed files with 1 additions and 0 deletions

View File

@ -326,6 +326,7 @@ public class ComparisonServiceImpl extends BaseService<ComparisonEntity, String>
} else {
jsonObjectList.put(comparisonDetailsEntity.getDbName(), new ArrayList<>());
}
jsonObjectList.remove(null);
list.add(jsonObjectList);
//保存操作日志
controlsLogDaoimpl.saveControlsLog(uuid,jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口新增",jsonObject.getString("optionName"),tableName+"_option_log","1");