From 0c59552dc14c9023d4c0a9d57509cce1d5a6d6da Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期二, 31 十二月 2024 10:07:45 +0800 Subject: [PATCH] Merge remote-tracking branch 'supervision/hc-socket-1129' --- src/main/kotlin/cn/flightfeather/supervision/business/report/DataSource.kt | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/business/report/DataSource.kt b/src/main/kotlin/cn/flightfeather/supervision/business/report/DataSource.kt index 575041e..96f71fa 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/business/report/DataSource.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/business/report/DataSource.kt @@ -68,7 +68,7 @@ */ fun areaName(): String { val t = dbMapper.taskMapper.selectByPrimaryKey(config.topTaskGuid) - return "${DateUtil.DateToString(t.starttime, DateUtil.DateStyle.YYYY_MM_CN)}${t.districtname}${if (area != t.districtname) area else ""}${Constant.SceneType.getDes(config.sceneType)}" + return "${DateUtil.DateToString(config.startTime, DateUtil.DateStyle.YYYY_MM_CN)}${t.districtname}${if (area != t.districtname) area else ""}${Constant.SceneType.getDes(config.sceneType)}" } /** @@ -92,12 +92,12 @@ if (area.isBlank()) area = it.districtname ?: "" } - //1. 鏌ユ壘鐗瑰畾鐨勫贰鏌ヤ换鍔℃垨鑰呮墍鏈夌殑璁″垝宸℃煡浠诲姟 - val taskSceneIdList = dbMapper.scenseMapper.getSceneByType(config.topTaskGuid, config.sceneType, - config.townCode).map { it.guid ?: "" } - // 缁熻鎬讳换鍔′笅鎵�鏈夊満鏅� if (config.allScene) { + //1. 鏌ユ壘鐗瑰畾鐨勫贰鏌ヤ换鍔℃垨鑰呮墍鏈夌殑璁″垝宸℃煡浠诲姟 + val taskSceneIdList = dbMapper.scenseMapper.getSceneByType(config.topTaskGuid, config.sceneType, + config.townCode).map { it.guid ?: "" } + val subTaskList = dbMapper.subtaskMapper.selectByExample(Example(Subtask::class.java).apply { createCriteria().apply { if (taskSceneIdList.isNotEmpty()) andIn("scenseid", taskSceneIdList) -- Gitblit v1.9.3