瀏覽代碼

场景上传日志

WXF 2 年之前
父節點
當前提交
363683d15b

+ 1 - 1
simulation-resource-server/src/main/java/com/css/simulation/resource/system/service/SceneImportService.java

@@ -47,7 +47,7 @@ public class SceneImportService {
             sceneImportMapper.insert(po);
             //记录日志
             Map<String,String>  dictMap = dictService.getDictMapByType(DictConstants.SCENE_TYPE);
-            String type= dictMap.get(DictConstants.SCENE_ACCIDENT);
+            String type= dictMap.get(po.getSceneType());
             String content = "创建" + type + "上传任务:" + po.getName() + "(ID:" + po.getId() + ")";
             logService.logSceneUpload(LogConstants.SYS_LOG_SCENE_TASK_INSERT,content);
         }else{