1. 整合了飞羽环境、徐汇油烟及金山扬尘两个数据库;
2. 优化重构自动评估模块逻辑;
3. 新增监测数据自动化统;
4. 将自动统计应用于自动评估中;
| | |
| | | <artifactId>mybatis-generator-maven-plugin</artifactId> |
| | | <version>1.3.2</version> |
| | | <configuration> |
| | | <configurationFile>src/main/resources/generator/generatorConfig4ds1.xml</configurationFile> |
| | | <configurationFile>src/main/resources/generator/generatorConfig4ds3.xml</configurationFile> |
| | | <overwrite>true</overwrite> |
| | | <verbose>true</verbose> |
| | | </configuration> |
| | | |
| | | <dependencies> |
| | | <!--<dependency>--> |
| | | <!--<groupId>org.mybatis.generator</groupId>--> |
| | | <!--<artifactId>mybatis-generator-core</artifactId>--> |
| | | <!--<version>1.3.6</version>--> |
| | | <!--</dependency>--> |
| | | <dependency> |
| | | <groupId>tk.mybatis</groupId> |
| | | <artifactId>mapper</artifactId> |
| | |
| | | |
| | | @Bean |
| | | fun runner() = ApplicationRunner { |
| | | fetchController.run() |
| | | fetchController. run() |
| | | } |
| | | } |
| | | |
| | |
| | | val sTime: LocalDateTime? = null, |
| | | val eTime: LocalDateTime? = null, |
| | | val subTask: Subtask? = null, |
| | | val sceneIndex: Int? = null |
| | | val sceneIndex: Int? = null, |
| | | val online:Boolean = true |
| | | ) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput |
| | | |
| | | import cn.flightfeather.supervision.business.Info |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopDataSource |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DustDataResult |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluation |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Itemevaluation |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.DustDataResultMapper |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.EvaluationMapper |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.ItemevaluationMapper |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | |
| | | /** |
| | | * èªå¨è¯ä¼°ç»æè¾åº |
| | | */ |
| | | @Component |
| | | class AopOutput( |
| | | private val evaluationMapper: EvaluationMapper, |
| | | private val itemevaluationMapper: ItemevaluationMapper, |
| | | private val dustDataResultMapper: DustDataResultMapper |
| | | ) { |
| | | |
| | | /** |
| | | * å°è¯åè®°å½è¾åºè³æ°æ®åº |
| | | */ |
| | | fun toDbEvaluation(evaluationScene: AopDataSource.EvaluationScene, p: Pair<Evaluation, List<Itemevaluation>>) { |
| | | //å»é¤å·²æè®°å½ |
| | | evaluationMapper.deleteByExample(Example(Evaluation::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", evaluationScene.subTask.value?.stguid) |
| | | }) |
| | | itemevaluationMapper.deleteByExample(Example(Itemevaluation::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", evaluationScene.subTask.value?.stguid) |
| | | }) |
| | | |
| | | //åå
¥æ°æ®åº |
| | | evaluationMapper.insert(p.first) |
| | | p.second.forEach { il -> itemevaluationMapper.insert(il) } |
| | | } |
| | | |
| | | /** |
| | | * å°çæµæ°æ®ç»è®¡ç»æå
¥åº |
| | | */ |
| | | fun toDbDataResult(dustDataResult: DustDataResult) { |
| | | val d = dustDataResultMapper.selectOne(DustDataResult().apply { |
| | | drSceneId = dustDataResult.drSceneId |
| | | drTime = dustDataResult.drTime |
| | | }) |
| | | if (d == null) { |
| | | dustDataResultMapper.insert(dustDataResult) |
| | | } else { |
| | | dustDataResult.drId = d.drId |
| | | dustDataResultMapper.updateByPrimaryKey(dustDataResult) |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.datasource |
| | | |
| | | import cn.flightfeather.supervision.common.utils.Constant |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Scense |
| | | import cn.flightfeather.supervision.domain.ds2.entity.UserinfoTZ |
| | | import java.util.* |
| | | |
| | | /** |
| | | * æ°æ®æ¥æºåæ° |
| | | */ |
| | | data class AopDataConfig( |
| | | val startTime: Date? = null, |
| | | val endTime: Date? = null, |
| | | |
| | | val year: Int? = null, |
| | | val month: Int? = null, |
| | | val period: Int = 1, |
| | | |
| | | val provinceCode: String? = null, |
| | | val cityCode: String? = null, |
| | | val districtCode: String? = null, |
| | | val districtName: String? = null, |
| | | val townCode: String? = null, |
| | | |
| | | val topTaskGuid: String? = null, |
| | | |
| | | /** |
| | | * åºæ¯ç±»åæ ¹æ®ä¸åç³»ç»éç¨ä¸åçå¼ï¼åè[Constant.ScenseType] |
| | | */ |
| | | var sceneType: Int? = null, |
| | | |
| | | /** |
| | | * 对äºç管系ç»ï¼ä¸ºåºæ¯[Scense.guid]ï¼ |
| | | * 对äºç¯å¢ç³»ç»ï¼ä¸ºç¨æ·[UserinfoTZ.guid] |
| | | */ |
| | | val objIdList: List<String>? = null, |
| | | ) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.datasource |
| | | |
| | | import cn.flightfeather.supervision.common.utils.Constant |
| | | import cn.flightfeather.supervision.domain.ds1.entity.* |
| | | import cn.flightfeather.supervision.domain.ds2.entity.LedgerRecord |
| | | import cn.flightfeather.supervision.domain.ds2.entity.LedgerSubType |
| | | import cn.flightfeather.supervision.domain.ds2.entity.UserMap |
| | | import cn.flightfeather.supervision.domain.ds2.entity.UserinfoTZ |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | |
| | | /** |
| | | * èªå¨è¾åºæ°æ®æº |
| | | */ |
| | | class AopDataSource(private val aopDbMapper: AopDbMapper, private val aopSceneTypeCheck: AopSceneTypeCheck) { |
| | | |
| | | private val sceneSourceList = mutableListOf<Scense?>() |
| | | private val userSourceList = mutableListOf<UserinfoTZ?>() |
| | | var config: AopDataConfig? = null |
| | | private var mode = 0 |
| | | private val evaluationScene = EvaluationScene() |
| | | |
| | | /** |
| | | * è®¾ç½®æ°æ®æº |
| | | */ |
| | | fun setResource(topTaskGuid: String?, sceneType: Int, districtName: String?, townCode: String?) { |
| | | val config = AopDataConfig(topTaskGuid = topTaskGuid, sceneType = sceneType, districtName = districtName, |
| | | townCode = townCode) |
| | | evaluationScene.config = config |
| | | val check = aopSceneTypeCheck.checkSceneType(sceneType) |
| | | if (check.first) { |
| | | initSceneSource(config) |
| | | } else { |
| | | initUserSource(config) |
| | | } |
| | | } |
| | | |
| | | fun setResource(config: AopDataConfig) { |
| | | config.sceneType ?: return |
| | | evaluationScene.config = config |
| | | val check = aopSceneTypeCheck.checkSceneType(config.sceneType!!) |
| | | if (check.first) { |
| | | initSceneSource(config) |
| | | } else { |
| | | initUserSource(config) |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è½®è¯¢æ°æ®æº |
| | | */ |
| | | fun loop(callback: (index:Int, evaluationScene: EvaluationScene) -> Unit) { |
| | | when (mode) { |
| | | 0 -> { |
| | | sceneSourceList.forEachIndexed { i, scene -> |
| | | evaluationScene.clear() |
| | | evaluationScene.index = i |
| | | evaluationScene.setDefaultScene(scene) |
| | | callback(i, evaluationScene) |
| | | } |
| | | } |
| | | 1 -> { |
| | | userSourceList.forEachIndexed { i, user -> |
| | | evaluationScene.clear() |
| | | evaluationScene.index = i |
| | | evaluationScene.setDefaultUserTZ(user) |
| | | callback(i, evaluationScene) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | // ä»ç管系ç»è·ååºæ¯ |
| | | private fun initSceneSource(config: AopDataConfig) { |
| | | config.topTaskGuid ?: throw IllegalStateException("é¡¶å±ä»»å¡idä¸è½ä¸ºnull") |
| | | this.config = config |
| | | this.mode = 0 |
| | | sceneSourceList.clear() |
| | | val taskSceneIdList = |
| | | aopDbMapper.monitorobjectversionMapper.getSceneByType(config.topTaskGuid, config.sceneType, config.townCode) |
| | | |
| | | aopDbMapper.scenseMapper.selectByExample(Example(Scense::class.java).apply { |
| | | createCriteria() |
| | | .andIn("guid", taskSceneIdList) |
| | | // .andEqualTo("provincecode", config.provinceCode) |
| | | // .andEqualTo("citycode", config.cityCode) |
| | | // .andEqualTo("districtcode", config.districtCode) |
| | | // .andEqualTo("towncode", config.townCode) |
| | | // .andEqualTo("typeid", config.sceneType) |
| | | // .andNotEqualTo("extension1", '0') |
| | | })?.let { sceneSourceList.addAll(it) } |
| | | } |
| | | |
| | | // ä»å°è´¦ç³»ç»è·ååºæ¯ |
| | | private fun initUserSource(config: AopDataConfig) { |
| | | this.config = config |
| | | this.mode = 1 |
| | | userSourceList.clear() |
| | | aopDbMapper.userinfoTZMapper.selectByExample(Example(UserinfoTZ::class.java).apply { |
| | | createCriteria().andEqualTo("extension1", config.districtName) |
| | | .andEqualTo("extension2", config.sceneType) |
| | | .andEqualTo("isenable", true) |
| | | .andEqualTo("usertypeid", "3") |
| | | and(createCriteria().orNotEqualTo("workno", "test").orIsNull("workno")) |
| | | }).let { userSourceList.addAll(it) } |
| | | } |
| | | |
| | | // å个è¯ä¼°å¯¹è±¡ |
| | | inner class EvaluationScene(){ |
| | | var index = 0 |
| | | |
| | | var config: AopDataConfig? = null |
| | | |
| | | val scene = InfoProxy<Scense>() |
| | | |
| | | val userInfoTZ = InfoProxy<UserinfoTZ>() |
| | | |
| | | fun setDefaultScene(s: Scense?) { |
| | | scene.value = s |
| | | userInfoTZ.fetch = {_,_ -> |
| | | val svUserId = aopDbMapper.userinfoMapper.selectByExample(Example(Userinfo::class.java).apply { |
| | | createCriteria().andEqualTo("dGuid", scene.value?.guid) |
| | | })?.takeIf { m -> m.isNotEmpty() }?.get(0)?.guid |
| | | val tzUserId = aopDbMapper.userMapMapper.selectByExample(Example(UserMap::class.java).apply { |
| | | createCriteria().andEqualTo("svUserId", svUserId) |
| | | })?.takeIf { m -> m.isNotEmpty() }?.get(0)?.tzUserId |
| | | aopDbMapper.userinfoTZMapper.selectByPrimaryKey(tzUserId) |
| | | } |
| | | } |
| | | |
| | | fun setDefaultUserTZ(u: UserinfoTZ?) { |
| | | userInfoTZ.value = u |
| | | scene.fetch = {_,_ -> |
| | | val svUserId = aopDbMapper.userMapMapper.selectByExample(Example(UserMap::class.java).apply { |
| | | createCriteria().andEqualTo("tzUserId", userInfoTZ.value?.guid) |
| | | })?.takeIf { m -> m.isNotEmpty() }?.get(0)?.svUserId |
| | | val sId = aopDbMapper.userinfoMapper.selectByPrimaryKey(svUserId)?.dGuid |
| | | aopDbMapper.scenseMapper.selectByPrimaryKey(sId) |
| | | } |
| | | } |
| | | |
| | | val userInfo = InfoProxy<Userinfo>{_,_ -> |
| | | scene.value?.guid ?: return@InfoProxy null |
| | | return@InfoProxy aopDbMapper.userinfoMapper.selectOne(Userinfo().apply { |
| | | dGuid = scene.value?.guid |
| | | }) |
| | | } |
| | | //å·¡æ¥ä»»å¡ä¿¡æ¯ |
| | | val subTask = InfoProxy<Subtask> {_,_ -> |
| | | return@InfoProxy aopDbMapper.subtaskMapper.selectByExample(Example(Subtask::class.java).apply { |
| | | createCriteria().andEqualTo("scenseid", scene.value?.guid) |
| | | // .andBetween("planstarttime", config?.startTime, config?.endTime) |
| | | .andEqualTo("tguid", config?.topTaskGuid) |
| | | })?.takeIf { it.isNotEmpty() }?.get(0) |
| | | } |
| | | |
| | | //ç°åºå·¡æ¥ä¿¡æ¯ |
| | | val inspection = InfoProxy<Inspection>{_,_ -> |
| | | val inspection = Inspection() |
| | | inspection.stguid = subTask.value?.stguid |
| | | return@InfoProxy aopDbMapper.inspectionMapper.selectOne(inspection) |
| | | } |
| | | |
| | | //ååºæ¯ç¹æçåºæ¬ä¿¡æ¯ |
| | | val baseScene = InfoProxy<BaseScene> {_,_ -> |
| | | return@InfoProxy when (config?.sceneType.toString()) { |
| | | // çç®¡ç³»ç» |
| | | Constant.ScenseType.TYPE1.value -> { |
| | | aopDbMapper.sceneConstructionSiteMapper.selectByPrimaryKey(scene.value?.guid) |
| | | } |
| | | Constant.ScenseType.TYPE2.value -> { |
| | | aopDbMapper.sceneWharfMapper.selectByPrimaryKey(scene.value?.guid) |
| | | } |
| | | Constant.ScenseType.TYPE3.value -> { |
| | | aopDbMapper.sceneMixingPlantMapper.selectByPrimaryKey(scene.value?.guid) |
| | | } |
| | | Constant.ScenseType.TYPE14.value -> { |
| | | aopDbMapper.sceneStorageYardMapper.selectByPrimaryKey(scene.value?.guid) |
| | | } |
| | | // å°è´¦ç³»ç» |
| | | Constant.ScenseType.TYPE5.value -> { |
| | | aopDbMapper.restaurantBaseInfoMapper.selectByPrimaryKey(userInfoTZ.value?.guid) |
| | | } |
| | | Constant.ScenseType.TYPE6.value -> { |
| | | aopDbMapper.vehicleBaseInfoMapper.selectByPrimaryKey(userInfoTZ.value?.guid) |
| | | } |
| | | else -> null |
| | | } |
| | | } |
| | | |
| | | //å
·ä½çé®é¢ |
| | | val problems = InfoProxy<MutableList<Problemlist>> {_,_ -> |
| | | if (noRecord()) return@InfoProxy mutableListOf() |
| | | return@InfoProxy aopDbMapper.problemlistMapper.selectByExample(Example(Problemlist::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", subTask.value?.stguid) |
| | | }) |
| | | } |
| | | |
| | | //è¯ä¼°æ»å |
| | | val evaluation = InfoProxy<Evaluation> {_,_ -> |
| | | if (noRecord()) return@InfoProxy null |
| | | |
| | | return@InfoProxy aopDbMapper.evaluationMapper.selectByExample(Example(Evaluation::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", subTask.value?.stguid) |
| | | })?.takeIf { it.isNotEmpty() }?.get(0) |
| | | } |
| | | |
| | | //è¯ä¼°ç»åå¾å |
| | | val itemevaluationList = InfoProxy<MutableList<Itemevaluation>> {_,_ -> |
| | | return@InfoProxy aopDbMapper.itemevaluationMapper.selectByExample(Example(Itemevaluation::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", subTask.value?.stguid) |
| | | }) |
| | | } |
| | | |
| | | //é®é¢ç±»å |
| | | val problemTypes = InfoProxy<MutableList<Problemtype>>(config?.sceneType.toString()) { _, cacheMap -> |
| | | val list = aopDbMapper.problemtypeMapper.selectByExample(Example(Problemtype::class.java).apply { |
| | | createCriteria().andEqualTo("scensetypeid", scene.value?.typeid) |
| | | .andEqualTo("districtcode", scene.value?.districtcode) |
| | | orderBy("extension1") |
| | | }) |
| | | cacheMap[config?.sceneType.toString()] = list |
| | | return@InfoProxy list |
| | | } |
| | | |
| | | // FIXME: 2023/8/9 æ»è§åçè·åå¿
é¡»å¨[topItems]è°ç¨ä¹åï¼å¦å为空 |
| | | val baseRule = InfoProxy<Evaluationrule>() |
| | | |
| | | // FIXME: 2023/8/9 æ»åçè·åå¿
é¡»å¨[topItems]è°ç¨ä¹åï¼å¦å为空 |
| | | val totalScore = InfoProxy<Int>() |
| | | |
| | | //èªå¨è¯åè§åä¸çº§åç±» |
| | | val topItems = InfoProxy<MutableList<Evaluationsubrule2>>(config?.sceneType.toString()) { _, cacheMap -> |
| | | val _topItems = mutableListOf<Evaluationsubrule2>() |
| | | val _rules = mutableListOf<Pair<Evaluationsubrule2, MutableList<Evaluationsubrule2>>>() |
| | | val rule = aopDbMapper.evaluationruleMapper.selectByExample(Example(Evaluationrule::class.java).apply { |
| | | createCriteria() |
| | | .andEqualTo("tasktypeid", 99) |
| | | .andEqualTo("scensetypeid", scene.value?.typeid) |
| | | }) |
| | | if (rule.isNotEmpty()) { |
| | | this@EvaluationScene.baseRule.value = rule[0] |
| | | this@EvaluationScene.baseRule.cacheMap[config?.sceneType.toString()] = rule[0] |
| | | |
| | | val ruleId = rule[0].guid |
| | | val rules = |
| | | aopDbMapper.evaluationsubruleMapper.selectByExample(Example(Evaluationsubrule2::class.java).apply { |
| | | createCriteria().andEqualTo("erguid", ruleId) |
| | | }) |
| | | rules.forEach { |
| | | if (it.ertype == 2) { |
| | | _topItems.add(it) |
| | | } |
| | | } |
| | | _topItems.sortBy { it.displayid } |
| | | |
| | | var t = 0 |
| | | _topItems.forEach { |
| | | t += it.maxscore ?: 0 |
| | | val tempRules = mutableListOf<Evaluationsubrule2>() |
| | | for (i in rules) { |
| | | if (i.fatherid == it.guid && i.ertype == 3) { |
| | | tempRules.add(i) |
| | | } |
| | | } |
| | | //è¯åå¤§é¡¹å¦ææ²¡ææ¾å°è¯åå°é¡¹ï¼å说æå
¶ç´æ¥å¯¹åºæå°è¯å项ï¼å
¶æ¬èº«åæè¯å项 |
| | | if (tempRules.isEmpty()) { |
| | | tempRules.add(it) |
| | | } |
| | | tempRules.sortBy { t -> t.displayid } |
| | | tempRules.forEach { temp -> |
| | | val tempSubRules = mutableListOf<Evaluationsubrule2>() |
| | | for (i in rules) { |
| | | if (i.fatherid == temp.guid && i.ertype == 4) { |
| | | tempSubRules.add(i) |
| | | } |
| | | } |
| | | tempSubRules.sortBy { ts -> ts.displayid } |
| | | _rules.add(Pair(temp, tempSubRules)) |
| | | } |
| | | } |
| | | this@EvaluationScene.totalScore.value = t |
| | | this@EvaluationScene.totalScore.cacheMap[config?.sceneType.toString()] = t |
| | | this@EvaluationScene.rules.value = _rules |
| | | this@EvaluationScene.rules.cacheMap[config?.sceneType.toString()] = _rules |
| | | } |
| | | cacheMap[config?.sceneType.toString()] = _topItems |
| | | return@InfoProxy _topItems |
| | | } |
| | | |
| | | // FIXME: 2023/8/9 åè§åçè·åå¿
é¡»å¨[topItems]è°ç¨ä¹åï¼å¦å为空 |
| | | //èªå¨è¯åè§åäºçº§åä¸çº§åç±» |
| | | val rules = InfoProxy<MutableList<Pair<Evaluationsubrule2, MutableList<Evaluationsubrule2>>>>() |
| | | |
| | | //å¿
å¡«å°è´¦æ°é |
| | | val ledgerCount = InfoProxy<Int>(config?.sceneType.toString()) {_, cacheMap -> |
| | | val tzSceneType = Constant.ScenseType.typeMap(scene.value?.typeid) |
| | | val list = aopDbMapper.ledgerSubTypeMapper.selectCountByExample(Example(LedgerSubType::class.java).apply { |
| | | createCriteria().andEqualTo("lScenetype", tzSceneType).andEqualTo("lNeedupdate", true) |
| | | }) |
| | | cacheMap[config?.sceneType.toString()] = list |
| | | return@InfoProxy list |
| | | } |
| | | |
| | | //ç¨æ·å®é
æäº¤å°è´¦æ°é |
| | | val ledgerRecords = InfoProxy<List<LedgerRecord>> {_,_ -> |
| | | return@InfoProxy aopDbMapper.ledgerRecordMapper.selectByExample(Example(LedgerRecord::class.java).apply { |
| | | createCriteria().andEqualTo("lrYear", config?.year) |
| | | .andEqualTo("lrMonth", config?.month) |
| | | .andEqualTo("lrSubmitid", userInfoTZ.value?.guid) |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * è·åå½åå·¡æ¥ä»»å¡ç䏿巡æ¥è®°å½ |
| | | */ |
| | | fun lastSubTask(): EvaluationScene { |
| | | val last = EvaluationScene() |
| | | val r = aopDbMapper.subtaskMapper.selectByExample(Example(Subtask::class.java).apply { |
| | | createCriteria().andEqualTo("scenseid", subTask.value?.scenseid) |
| | | .andLessThan("planstarttime", subTask.value?.planstarttime) |
| | | orderBy("planstarttime").desc() |
| | | }) |
| | | if (r.isNotEmpty()) { |
| | | val thisMonth = LocalDateTime.ofInstant(subTask.value?.planstarttime?.toInstant(), ZoneId.systemDefault()) |
| | | .withDayOfMonth(1).toLocalDate() |
| | | val lastMonth = LocalDateTime.ofInstant(r[0]?.planstarttime?.toInstant(), ZoneId.systemDefault()).withDayOfMonth(1).toLocalDate() |
| | | if (lastMonth.plusMonths(1).isEqual(thisMonth)) { |
| | | last.subTask.value = r[0] |
| | | } |
| | | } |
| | | return last |
| | | } |
| | | |
| | | /** |
| | | * æ¸
空å½åå¤çç对象çç¸å
³æ°æ®æº |
| | | */ |
| | | fun clear() { |
| | | scene.clear() |
| | | userInfo.clear() |
| | | userInfoTZ.clear() |
| | | subTask.clear() |
| | | inspection.clear() |
| | | baseScene.clear() |
| | | problems.clear() |
| | | evaluation.clear() |
| | | itemevaluationList.clear() |
| | | problemTypes.clear() |
| | | baseRule.clear() |
| | | totalScore.clear() |
| | | topItems.clear() |
| | | rules.clear() |
| | | ledgerCount.clear() |
| | | ledgerRecords.clear() |
| | | } |
| | | |
| | | /** |
| | | * å¤æåºæ¯æ¯å¦å·¡æ¥çç®¡ï¼ææ å·¡æ¥è®°å½ |
| | | */ |
| | | fun noRecord() = subTask.value?.stguid == null |
| | | } |
| | | |
| | | // è¯ä¼°å¯¹è±¡ç¸å
³ä¿¡æ¯è·å代ç |
| | | inner class InfoProxy<T>( |
| | | val key: String? = null, |
| | | var fetch: (defaultValue: T?, cacheMap: MutableMap<String, T?>) -> T? = |
| | | { _, _ -> |
| | | null |
| | | }, |
| | | ) { |
| | | |
| | | private var _value: T? = null |
| | | private var fetched: Boolean = false |
| | | private var defaultValue: T? = null |
| | | private var cacheTimeStamp = LocalDateTime.now() |
| | | val cacheMap = mutableMapOf<String, T?>() |
| | | |
| | | var value: T? |
| | | get() { |
| | | if (defaultValue != null) { |
| | | return defaultValue |
| | | } else if (!fetched && _value == null) { |
| | | _value = if (cacheMap.containsKey(key) && LocalDateTime.now().minusDays(1).isBefore(cacheTimeStamp)) { |
| | | cacheMap[key] |
| | | } else { |
| | | cacheTimeStamp = LocalDateTime.now() |
| | | fetch(defaultValue, cacheMap) |
| | | } |
| | | fetched = true |
| | | } |
| | | return _value |
| | | } |
| | | set(value) { |
| | | defaultValue = value |
| | | } |
| | | |
| | | fun clear() { |
| | | defaultValue = null |
| | | _value = null |
| | | fetched = false |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.datasource |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.* |
| | | import cn.flightfeather.supervision.domain.ds2.mapper.* |
| | | import org.springframework.stereotype.Component |
| | | |
| | | @Component |
| | | class AopDbMapper ( |
| | | val scenseMapper: ScenseMapper, |
| | | val problemlistMapper: ProblemlistMapper, |
| | | val problemtypeMapper: ProblemtypeMapper, |
| | | val subtaskMapper: SubtaskMapper, |
| | | val inspectionMapper: InspectionMapper, |
| | | val monitorobjectversionMapper: MonitorobjectversionMapper, |
| | | val sceneConstructionSiteMapper: SceneConstructionSiteMapper, |
| | | val sceneMixingPlantMapper: SceneMixingPlantMapper, |
| | | val sceneStorageYardMapper: SceneStorageYardMapper, |
| | | val sceneWharfMapper: SceneWharfMapper, |
| | | val taskMapper: TaskMapper, |
| | | val evaluationruleMapper: EvaluationruleMapper, |
| | | val evaluationsubruleMapper: EvaluationsubruleMapper2, |
| | | val evaluationMapper: EvaluationMapper, |
| | | val itemevaluationMapper: ItemevaluationMapper, |
| | | val ledgerSubTypeMapper: LedgerSubTypeMapper, |
| | | val ledgerRecordMapper: LedgerRecordMapper, |
| | | val userinfoMapper: UserinfoMapper, |
| | | val userinfoTZMapper: UserinfoTZMapper, |
| | | val userMapMapper: UserMapMapper, |
| | | val townMapper: TownMapper, |
| | | val restaurantBaseInfoMapper: RestaurantBaseInfoMapper, |
| | | val vehicleBaseInfoMapper: VehicleBaseInfoMapper |
| | | ) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.datasource |
| | | |
| | | import cn.flightfeather.supervision.common.utils.Constant |
| | | import org.springframework.stereotype.Component |
| | | |
| | | /** |
| | | * åºæ¯ç±»å夿 |
| | | * ç¯ä¿¡ç èªå¨è¯ä¼°ä¸ï¼åä¸è¯ä¼°çä¸ååºæ¯ç±»åï¼å¯è½é¨åå¤äºç°åºç管ï¼é¨å没æï¼ |
| | | * ç°åºç管çåºæ¯ï¼åºæ¯ç±»åä½¿ç¨æ¬ç³»ç»ï¼é£ç¾½ç管ï¼çå®ä¹ï¼ |
| | | * æªç°åºç管çåºæ¯ï¼åºæ¯ç±»å使ç¨ï¼é£ç¾½ç¯å¢ï¼ç³»ç»ä¸çå®ä¹ï¼ |
| | | * åºæ¯ç±»åçå®ä¹éæ©ï¼åææ°æ®åºé
ç½®å³å®ï¼å¯ç±ç®¡çç¨æ·èªè¡ä¿®æ¹é
ç½®ï¼ï¼ |
| | | */ |
| | | @Component |
| | | class AopSceneTypeCheck { |
| | | |
| | | /** |
| | | * åºæ¯ç±»åå¤å® |
| | | * @return å¤æç»æï¼ï¼æ¯å¦ä½¿ç¨æ¬ç³»ç»å®ä¹ï¼ç±»åå¼ï¼ |
| | | */ |
| | | fun checkSceneType(sceneType: Int): Pair<Boolean, Int> { |
| | | // TODO: 2023/9/7 éè¿æ°æ®åºé
置表å³å®å½åç±»åçæç»ç±»åå®ä¹ |
| | | |
| | | // FIXME: 2023/9/7 ææ¶åæ»ç¸å
³é
ç½® |
| | | return if (sceneType.toString() == Constant.ScenseType.TYPE6.value) { |
| | | Pair(false, Constant.ScenseType.typeMap(sceneType.toByte())!!.toInt()) |
| | | } else { |
| | | Pair(true, sceneType) |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.AopOutput |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopDataConfig |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopDataSource |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopDbMapper |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopSceneTypeCheck |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DustDataResult |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | import java.util.* |
| | | import kotlin.math.round |
| | | |
| | | /** |
| | | * çæµæ°æ®åæå
¥åº |
| | | * æ ¹æ®æ¯æä¸ºä¸ä¸ªå¨æï¼ç»è®¡å½æçè¶
æ æ¬¡æ°ãåå¼ãæå¤§æå°å¼ãè¶
åºåå¼ç¾åæ¯ãæ°æ®ä¸ªæ°ãææççæ°æ® |
| | | */ |
| | | abstract class AopDataAnalysis<T>( |
| | | private val aopDbMapper: AopDbMapper, |
| | | private val aopSceneTypeCheck: AopSceneTypeCheck, |
| | | private val aopOutput: AopOutput, |
| | | ) { |
| | | |
| | | /** |
| | | * ç»è®¡ä¸é´åå¨ç»æ |
| | | */ |
| | | inner class TempResult( |
| | | var total: Double = .0, |
| | | var count: Int = 0, |
| | | ){ |
| | | fun avg(): Double { |
| | | return if (count == 0) { |
| | | .0 |
| | | } else { |
| | | round((total / count) * 1000) / 1000 |
| | | } |
| | | } |
| | | } |
| | | |
| | | //æ°æ®æº |
| | | private var source: AopDataSource? = null |
| | | |
| | | fun setResource(topTaskGuid: String?, sceneType: Int, year: Int, month: Int) { |
| | | source = AopDataSource(aopDbMapper, aopSceneTypeCheck) |
| | | val st = LocalDateTime.of(year, month, 1, 0, 0, 0) |
| | | val et = st.plusMonths(1).minusSeconds(1) |
| | | val sTime = Date.from(st.atZone(ZoneId.systemDefault()).toInstant()) |
| | | val eTime = Date.from(et.atZone(ZoneId.systemDefault()).toInstant()) |
| | | val config = AopDataConfig(topTaskGuid = topTaskGuid, sceneType = sceneType, startTime = sTime, endTime = eTime) |
| | | source?.setResource(config) |
| | | } |
| | | |
| | | /** |
| | | * æ§è¡ç»è®¡é»è¾ |
| | | */ |
| | | fun execute() { |
| | | val dAvg = districtAvg(source) |
| | | //循ç¯å¤çæ¯ä¸ªåºæ¯ |
| | | source?.loop { _, evaluationScene -> |
| | | //è·ååå§çæµæ°æ® |
| | | val dataList = fetchDataResources(evaluationScene) |
| | | //计ç®ç»è®¡ç»æ |
| | | val tempExceedTimes = TempResult() |
| | | val tempAvg = TempResult() |
| | | val tempMax = TempResult() |
| | | val tempMin = TempResult() |
| | | dataList.forEach { |
| | | it.forEach {t -> |
| | | t?.let { |
| | | exceedTimes(t, tempExceedTimes) |
| | | avg(t, tempAvg) |
| | | max(t, tempMax) |
| | | min(t, tempMin) |
| | | } |
| | | } |
| | | } |
| | | val dustDataResult = DustDataResult().apply { |
| | | drSceneId = evaluationScene.scene.value?.guid |
| | | drSceneName = evaluationScene.scene.value?.name |
| | | drTime = source?.config?.startTime |
| | | drExceedTimes = tempExceedTimes.count |
| | | drAvg = tempAvg.avg() |
| | | drMax = tempMax.total |
| | | drMin = tempMin.total |
| | | drOverAvgPer = overAvgRate(drAvg, dAvg) |
| | | drDataNum = count(dataList) |
| | | drEffectiveRate = effectiveRate(dataList, evaluationScene) |
| | | } |
| | | //æ´æ°å
¥åº |
| | | aopOutput.toDbDataResult(dustDataResult) |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 计ç®åºåå¼ |
| | | * å½å为èå´å
å
¨é¨çæµç¹çåå¼ |
| | | */ |
| | | abstract fun districtAvg(source: AopDataSource?): Double? |
| | | |
| | | /** |
| | | * è·ååå§çæµæ°æ® |
| | | */ |
| | | abstract fun fetchDataResources(evaluationScene: AopDataSource.EvaluationScene): List<List<T?>> |
| | | |
| | | /** |
| | | * è¶
æ æ¬¡æ° |
| | | */ |
| | | abstract fun exceedTimes(data: T, t: TempResult) |
| | | |
| | | /** |
| | | * æåå¼ |
| | | */ |
| | | abstract fun avg(data: T, t: TempResult) |
| | | |
| | | /** |
| | | * æå¤§å¼ |
| | | */ |
| | | abstract fun max(data: T, t: TempResult) |
| | | |
| | | /** |
| | | * æå°å¼ |
| | | */ |
| | | abstract fun min(data: T, t: TempResult) |
| | | |
| | | /** |
| | | * è¶
æåå¼ç¾åæ¯ |
| | | */ |
| | | abstract fun overAvgRate(avg: Double, dAvg: Double?): Double |
| | | |
| | | /** |
| | | * æ°æ®ä¸ªæ° |
| | | */ |
| | | open fun count(dataList: List<List<T?>>): Int { |
| | | var count = 0 |
| | | dataList.forEach { |
| | | count += it.size |
| | | } |
| | | return count |
| | | } |
| | | |
| | | /** |
| | | * ææç |
| | | */ |
| | | abstract fun effectiveRate(dataList: List<List<T?>>, evaluationScene: AopDataSource.EvaluationScene): Double |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.AopOutput |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopDataSource |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopDbMapper |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopSceneTypeCheck |
| | | import cn.flightfeather.supervision.business.autooutput.score.construction.CsScoreItem1 |
| | | import cn.flightfeather.supervision.business.autooutput.score.construction.CsScoreItem2 |
| | | import cn.flightfeather.supervision.business.autooutput.score.mixingplant.MpScoreItem1 |
| | | import cn.flightfeather.supervision.business.autooutput.score.mixingplant.MpScoreItem2 |
| | | import cn.flightfeather.supervision.business.autooutput.score.restaurant.* |
| | | import cn.flightfeather.supervision.business.autooutput.score.storage.StScoreItem1 |
| | | import cn.flightfeather.supervision.business.autooutput.score.wharf.WhScoreItem1 |
| | | import cn.flightfeather.supervision.business.autooutput.score.wharf.WhScoreItem2 |
| | | import cn.flightfeather.supervision.common.utils.UUIDGenerator |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluation |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Itemevaluation |
| | | import org.springframework.stereotype.Component |
| | | import java.util.* |
| | | import kotlin.math.abs |
| | | |
| | | /** |
| | | * èªå¨è¯ä¼°æµç¨ |
| | | */ |
| | | @Component |
| | | class AopEvaluation( |
| | | private val aopDbMapper: AopDbMapper, |
| | | private val aopSceneTypeCheck: AopSceneTypeCheck, |
| | | private val aopOutput: AopOutput, |
| | | csScoreItem1: CsScoreItem1, |
| | | csScoreItem2: CsScoreItem2, |
| | | mpScoreItem1: MpScoreItem1, |
| | | mpScoreItem2: MpScoreItem2, |
| | | stScoreItem1: StScoreItem1, |
| | | whScoreItem1: WhScoreItem1, |
| | | whScoreItem2: WhScoreItem2, |
| | | reScoreItem5: ReScoreItem5, |
| | | reScoreItem7: ReScoreItem7, |
| | | reScoreItem8: ReScoreItem8, |
| | | reScoreItem9: ReScoreItem9, |
| | | reScoreItem10: ReScoreItem10, |
| | | reScoreItem11: ReScoreItem11, |
| | | ) { |
| | | |
| | | //æ°æ®æº |
| | | private var source: AopDataSource? = null |
| | | //ç¹å®è¯å项ï¼é¤äºç»ä¸çæ ¹æ®å·¡æ¥é®é¢ç´æ¥æ£åå¤ï¼æç¹å®çæ£åé»è¾çè¯ä¼°é¡¹ï¼ |
| | | private val itemList = mutableListOf<ScoreItem>() |
| | | |
| | | init { |
| | | itemList.apply { |
| | | add(csScoreItem1) |
| | | add(csScoreItem2) |
| | | add(mpScoreItem1) |
| | | add(mpScoreItem2) |
| | | add(stScoreItem1) |
| | | add(whScoreItem1) |
| | | add(whScoreItem2) |
| | | add(reScoreItem5) |
| | | add(reScoreItem7) |
| | | add(reScoreItem8) |
| | | add(reScoreItem9) |
| | | add(reScoreItem10) |
| | | add(reScoreItem11) |
| | | } |
| | | } |
| | | |
| | | fun setResource(topTaskGuid: String?, sceneType: Int, districtName: String? = null, townCode: String? = null) { |
| | | source = AopDataSource(aopDbMapper, aopSceneTypeCheck) |
| | | source?.setResource(topTaskGuid, sceneType, districtName, townCode) |
| | | } |
| | | |
| | | /** |
| | | * æ§è¡è¯åé»è¾ |
| | | */ |
| | | fun execute() { |
| | | //è·åæ°æ®æºï¼å¾
è¯ä¼°çåºæ¯ï¼ |
| | | //循ç¯å¤çæ¯ä¸ªåºæ¯ |
| | | source?.loop {index, evaluationScene -> |
| | | if (evaluationScene.noRecord()) return@loop |
| | | |
| | | itemGrade(index, evaluationScene) |
| | | totalGrade(index, evaluationScene)?.run { |
| | | aopOutput.toDbEvaluation(evaluationScene, this) |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * æ¡ç®æå |
| | | */ |
| | | private fun itemGrade(index: Int, evaluationScene: AopDataSource.EvaluationScene) { |
| | | // è§åæ¡ç®å¾ååå§å |
| | | evaluationScene.topItems.value?.forEach { s -> s.extension1 = null } |
| | | evaluationScene.rules.value?.forEach { p -> |
| | | p.first.extension1 = null |
| | | p.second.forEach { e -> e.extension1 = null } |
| | | } |
| | | |
| | | /** 1. æ ¹æ®è¯åè§å对åºçé®é¢èªå¨å¤ææ¯å¦æ£å***************************************************************/ |
| | | // è·å该次巡æ¥ä»»å¡ä¸çææé®é¢ |
| | | val pList = evaluationScene.problems.value?.map { it.ptguid } ?: emptyList() |
| | | // è®¡ç®æ¯æ¡è¯åè§åçå¾å |
| | | evaluationScene.rules.value?.forEach { r -> |
| | | // è¯åæ¡ç® |
| | | val rule = r.first |
| | | // å
·ä½è¯åé项 |
| | | val subRule = r.second |
| | | subRule.forEach { sr -> |
| | | // åå¨å¤ä¸ªè¯å项ååä¸ä¸ªé®é¢å
³èï¼å æ¤å¿
é¡»å
¨é¨è¯å项é½å¤å®ä¸é |
| | | sr.problemlist?.split(",")?.forEach { pId -> |
| | | if (pList.contains(pId)) { |
| | | sr.extension1 = (0 - (sr.maxscore ?: 0)).toString() |
| | | } |
| | | } |
| | | } |
| | | |
| | | ScoreUtil.subRuleCal(r) |
| | | } |
| | | /** 2.é¨åæç¹æ®è¯åé»è¾çè§åè¿è¡è®¡ç®*************************************************************************/ |
| | | itemList.forEach { item -> item.execute(evaluationScene) } |
| | | |
| | | /** 3. è¡¥å
¨åä¸çº§è¯å项ç计å*************************************************************************/ |
| | | evaluationScene.rules.value?.forEach { r -> |
| | | val fatherId = r.first.fatherid |
| | | for (t in (evaluationScene.topItems.value ?: emptyList())) { |
| | | if (t.guid == fatherId) { |
| | | var s = t.extension1?.toIntOrNull() ?: 0 |
| | | s += r.first.extension1?.toIntOrNull() ?: 0 |
| | | // é嶿髿£å |
| | | if (abs(s) > (t.maxscore ?: 0)) { |
| | | s = 0 - (t.maxscore ?: 0) |
| | | } |
| | | t.extension1 = s.toString() |
| | | break |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è®¡ç®æ»å |
| | | */ |
| | | private fun totalGrade(index: Int, evaluationScene: AopDataSource.EvaluationScene): Pair<Evaluation, List<Itemevaluation>>? { |
| | | val scene = evaluationScene.scene.value ?: return null |
| | | val topItems = evaluationScene.topItems.value ?: return null |
| | | val rules = evaluationScene.rules.value ?: return null |
| | | val subTask = evaluationScene.subTask.value |
| | | val inspection = evaluationScene.inspection.value |
| | | val totalScore = evaluationScene.totalScore.value ?: return null |
| | | |
| | | var total = 0//æ»æ£é¤çåæ° |
| | | evaluationScene.topItems.value?.forEach top@{ top -> |
| | | total += top.extension1?.toIntOrNull() ?: 0 |
| | | } |
| | | val evaluation = Evaluation().apply { |
| | | evaluationScene.baseRule.value?.let { |
| | | guid = UUIDGenerator.generate16ShortUUID() |
| | | iguid = inspection?.guid |
| | | stguid = subTask?.stguid |
| | | sguid = subTask?.scenseid |
| | | scensetypeid = scene.typeid |
| | | scensetype = scene.type |
| | | subscensetypeid = scene.scensesubtypeid |
| | | subscensetype = scene.scensesubtype |
| | | ertype = it.ruletype?.toByte() |
| | | provincecode = scene.provincecode |
| | | provincename = scene.provincename |
| | | citycode = scene.citycode |
| | | cityname = scene.cityname |
| | | districtcode = scene.districtcode |
| | | districtname = scene.districtname |
| | | towncode = scene.towncode |
| | | townname = scene.townname |
| | | scensename = scene.name |
| | | scenseaddress = scene.location |
| | | evaluatetime = subTask?.planstarttime |
| | | evaluatorguid = "admin" |
| | | evaluatorusername = "admin" |
| | | evaluatorrealname = "admin" |
| | | resultscorebef = (totalScore - abs(total)).toString() |
| | | createdate = subTask?.planstarttime |
| | | updatedate = Date() |
| | | } |
| | | } |
| | | //å项å
·ä½å¾å |
| | | val itemevaluationList = mutableListOf<Itemevaluation>() |
| | | topItems.forEach { subRule -> |
| | | val item = ScoreUtil.newItemEvaluation(evaluationScene, subRule) |
| | | itemevaluationList.add(item) |
| | | } |
| | | rules.forEach { p -> |
| | | if (p.first.ertype != 2) { |
| | | val item = ScoreUtil.newItemEvaluation(evaluationScene, p.first) |
| | | itemevaluationList.add(item) |
| | | } |
| | | p.second.forEach { r -> |
| | | val item1 = ScoreUtil.newItemEvaluation(evaluationScene, r) |
| | | itemevaluationList.add(item1) |
| | | } |
| | | } |
| | | return Pair(evaluation, itemevaluationList) |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopDataSource |
| | | import cn.flightfeather.supervision.common.utils.DateUtil |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluationsubrule2 |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Problemlist |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.ProblemlistMapper |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import tk.mybatis.mapper.entity.Example |
| | | import kotlin.math.abs |
| | | |
| | | /** |
| | | * èªå¨è¯åæ¡ç® |
| | | */ |
| | | abstract class ScoreItem() { |
| | | |
| | | //èªå¨è¯åæ¡ç®id |
| | | abstract var id: String |
| | | //èªå¨è¯åæ¡ç®åç§° |
| | | abstract var name:String |
| | | //æå¤§åå¼ |
| | | var maxScore: Int = 0 |
| | | //æå°åå¼ï¼é»è®¤0åï¼ |
| | | var minScore: Int = 0 |
| | | |
| | | val dateUtil = DateUtil() |
| | | // è¯å项æ¯å¦è±å
䏿£å |
| | | var exemption = false |
| | | |
| | | lateinit var evaluationScene: AopDataSource.EvaluationScene |
| | | |
| | | private var rulePair: Pair<Evaluationsubrule2, MutableList<Evaluationsubrule2>>? = null |
| | | |
| | | @Autowired |
| | | lateinit var problemlistMapper: ProblemlistMapper |
| | | |
| | | /** |
| | | * åªæ§è¡ç¹æ®æ£åé»è¾ |
| | | */ |
| | | fun execute(evaluationScene: AopDataSource.EvaluationScene) { |
| | | this.evaluationScene = evaluationScene |
| | | if (!exemption && !evaluationScene.noRecord()) { |
| | | getRule(evaluationScene.rules.value) |
| | | calScore() |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åè¯åè§å |
| | | */ |
| | | private fun getRule(eList: MutableList<Pair<Evaluationsubrule2, MutableList<Evaluationsubrule2>>>?) { |
| | | if (eList == null) return |
| | | for (e in eList) { |
| | | if (e.first.guid == id) { |
| | | rulePair = e |
| | | e.first.maxscore?.let { maxScore = it } |
| | | e.first.minscore?.let { minScore = it } |
| | | e.second.sortBy { it.displayid } |
| | | break |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ç³»ç»å¤è·åçä¿¡æ¯ï¼è¿è¡æ£åå¤å®ãè¿åéè¦æ£åçæ¡ç®åºå· |
| | | * @param size ä¼ å
¥è¯åæ¡ç®çæ°éï¼è¯åæ¡ç®æç
§ä¸å®è§åè¿è¡æåº |
| | | * @return è¿åéè¦æ£åçè¯åæ¡ç®çåºå· |
| | | */ |
| | | abstract fun otherProblem(size: Int): Int? |
| | | |
| | | /** |
| | | * èªå¨è¯å计ç®é»è¾ |
| | | */ |
| | | fun calScore() { |
| | | if (rulePair?.second == null || rulePair?.second?.isEmpty() == true) { |
| | | println("${name}: è¯åæ¡ç®ä¸ºç©ºï¼ä¸åè¯å") |
| | | return |
| | | } |
| | | |
| | | otherProblem(rulePair?.second!!.size)?.let {i-> rulePair?.second!![i].getScore() } |
| | | |
| | | ScoreUtil.subRuleCal(rulePair) |
| | | } |
| | | |
| | | /** |
| | | * å忍¡å¼ä¸ï¼è®¡ç®å
·ä½é项çå¾å |
| | | */ |
| | | fun Evaluationsubrule2.getScore() { |
| | | extension1 = (0 - (maxscore ?: 0)).toString() |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score |
| | | |
| | | import cn.flightfeather.supervision.business.Info |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopDataSource |
| | | import cn.flightfeather.supervision.common.utils.UUIDGenerator |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluationrule |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluationsubrule2 |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Inspection |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Itemevaluation |
| | | import kotlin.math.abs |
| | | |
| | | /** |
| | | * å¾å计ç®å·¥å
· |
| | | * è¯åè¡¨æ ¼å为ä¸ä¸ªå±çº§ |
| | | * 第ä¸å±ä¸ºå¤§åç±»ï¼ç¬¬äºå±ä¸ºè¯ä¼°æ åï¼ç¬¬ä¸å±ä¸ºæ å对åºçä¸åç¨åº¦çè¯ä¼°ç»æ |
| | | */ |
| | | object ScoreUtil { |
| | | |
| | | /** |
| | | * è®¡ç®æä¸å
·ä½è¯åæ åçå¾å |
| | | * é对å忍¡å¼ |
| | | */ |
| | | fun subRuleCal(rulePair: Pair<Evaluationsubrule2, MutableList<Evaluationsubrule2>>?) { |
| | | val rule = rulePair?.first |
| | | val itemList = rulePair?.second |
| | | var total: Int? = null |
| | | itemList?.forEach { |
| | | if (!it.extension1.isNullOrBlank()) { |
| | | total = (total ?: 0) + it.extension1!!.toInt() |
| | | } |
| | | } |
| | | if (total == null) { |
| | | rule?.extension1 = "0" |
| | | } else { |
| | | val s = if (abs(total!!) > rule?.maxscore!!) { |
| | | 0 - rule.maxscore!! |
| | | } else { |
| | | total |
| | | } |
| | | rule.extension1 = s.toString() |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * çææ°ç䏿¡è¯åè®°å½ |
| | | */ |
| | | fun newItemEvaluation(evaluationScene: AopDataSource.EvaluationScene, itemRule: Evaluationsubrule2) = |
| | | Itemevaluation().apply { |
| | | val rule = evaluationScene.baseRule.value |
| | | val subTask = evaluationScene.subTask.value |
| | | val inspection = evaluationScene.inspection.value |
| | | ieguid = UUIDGenerator.generate16ShortUUID() |
| | | iguid = inspection?.guid |
| | | stguid = subTask?.stguid |
| | | sguid = subTask?.scenseid |
| | | sensename = subTask?.scensename |
| | | erguid = rule?.guid |
| | | rulename = rule?.rulename |
| | | ruletype = rule?.ruletype?.toInt() |
| | | ertype = itemRule.ertype |
| | | esrguid = itemRule.guid |
| | | name = itemRule.itemname |
| | | value = itemRule.extension1 ?: "0" |
| | | extension1 = (itemRule.extension1 != null).toString() |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.construction |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.ScoreItem |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Problemlist |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import javax.annotation.PostConstruct |
| | | |
| | | /** |
| | | * Date 2022/1/20 16:14 |
| | | * Created by feiyu |
| | | * å·¥å° |
| | | */ |
| | | @Component |
| | | class CsScoreItem1: ScoreItem() { |
| | | |
| | | companion object { |
| | | private lateinit var instance: CsScoreItem1 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | override var id: String = "amSNTZfXs2XXR1td" |
| | | |
| | | override var name: String = "æ´æ¹æªæ½åææ" |
| | | |
| | | /** |
| | | * æ§æ³æ£æ¥æ±æ»æ
åµ |
| | | * é项å¦ä¸ï¼ |
| | | * 1.é®é¢é¨åæ´æ¹æä¸åæ¶æä¾ææ |
| | | * 2.é®é¢æ æ´æ¹ |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | val p = problemlistMapper.selectByExample(Example(Problemlist::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", evaluationScene.subTask.value?.stguid) |
| | | // .andGreaterThanOrEqualTo("time", info.sTime) |
| | | // .andLessThan("time", info.eTime) |
| | | }) |
| | | var i = 0 |
| | | |
| | | val total = p.size |
| | | var changed = 0 |
| | | p.forEach { |
| | | if (it.ischanged == true) { |
| | | changed++ |
| | | } |
| | | } |
| | | return when { |
| | | changed == 0 && total > 0 -> 1 |
| | | changed < total -> 0 |
| | | else -> null |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.construction |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.ScoreItem |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DustDataResult |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.DustDataResultMapper |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | import javax.annotation.PostConstruct |
| | | |
| | | /** |
| | | * Date 2022/1/20 16:14 |
| | | * Created by feiyu |
| | | * å·¥å° |
| | | */ |
| | | @Component |
| | | class CsScoreItem2: ScoreItem() { |
| | | |
| | | companion object { |
| | | private lateinit var instance: CsScoreItem2 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | override var id: String = "dCQbQ8ibc6nexiJo" |
| | | |
| | | override var name: String = "æ¬å°å¨çº¿çæµæ°æ®é级" |
| | | |
| | | @Autowired |
| | | lateinit var dustDataResultMapper: DustDataResultMapper |
| | | |
| | | /** |
| | | * æ¬å°å¨çº¿çæµæ°æ®é级 |
| | | * é项å¦ä¸ï¼ |
| | | * 1.çæµæ°æ®åºç°åæ¥å以䏿æè¶
æ |
| | | * 2.çæµæ°æ®æåå¼è¶
åºåæåå¼20%ä»¥ä¸ææ°æ®ææ¾å¼å¸¸ |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | val time = evaluationScene.subTask.value?.planstarttime |
| | | val lt = LocalDateTime.ofInstant(time?.toInstant(), ZoneId.systemDefault()) |
| | | val st = lt.withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0) |
| | | val et = st.plusMonths(1) |
| | | val r = dustDataResultMapper.selectByExample(Example(DustDataResult::class.java).apply { |
| | | createCriteria().andGreaterThanOrEqualTo("drTime", st) |
| | | .andLessThan("drTime", et) |
| | | .andEqualTo("drSceneId", evaluationScene.scene.value?.guid) |
| | | }) |
| | | |
| | | var result: Int? = null |
| | | r.forEach { |
| | | if (it == null) return@forEach |
| | | if (it.drExceedTimes > 0) { |
| | | result = 0 |
| | | } |
| | | if (it.drOverAvgPer > 0.2) { |
| | | result = 1 |
| | | } |
| | | } |
| | | |
| | | return result |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.construction |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.AopOutput |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopDataSource |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopDbMapper |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopSceneTypeCheck |
| | | import cn.flightfeather.supervision.business.autooutput.score.AopDataAnalysis |
| | | import cn.flightfeather.supervision.domain.ds2.entity.DustSiteMap |
| | | import cn.flightfeather.supervision.domain.ds2.entity.HourDustData |
| | | import cn.flightfeather.supervision.domain.ds2.mapper.DustSiteMapMapper |
| | | import cn.flightfeather.supervision.domain.ds2.mapper.HourDustDataMapper |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.Duration |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | import kotlin.math.round |
| | | |
| | | /** |
| | | * éå®å·¥å°æ¬å°çæµæ°æ®ç»è®¡ |
| | | */ |
| | | @Component |
| | | class JADataAnalysis( |
| | | aopDbMapper: AopDbMapper, |
| | | aopSceneTypeCheck: AopSceneTypeCheck, |
| | | aopOutput: AopOutput, |
| | | private val dustSiteMapMapper: DustSiteMapMapper, |
| | | private val hourDustDataMapper: HourDustDataMapper, |
| | | ) : AopDataAnalysis<HourDustData>(aopDbMapper, aopSceneTypeCheck, aopOutput) { |
| | | |
| | | companion object { |
| | | private const val FLAG_NA = "NA" |
| | | private const val FLAG_N = "N" |
| | | private const val FLAG_I = "I" |
| | | } |
| | | |
| | | override fun districtAvg(source: AopDataSource?): Double? { |
| | | var total = .0 |
| | | var count = 0 |
| | | hourDustDataMapper.selectByExample(Example(HourDustData::class.java).apply { |
| | | createCriteria().andBetween("lst", source?.config?.startTime, source?.config?.endTime) |
| | | }).forEach { |
| | | it?.dustvalue?.let { v -> |
| | | total += v |
| | | count++ |
| | | } |
| | | } |
| | | return if (count == 0) { |
| | | .0 |
| | | } else { |
| | | round((total / count) * 1000) / 1000 |
| | | } |
| | | } |
| | | |
| | | override fun fetchDataResources(evaluationScene: AopDataSource.EvaluationScene): List<List<HourDustData?>> { |
| | | val dustSiteMaps = dustSiteMapMapper.selectByExample(Example(DustSiteMap::class.java).apply { |
| | | createCriteria().andEqualTo("svUserId", evaluationScene.userInfo.value?.guid) |
| | | .andIsNotNull("jaMnCode") |
| | | }) |
| | | if (dustSiteMaps.isEmpty()) return emptyList() |
| | | |
| | | val mnCodeList = dustSiteMaps.map { it?.jaMnCode } |
| | | val map = mutableMapOf<String?, MutableList<HourDustData?>>() |
| | | hourDustDataMapper.selectByExample(Example(HourDustData::class.java).apply { |
| | | createCriteria().andBetween("lst", evaluationScene.config?.startTime, evaluationScene.config?.endTime) |
| | | .andIn("mncode", mnCodeList) |
| | | }).forEach { |
| | | if (!map.containsKey(it?.mncode)) { |
| | | map[it?.mncode] = mutableListOf() |
| | | } |
| | | map[it?.mncode]?.add(it) |
| | | } |
| | | val res = mutableListOf<List<HourDustData?>>() |
| | | map.forEach { (_, u) -> |
| | | res.add(u) |
| | | } |
| | | return res |
| | | } |
| | | |
| | | override fun exceedTimes(data: HourDustData, t: TempResult) { |
| | | data.dustvalue?.let { |
| | | if (it >= 1) { |
| | | t.count++ |
| | | } |
| | | } |
| | | } |
| | | |
| | | override fun avg(data: HourDustData, t: TempResult) { |
| | | // è¡¥ä¼ çä¸è®¡ç® |
| | | if (data.flag == FLAG_NA) return |
| | | |
| | | data.dustvalue?.let { |
| | | t.total += it |
| | | t.count++ |
| | | } |
| | | } |
| | | |
| | | override fun max(data: HourDustData, t: TempResult) { |
| | | data.dustvalue?.let { |
| | | if (it > t.total) { |
| | | t.total = it |
| | | } |
| | | } |
| | | } |
| | | |
| | | override fun min(data: HourDustData, t: TempResult) { |
| | | // è¡¥ä¼ çä¸è®¡ç® |
| | | if (data.flag == FLAG_NA) return |
| | | |
| | | data.dustvalue?.let { |
| | | if (t.count == 0 || it < t.total) { |
| | | t.total = it |
| | | } |
| | | // éè¿t.count æ¥å¤å®æ¯å¦æ¯åå§åç¶æ |
| | | if (t.count == 0) t.count = 1 |
| | | } |
| | | } |
| | | |
| | | override fun overAvgRate(avg: Double, dAvg: Double?): Double { |
| | | return if (dAvg != null) { |
| | | round(((avg - dAvg) / dAvg) * 1000) / 1000 |
| | | } else { |
| | | .0 |
| | | } |
| | | } |
| | | |
| | | override fun count(dataList: List<List<HourDustData?>>): Int { |
| | | var count = 0 |
| | | dataList.forEach { |
| | | it.forEach {h -> |
| | | if (h?.flag != FLAG_NA) { |
| | | count ++ |
| | | } |
| | | } |
| | | } |
| | | return count |
| | | } |
| | | |
| | | override fun effectiveRate(dataList: List<List<HourDustData?>>, evaluationScene: AopDataSource.EvaluationScene): |
| | | Double { |
| | | if (dataList.isEmpty()) return .0 |
| | | |
| | | val st = LocalDateTime.ofInstant(evaluationScene.config?.startTime?.toInstant(), ZoneId.systemDefault()) |
| | | val et = LocalDateTime.ofInstant(evaluationScene.config?.endTime?.toInstant(), ZoneId.systemDefault()) |
| | | val days = Duration.between(st, et).toDays() + 1 |
| | | |
| | | return if (days == 0L) { |
| | | .0 |
| | | } else { |
| | | round((count(dataList) / (dataList.size * days * 24).toDouble()) * 1000) / 1000 |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.construction |
| | | |
| | | import cn.flightfeather.supervision.business.Info |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluation |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Score |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.ScoreMapper |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | |
| | | /** |
| | | * 䏿µ·å¸éå®åºåç¬ç50åå¶è¯åç»æï¼ |
| | | * æ ¹æ®èªå¨è¯åç»æè¿è¡è½¬æ¢å¾åº |
| | | */ |
| | | @Component |
| | | class JAScore { |
| | | |
| | | @Autowired |
| | | lateinit var scoreMapper: ScoreMapper |
| | | |
| | | fun toDb(e: Evaluation, info: Info) { |
| | | val time = LocalDateTime.ofInstant(e.evaluatetime?.toInstant(), ZoneId.systemDefault()) |
| | | val scoreVo = Score().apply { |
| | | sceneId = e.sguid |
| | | sceneName = e.scensename |
| | | year = time.year |
| | | month = time.monthValue |
| | | districtCode = e.districtcode |
| | | districtName = e.districtname |
| | | score = transform(e.resultscorebef?.toIntOrNull() ?: 0) |
| | | completion = !info.online |
| | | } |
| | | |
| | | val res = scoreMapper.selectByExample(Example(Score::class.java).apply { |
| | | createCriteria().andEqualTo("sceneId", e.sguid) |
| | | .andEqualTo("year", time.year) |
| | | .andEqualTo("month", time.monthValue) |
| | | }) |
| | | if (res.isNotEmpty()) { |
| | | scoreVo.id = res[0].id |
| | | scoreMapper.updateByPrimaryKeySelective(scoreVo) |
| | | } else { |
| | | scoreMapper.insert(scoreVo) |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * åæ°è½¬æ¢ |
| | | */ |
| | | private fun transform(oldS: Int): Int { |
| | | return when { |
| | | // åºæ¬è§è |
| | | oldS >= 90 -> 50 |
| | | // ä¸è§è |
| | | oldS >= 50 -> 30 |
| | | // 严éä¸è§è |
| | | else -> 10 |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.mixingplant |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.ScoreItem |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Problemlist |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import javax.annotation.PostConstruct |
| | | |
| | | /** |
| | | * Date 2022/1/20 16:14 |
| | | * Created by feiyu |
| | | * æ
æç« |
| | | */ |
| | | @Component |
| | | class MpScoreItem1: ScoreItem() { |
| | | |
| | | companion object { |
| | | private lateinit var instance: MpScoreItem1 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | override var id: String = "KxWcuelbrnCtzw6n" |
| | | |
| | | override var name: String = "æ´æ¹æªæ½åææ" |
| | | |
| | | /** |
| | | * æ§æ³æ£æ¥æ±æ»æ
åµ |
| | | * é项å¦ä¸ï¼ |
| | | * 1.é®é¢é¨åæ´æ¹æä¸åæ¶æä¾ææ |
| | | * 2.é®é¢æ æ´æ¹ |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | val p = problemlistMapper.selectByExample(Example(Problemlist::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", evaluationScene.subTask.value?.stguid) |
| | | // .andGreaterThanOrEqualTo("time", info.sTime) |
| | | // .andLessThan("time", info.eTime) |
| | | }) |
| | | var i = 0 |
| | | |
| | | val total = p.size |
| | | var changed = 0 |
| | | p.forEach { |
| | | if (it.ischanged == true) { |
| | | changed++ |
| | | } |
| | | } |
| | | return when { |
| | | changed == 0 && total > 0 -> 1 |
| | | changed < total -> 0 |
| | | else -> null |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.mixingplant |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.ScoreItem |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DustDataResult |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.DustDataResultMapper |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | import javax.annotation.PostConstruct |
| | | |
| | | /** |
| | | * Date 2022/1/20 16:14 |
| | | * Created by feiyu |
| | | * æ
æç« |
| | | */ |
| | | @Component |
| | | class MpScoreItem2: ScoreItem() { |
| | | |
| | | companion object { |
| | | private lateinit var instance: MpScoreItem2 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | override var id: String = "BoVfRjr5r7RtsqGC" |
| | | |
| | | override var name: String = "æ¬å°å¨çº¿çæµæ°æ®é级" |
| | | |
| | | @Autowired |
| | | lateinit var dustDataResultMapper: DustDataResultMapper |
| | | |
| | | /** |
| | | * æ¬å°å¨çº¿çæµæ°æ®é级 |
| | | * é项å¦ä¸ï¼ |
| | | * 1.çæµæ°æ®åºç°åæ¥å以䏿æè¶
æ |
| | | * 2.çæµæ°æ®æåå¼è¶
åºåæåå¼20%ä»¥ä¸ææ°æ®ææ¾å¼å¸¸ |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | val time = evaluationScene.subTask.value?.planstarttime |
| | | val lt = LocalDateTime.ofInstant(time?.toInstant(), ZoneId.systemDefault()) |
| | | val st = lt.withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0) |
| | | val et = st.plusMonths(1) |
| | | val r = dustDataResultMapper.selectByExample(Example(DustDataResult::class.java).apply { |
| | | createCriteria().andGreaterThanOrEqualTo("drTime", st) |
| | | .andLessThan("drTime", et) |
| | | .andEqualTo("drSceneId", evaluationScene.scene.value?.guid) |
| | | }) |
| | | |
| | | var result: Int? = null |
| | | r.forEach { |
| | | if (it == null) return@forEach |
| | | if (it.drExceedTimes > 0) { |
| | | result = 0 |
| | | } |
| | | if (it.drOverAvgPer > 0.2) { |
| | | result = 1 |
| | | } |
| | | } |
| | | |
| | | return result |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.restaurant |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.ScoreItem |
| | | import cn.flightfeather.supervision.domain.ds2.entity.Punishment |
| | | import cn.flightfeather.supervision.domain.ds2.mapper.PunishmentMapper |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.LocalDate |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | import java.util.* |
| | | import javax.annotation.PostConstruct |
| | | |
| | | @Component |
| | | class ReScoreItem10: ScoreItem() { |
| | | companion object { |
| | | private lateinit var instance: ReScoreItem10 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | @Autowired |
| | | lateinit var punishmentMapper: PunishmentMapper |
| | | |
| | | override var id: String = "dlALSsoF63Z2FOz0" |
| | | |
| | | override var name: String = "è¡æ¿å¤ç½" |
| | | |
| | | /** |
| | | * å£åº¦å
è¡æ¿å¤ç½è®°å½è§æ ¼å导å
¥ |
| | | * é项å¦ä¸ï¼ |
| | | * 1.æ è´£ä»¤æ´æ¹ãæ§æ³æè§åè¡æ¿å¤ç½ |
| | | * 2.æ¶å°è´£ä»¤æ¹æ£å³å®ä¹¦ |
| | | * 3.æ¶å°æ§æ³æè§ä¹¦ |
| | | * 4.æç¯å¢è¿æ³è¡ä¸ºä¸åå°è¡æ¿å¤ç½ |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | val time = evaluationScene.subTask.value?.planstarttime |
| | | val lt = LocalDateTime.ofInstant(time?.toInstant(), ZoneId.systemDefault()) |
| | | val s = lt.withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0) |
| | | val e = s.plusMonths(1) |
| | | |
| | | var i = 1 |
| | | when { |
| | | condition3(s, e) -> { |
| | | i = 3 |
| | | if (i > size - 1) i = size - 1 |
| | | return i |
| | | } |
| | | condition2(s, e) -> { |
| | | i = 2 |
| | | if (i > size - 1) i = size - 1 |
| | | return i |
| | | } |
| | | condition1(s, e) -> { |
| | | i = 1 |
| | | if (i > size - 1) i = size - 1 |
| | | return i |
| | | } |
| | | else -> return null |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * @return true æ¶å°è´£ä»¤æ¹æ£å³å®ä¹¦ |
| | | */ |
| | | private fun condition1(s: LocalDateTime, e: LocalDateTime): Boolean { |
| | | val p = punishmentMapper.selectByExample(Example(Punishment::class.java).apply { |
| | | createCriteria().andEqualTo("pmSceneId", evaluationScene.userInfoTZ.value?.guid) |
| | | .andEqualTo("pmExtension1", "1") |
| | | .andGreaterThanOrEqualTo("pmTime", s) |
| | | .andLessThan("pmTime", e) |
| | | }) |
| | | return p.isNotEmpty() |
| | | } |
| | | |
| | | /** |
| | | * @return true æ¶å°æ§æ³æè§ä¹¦ |
| | | */ |
| | | private fun condition2(s: LocalDateTime, e: LocalDateTime): Boolean { |
| | | return false |
| | | } |
| | | |
| | | /** |
| | | * @return true æç¯å¢è¿æ³è¡ä¸ºä¸åå°è¡æ¿å¤ç½ |
| | | */ |
| | | private fun condition3(s: LocalDateTime, e: LocalDateTime): Boolean { |
| | | val p = punishmentMapper.selectByExample(Example(Punishment::class.java).apply { |
| | | createCriteria().andEqualTo("pmSceneId", evaluationScene.userInfoTZ.value?.guid) |
| | | .andEqualTo("pmExtension1", "0") |
| | | .andGreaterThanOrEqualTo("pmTime", s) |
| | | .andLessThan("pmTime", e) |
| | | }) |
| | | return p.isNotEmpty() |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.restaurant |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.ScoreItem |
| | | import org.springframework.stereotype.Component |
| | | import javax.annotation.PostConstruct |
| | | |
| | | @Component |
| | | class ReScoreItem11: ScoreItem() { |
| | | companion object { |
| | | private lateinit var instance: ReScoreItem11 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | override var id: String = "QFzQPYgUXaHU4tTD" |
| | | |
| | | override var name: String="ä¿¡ç¨æ¿è¯ºèªè¯" |
| | | |
| | | /** |
| | | * é£ç¾½ç¯å¢APP年度æ¿è¯ºåæåº¦èªè¯è®°å½ |
| | | * é项å¦ä¸ï¼ |
| | | * 1.ç¯å¢ä¿¡ç¨ä¸è§èææ¿è¯ºæªææ¶æäº¤æè¶
æææï¼ä»¥åæ¶åæ³äººåæ´çæè¥ä¸æ§ç
§åæ´æªéæ°æ¿è¯ºç |
| | | * 2.ç¯å¢ä¿¡ç¨èªè¯æªææ¶èªè¯ææªææ¶æ |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | var i = 1 |
| | | if (condition1()) { |
| | | if (i > size - 1) i = size - 1 |
| | | return i |
| | | } else if (condition2()) { |
| | | i = 2 |
| | | if (i > size - 1) i = size - 1 |
| | | return i |
| | | } |
| | | return null |
| | | } |
| | | |
| | | /** |
| | | * @return true ç¯å¢ä¿¡ç¨ä¸è§èææ¿è¯ºæªææ¶æäº¤æè¶
æææï¼ä»¥åæ¶åæ³äººåæ´çæè¥ä¸æ§ç
§åæ´æªéæ°æ¿è¯ºç |
| | | */ |
| | | private fun condition1(): Boolean { |
| | | return false |
| | | } |
| | | |
| | | /** |
| | | * @return true ç¯å¢ä¿¡ç¨èªè¯æªææ¶èªè¯ææªææ¶æ |
| | | */ |
| | | private fun condition2(): Boolean { |
| | | return false |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.restaurant |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.ScoreItem |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DustDataResult |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluationsubrule2 |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.DustDataResultMapper |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | import javax.annotation.PostConstruct |
| | | |
| | | @Component |
| | | class ReScoreItem5: ScoreItem() { |
| | | companion object { |
| | | private lateinit var instance: ReScoreItem5 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | override var id: String = "PSQUi9f0f7JK6w9d" |
| | | |
| | | override var name: String="æ²¹çå¨çº¿çæµæ°æ®é级" |
| | | |
| | | @Autowired |
| | | lateinit var dustDataResultMapper: DustDataResultMapper |
| | | |
| | | /** |
| | | * 徿±åºé¤é¥®ç管平å°èç½è®°å½ãå¨çº¿çåææ°æ®åé«å³°ç»è¥æ¶æ®µå°æ¶è¶
æ æ
åµ |
| | | * é项å¦ä¸ï¼ |
| | | * 1.æ°æ®æ å¼å¸¸ä¸æ è¶
æ ææ¾ç¤ºååè£
ç½®æ¸
æ´ |
| | | * 2.é«å³°ç»è¥æ¶æ®µæ°æ®å¨çº¿çä½äº90%ææ¾ç¤ºååè£
ç½®æ
é |
| | | * 3.彿é«å³°ç»è¥æ¶æ®µåºç°ä¸æ¬¡å以ä¸10åéåå¼è¶
æ ææ¾ç¤ºååè£
ç½®è¾è |
| | | * 4.彿é«å³°ç»è¥æ¶æ®µæ°æ®æç»å¼å¸¸æåºç°ä¸æ¬¡å以ä¸å°æ¶æ°æ®è¶
æ ææ æ²¹çååè£
ç½®æååè£
ç½®æªæ£å¸¸å¼å¯ |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | var i = 1 |
| | | when { |
| | | condition1() -> { |
| | | if (i > size - 1) i = size - 1 |
| | | return i |
| | | } |
| | | condition2() -> { |
| | | i = 2 |
| | | if (i > size - 1) i = size - 1 |
| | | return i |
| | | } |
| | | condition3() -> { |
| | | i = 3 |
| | | if (i > size - 1) i = size - 1 |
| | | return i |
| | | } |
| | | else -> return null |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * @return true é«å³°ç»è¥æ¶æ®µæ°æ®å¨çº¿çä½äº90%ææ¾ç¤ºååè£
ç½®æ
é |
| | | */ |
| | | private fun condition1(): Boolean { |
| | | return false |
| | | } |
| | | |
| | | /** |
| | | * @return true 彿é«å³°ç»è¥æ¶æ®µåºç°ä¸æ¬¡å以ä¸10åéåå¼è¶
æ ææ¾ç¤ºååè£
ç½®è¾è |
| | | */ |
| | | private fun condition2(): Boolean { |
| | | val time = evaluationScene.subTask.value?.planstarttime |
| | | val lt = LocalDateTime.ofInstant(time?.toInstant(), ZoneId.systemDefault()) |
| | | val st = lt.withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0) |
| | | val et = st.plusMonths(1) |
| | | val r = dustDataResultMapper.selectByExample(Example(DustDataResult::class.java).apply { |
| | | createCriteria().andGreaterThanOrEqualTo("drTime", st) |
| | | .andLessThan("drTime", et) |
| | | .andEqualTo("drSceneId", evaluationScene.scene.value?.guid) |
| | | }) |
| | | |
| | | var result = false |
| | | r.forEach { |
| | | if (it == null) return@forEach |
| | | if (it.drExceedTimes >= 3) { |
| | | result = true |
| | | } |
| | | } |
| | | return result |
| | | } |
| | | |
| | | /** |
| | | * @return true 彿é«å³°ç»è¥æ¶æ®µæ°æ®æç»å¼å¸¸æåºç°ä¸æ¬¡å以ä¸å°æ¶æ°æ®è¶
æ ææ æ²¹çååè£
ç½®æååè£
ç½®æªæ£å¸¸å¼å¯ |
| | | */ |
| | | private fun condition3(): Boolean { |
| | | return false |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.restaurant |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.ScoreItem |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluationsubrule |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluationsubrule2 |
| | | import cn.flightfeather.supervision.domain.ds2.entity.LedgerRecord |
| | | import cn.flightfeather.supervision.domain.ds2.entity.LedgerSubType |
| | | import cn.flightfeather.supervision.domain.ds2.mapper.LedgerRecordMapper |
| | | import cn.flightfeather.supervision.domain.ds2.mapper.LedgerSubTypeMapper |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | import javax.annotation.PostConstruct |
| | | |
| | | @Component |
| | | class ReScoreItem7: ScoreItem() { |
| | | companion object { |
| | | private lateinit var instance: ReScoreItem7 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | init { |
| | | exemption = true |
| | | } |
| | | |
| | | @Autowired |
| | | lateinit var ledgerRecordMapper: LedgerRecordMapper |
| | | |
| | | @Autowired |
| | | lateinit var ledgerSubTypeMapper: LedgerSubTypeMapper |
| | | |
| | | override var id: String = "wfzFTlcZ3xMdj5M2" |
| | | |
| | | override var name: String = "å°è´¦ç®¡ç" |
| | | |
| | | /** |
| | | * å¨çº¿å°è´¦è®°å½çæäº¤ç±»å«å®æ´æ§ååæ¶æ§ |
| | | * é项rå¦ä¸ï¼ |
| | | * 1.å°è´¦ç±»å«é½å
¨ã宿´ãåæ¶è®°å½æ´æ° |
| | | * 2.å°è´¦å°éç¼ºå¤±ææªåæ¶è®°å½æ´æ° |
| | | * 3.å°è´¦ä¸¥é缺失æå
³é®å°è´¦æ æ |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | // TODO: 2021/3/9 æ¾åºç¨æ·ç±»å对åºçå¿
å¡«å°è´¦ |
| | | val time = evaluationScene.subTask.value?.planstarttime |
| | | val lt = LocalDateTime.ofInstant(time?.toInstant(), ZoneId.systemDefault()) |
| | | val year = lt.year |
| | | val st = lt.withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0) |
| | | val et = st.plusMonths(1) |
| | | |
| | | val ledgerTypeCount = ledgerSubTypeMapper.selectCountByExample(Example(LedgerSubType::class.java).apply { |
| | | createCriteria().andEqualTo("lScenetype", "1").andEqualTo("lNeedupdate", true) |
| | | }) |
| | | val rCount = ledgerRecordMapper.selectCountByExample(Example(LedgerRecord::class.java).apply { |
| | | createCriteria().andEqualTo("lrYear", year) |
| | | .andGreaterThanOrEqualTo("lrSubmitdate", st) |
| | | .andLessThanOrEqualTo("lrSubmitdate", et) |
| | | .andEqualTo("lrSubmitid", evaluationScene.userInfoTZ.value?.guid) |
| | | }) |
| | | var i = 1 |
| | | if (condition1(ledgerTypeCount, rCount)) { |
| | | if (i > size - 1) i = size - 1 |
| | | return i |
| | | } else if (condition2(ledgerTypeCount, rCount)) { |
| | | i = 2 |
| | | if (i > size - 1) i = size - 1 |
| | | return i |
| | | } |
| | | return null |
| | | } |
| | | |
| | | /** |
| | | * @param c1 å¿
填项å°è´¦ç±»å«æ° |
| | | * @param c2 å®é
ä¸ä¼ æ° |
| | | * @return true å°è´¦å°éç¼ºå¤±ææªåæ¶è®°å½æ´æ° |
| | | */ |
| | | private fun condition1(c1: Int, c2: Int): Boolean { |
| | | return (c2.toDouble() / c1.toDouble()) >= 0.8 |
| | | } |
| | | |
| | | /** |
| | | * @param c1 å¿
填项å°è´¦ç±»å«æ° |
| | | * @param c2 å®é
ä¸ä¼ æ° |
| | | * @return true å°è´¦ä¸¥é缺失æå
³é®å°è´¦æ æ |
| | | */ |
| | | private fun condition2(c1: Int, c2: Int): Boolean { |
| | | return (c2.toDouble() / c1.toDouble()) <= 0.3 |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.restaurant |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.ScoreItem |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Problemlist |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import javax.annotation.PostConstruct |
| | | |
| | | /** |
| | | * Date 2022/1/20 16:14 |
| | | * Created by feiyu |
| | | */ |
| | | @Component |
| | | class ReScoreItem8: ScoreItem() { |
| | | |
| | | companion object { |
| | | private lateinit var instance: ReScoreItem8 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | override var id: String = "yAAn3zm6e2PenHeJ" |
| | | |
| | | override var name: String = "æ´æ¹æªæ½åææ" |
| | | |
| | | /** |
| | | * æ§æ³æ£æ¥æ±æ»æ
åµ |
| | | * é项å¦ä¸ï¼ |
| | | * 1.é®é¢é¨åæ´æ¹æä¸åæ¶æä¾ææ |
| | | * 2.é®é¢æ æ´æ¹ |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | val p = problemlistMapper.selectByExample(Example(Problemlist::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", evaluationScene.subTask.value?.stguid) |
| | | // .andGreaterThanOrEqualTo("time", info.sTime) |
| | | // .andLessThan("time", info.eTime) |
| | | }) |
| | | var i = 0 |
| | | |
| | | val total = p.size |
| | | var changed = 0 |
| | | p.forEach { |
| | | if (it.ischanged == true) { |
| | | changed++ |
| | | } |
| | | } |
| | | return when { |
| | | changed == 0 && total > 0 -> 1 |
| | | changed < total -> 0 |
| | | else -> null |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.restaurant |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.ScoreItem |
| | | import cn.flightfeather.supervision.domain.ds2.entity.Complaint |
| | | import cn.flightfeather.supervision.domain.ds2.mapper.ComplaintMapper |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.LocalDate |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | import java.time.format.DateTimeFormatter |
| | | import javax.annotation.PostConstruct |
| | | |
| | | @Component |
| | | class ReScoreItem9: ScoreItem() { |
| | | companion object { |
| | | private lateinit var instance: ReScoreItem9 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | @Autowired |
| | | lateinit var complaintMapper: ComplaintMapper |
| | | |
| | | override var id: String = "mTre4cqan43BOW82" |
| | | |
| | | override var name: String="信访æè¯" |
| | | |
| | | /** |
| | | * å£åº¦å
信访记å½è§æ ¼å导å
¥ |
| | | * é项å¦ä¸ï¼ |
| | | * 1.æ ä¿¡è®¿ãæ æè¯ãç管é
å积æ |
| | | * 2.æ¬å£åº¦åç忬¡åºçº§ä¿¡è®¿æè¯ |
| | | * 3.æ¬å£åº¦åçå¸çº§ä¿¡è®¿æè¯æå¤æ¬¡åºçº§ä¿¡è®¿ãæè¯æç管ä¸é
å |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | val time = evaluationScene.subTask.value?.planstarttime |
| | | val lt = LocalDateTime.ofInstant(time?.toInstant(), ZoneId.systemDefault()) |
| | | val st = lt.withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0) |
| | | val et = st.plusMonths(1) |
| | | |
| | | val complaints = complaintMapper.selectByExample(Example(Complaint::class.java).apply { |
| | | createCriteria().andEqualTo("cpSceneid", evaluationScene.userInfoTZ.value?.guid) |
| | | .andGreaterThanOrEqualTo("cpTime", st) |
| | | .andLessThan("cpTime", et) |
| | | }) |
| | | |
| | | var i = 2 |
| | | if (condition2(complaints)) { |
| | | if (i > size - 1) i = size - 1 |
| | | return i |
| | | } else if (condition1(complaints)) { |
| | | i = 1 |
| | | if (i > size - 1) i = size - 1 |
| | | return i |
| | | } |
| | | return null |
| | | } |
| | | |
| | | /** |
| | | * @return true æ¬å£åº¦åç忬¡åºçº§ä¿¡è®¿æè¯ |
| | | */ |
| | | private fun condition1(c: List<Complaint>): Boolean { |
| | | c.forEach { |
| | | if (it.cpExtension1 == "1") { |
| | | return true |
| | | } |
| | | } |
| | | return false |
| | | } |
| | | |
| | | /** |
| | | * @return true æ¬å£åº¦åçå¸çº§ä¿¡è®¿æè¯æå¤æ¬¡åºçº§ä¿¡è®¿ãæè¯æç管ä¸é
å |
| | | */ |
| | | private fun condition2(c: List<Complaint>): Boolean { |
| | | var count = 0 |
| | | c.forEach { |
| | | if (it.cpExtension1 == "0") { |
| | | //åçå¸çº§ä¿¡è®¿æè¯ |
| | | return true |
| | | } else { |
| | | count++ |
| | | } |
| | | } |
| | | return count > 1 |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.storage |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.ScoreItem |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Problemlist |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import javax.annotation.PostConstruct |
| | | |
| | | /** |
| | | * Date 2022/1/20 16:14 |
| | | * Created by feiyu |
| | | * å åº |
| | | */ |
| | | @Component |
| | | class StScoreItem1: ScoreItem() { |
| | | |
| | | companion object { |
| | | private lateinit var instance: StScoreItem1 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | override var id: String = "csInMYhgbBqWRyeB" |
| | | |
| | | override var name: String = "æ´æ¹æªæ½åææ" |
| | | |
| | | /** |
| | | * æ§æ³æ£æ¥æ±æ»æ
åµ |
| | | * é项å¦ä¸ï¼ |
| | | * 1.é®é¢é¨åæ´æ¹æä¸åæ¶æä¾ææ |
| | | * 2.é®é¢æ æ´æ¹ |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | val p = problemlistMapper.selectByExample(Example(Problemlist::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", evaluationScene.subTask.value?.stguid) |
| | | // .andGreaterThanOrEqualTo("time", info.sTime) |
| | | // .andLessThan("time", info.eTime) |
| | | }) |
| | | var i = 0 |
| | | |
| | | val total = p.size |
| | | var changed = 0 |
| | | p.forEach { |
| | | if (it.ischanged == true) { |
| | | changed++ |
| | | } |
| | | } |
| | | return when { |
| | | changed == 0 && total > 0 -> 1 |
| | | changed < total -> 0 |
| | | else -> null |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.wharf |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.ScoreItem |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Problemlist |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import javax.annotation.PostConstruct |
| | | |
| | | /** |
| | | * Date 2022/1/20 16:14 |
| | | * Created by feiyu |
| | | * ç 头 |
| | | */ |
| | | @Component |
| | | class WhScoreItem1: ScoreItem() { |
| | | |
| | | companion object { |
| | | private lateinit var instance: WhScoreItem1 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | override var id: String = "mgvVEecYRV8xrnf2" |
| | | |
| | | override var name: String = "æ´æ¹æªæ½åææ" |
| | | |
| | | /** |
| | | * æ§æ³æ£æ¥æ±æ»æ
åµ |
| | | * é项å¦ä¸ï¼ |
| | | * 1.é®é¢é¨åæ´æ¹æä¸åæ¶æä¾ææ |
| | | * 2.é®é¢æ æ´æ¹ |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | val p = problemlistMapper.selectByExample(Example(Problemlist::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", evaluationScene.subTask.value?.stguid) |
| | | // .andGreaterThanOrEqualTo("time", info.sTime) |
| | | // .andLessThan("time", info.eTime) |
| | | }) |
| | | var i = 0 |
| | | |
| | | val total = p.size |
| | | var changed = 0 |
| | | p.forEach { |
| | | if (it.ischanged == true) { |
| | | changed++ |
| | | } |
| | | } |
| | | return when { |
| | | changed == 0 && total > 0 -> 1 |
| | | changed < total -> 0 |
| | | else -> null |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput.score.wharf |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.ScoreItem |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DustDataResult |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.DustDataResultMapper |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | import javax.annotation.PostConstruct |
| | | |
| | | /** |
| | | * Date 2022/1/20 16:14 |
| | | * Created by feiyu |
| | | * ç 头 |
| | | */ |
| | | @Component |
| | | class WhScoreItem2: ScoreItem() { |
| | | |
| | | companion object { |
| | | private lateinit var instance: WhScoreItem2 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | override var id: String = "5NNLSvkVRFfASMhc" |
| | | |
| | | override var name: String = "æ¬å°å¨çº¿çæµæ°æ®é级" |
| | | |
| | | @Autowired |
| | | lateinit var dustDataResultMapper: DustDataResultMapper |
| | | |
| | | /** |
| | | * æ¬å°å¨çº¿çæµæ°æ®é级 |
| | | * é项å¦ä¸ï¼ |
| | | * 1.çæµæ°æ®åºç°åæ¥å以䏿æè¶
æ |
| | | * 2.çæµæ°æ®æåå¼è¶
åºåæåå¼20%ä»¥ä¸ææ°æ®ææ¾å¼å¸¸ |
| | | */ |
| | | override fun otherProblem(size: Int): Int? { |
| | | val time = evaluationScene.subTask.value?.planstarttime |
| | | val lt = LocalDateTime.ofInstant(time?.toInstant(), ZoneId.systemDefault()) |
| | | val st = lt.withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0) |
| | | val et = st.plusMonths(1) |
| | | val r = dustDataResultMapper.selectByExample(Example(DustDataResult::class.java).apply { |
| | | createCriteria().andGreaterThanOrEqualTo("drTime", st) |
| | | .andLessThan("drTime", et) |
| | | .andEqualTo("drSceneId", evaluationScene.scene.value?.guid) |
| | | }) |
| | | |
| | | var result: Int? = null |
| | | r.forEach { |
| | | if (it == null) return@forEach |
| | | if (it.drExceedTimes > 0) { |
| | | result = 0 |
| | | } |
| | | if (it.drOverAvgPer > 0.2) { |
| | | result = 1 |
| | | } |
| | | } |
| | | |
| | | return result |
| | | } |
| | | } |
| | |
| | | |
| | | var result = false |
| | | r.forEach { |
| | | if (it == null) return@forEach |
| | | if (it.drExceedTimes > 0) { |
| | | result = true |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.location |
| | | |
| | | import kotlin.math.PI |
| | | import kotlin.math.cos |
| | | import kotlin.math.sin |
| | | |
| | | object CoordinateUtil { |
| | | |
| | | private const val Ea = 6378137 //赤éåå¾ |
| | | private const val Eb = 6356725 //æåå¾ |
| | | |
| | | /** |
| | | * æ ¹æ®åæ ç¹ãè·ç¦»åè§åº¦ï¼è·åå¦ä¸ä¸ªåæ |
| | | * @param pos åæ ç¹ |
| | | * @param len è·ç¦»ï¼ç±³ï¼ |
| | | * @param radian 弧度 |
| | | */ |
| | | fun getPointByLen(pos: Pair<Double, Double>, len: Double, radian: Double): Pair<Double, Double> { |
| | | val dx = len * sin(radian) |
| | | val dy = len * cos(radian) |
| | | val ec = Eb + (Ea - Eb) * (90.0 - pos.second) / 90.0 |
| | | val ed = ec * cos(pos.second * PI / 180) |
| | | val lng = (dx / ed + pos.first * PI / 180.0) * 180.0 / PI |
| | | val lat = (dy / ec + pos.second * PI / 180.0) * 180.0 / PI |
| | | return Pair(lng, lat) |
| | | } |
| | | |
| | | /** |
| | | * 纬度ç¸åæ¶ |
| | | * è·ç¦»è½¬æ¢ä¸ºç»åº¦ |
| | | */ |
| | | fun disToLng(distance: Double): Double { |
| | | return distance * 0.00001 |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.location |
| | | |
| | | import cn.flightfeather.supervision.common.utils.ExcelUtil |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Scense |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.ScenseMapper |
| | | import tk.mybatis.mapper.entity.Example |
| | | import kotlin.math.PI |
| | | |
| | | /** |
| | | * 路段å¨è¾¹æ¥è¯¢ |
| | | */ |
| | | class LocationRoadNearby(private val scenseMapper: ScenseMapper) { |
| | | |
| | | private val utilFile = UtilFile() |
| | | |
| | | data class BasePlace( |
| | | val name: String, |
| | | val sP: Pair<Double, Double>, |
| | | val eP: Pair<Double, Double>, |
| | | ) |
| | | |
| | | private fun searchOne(basePlace: BasePlace, distance: Double) { |
| | | val range = rangeRestriction(basePlace, distance) |
| | | getSceneFromDb(range).forEach { utilFile.parseRow(it) } |
| | | } |
| | | |
| | | /** |
| | | * æå¯»åè路段ç»å®åå¾å
çç¹ä½ |
| | | * @param basePlace åèç¹ä½ä¿¡æ¯ |
| | | * @param distance æç´¢åå¾ |
| | | */ |
| | | fun search(basePlace: BasePlace, distance: Double) { |
| | | utilFile.reset() |
| | | searchOne(basePlace, distance) |
| | | utilFile.outPutToFile() |
| | | } |
| | | |
| | | fun searchList(pList: List<BasePlace>, distance: Double) { |
| | | utilFile.reset() |
| | | pList.forEach { |
| | | val range = rangeRestriction(it, distance) |
| | | val sceneList = getSceneFromDb(range) |
| | | if (sceneList.isEmpty()) { |
| | | utilFile.addRow(listOf(it.name)) |
| | | } |
| | | sceneList.forEachIndexed { index, s-> |
| | | utilFile.parseRow(s) |
| | | if (index == 0) { |
| | | utilFile.updateLastRow(0, ExcelUtil.MyCell(it.name, sceneList.size)) |
| | | } |
| | | } |
| | | utilFile.index = 1 |
| | | } |
| | | utilFile.outPutToFile() |
| | | } |
| | | |
| | | /** |
| | | * èå´éå® |
| | | * æ ¹æ®è·¯æ®µçå§æ«ç¹åæ åæ¥è¯¢åå¾ï¼è®¡ç®æå¤§å¯è½çèå´ç©å½¢ï¼å¾åºç»çº¬åº¦çæå¤§æå°å¼ |
| | | */ |
| | | private fun rangeRestriction(basePlace: BasePlace, distance: Double): List<Double> { |
| | | // æ±ç»åº¦çæå°å¼ |
| | | val p1 = if (basePlace.sP.first < basePlace.eP.first) basePlace.sP else basePlace.eP |
| | | val minLng = CoordinateUtil.getPointByLen(p1, distance, PI * 1.5).first |
| | | // æ±ç»åº¦çæå¤§å¼ |
| | | val p2 = if (basePlace.sP.first > basePlace.eP.first) basePlace.sP else basePlace.eP |
| | | val maxLng = CoordinateUtil.getPointByLen(p2, distance, PI * 0.5).first |
| | | // æ±çº¬åº¦çæå°å¼ |
| | | val p3 = if (basePlace.sP.second < basePlace.eP.second) basePlace.sP else basePlace.eP |
| | | val minLat = CoordinateUtil.getPointByLen(p3, distance, PI).second |
| | | // æ±çº¬åº¦çæå¤§å¼ |
| | | val p4 = if (basePlace.sP.second > basePlace.eP.second) basePlace.sP else basePlace.eP |
| | | val maxLat = CoordinateUtil.getPointByLen(p4, distance, .0).second |
| | | |
| | | return listOf(minLng, maxLng, minLat, maxLat) |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®éå®ç©å½¢èå´ä»æ°æ®åºè·åç¬¦åæ¡ä»¶çç¹ä½ |
| | | */ |
| | | private fun getSceneFromDb(range: List<Double>): List<Scense> { |
| | | return scenseMapper.selectByExample(Example(Scense::class.java).apply { |
| | | createCriteria().andGreaterThanOrEqualTo("longitude", range[0]) |
| | | .andLessThanOrEqualTo("longitude", range[1]) |
| | | .andGreaterThanOrEqualTo("latitude", range[2]) |
| | | .andLessThanOrEqualTo("latitude", range[3]) |
| | | and(createCriteria().orNotEqualTo("extension1", "0") |
| | | .orIsNull("extension1")) |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * ç²¾ç¡®è®¡ç® |
| | | */ |
| | | // private fun checkDistance(scense: Scense):Boolean { |
| | | // |
| | | // } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.location |
| | | |
| | | import cn.flightfeather.supervision.common.utils.DateUtil |
| | | import cn.flightfeather.supervision.common.utils.ExcelUtil |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Scense |
| | | import org.apache.poi.hssf.usermodel.HSSFWorkbook |
| | | import java.io.File |
| | | import java.io.FileOutputStream |
| | | import java.util.* |
| | | |
| | | class UtilFile { |
| | | |
| | | private val heads = mutableListOf<Array<Any>>() |
| | | private val contents = mutableListOf<Array<Any>>() |
| | | var index = 1 |
| | | |
| | | init { |
| | | // val h1 = listOf( |
| | | // ExcelUtil.MyCell("汽修åä½åºæ¬ä¿¡æ¯", colSpan = 6), |
| | | // ExcelUtil.MyCell("宿³å¸®æ¶å¾®ä¿¡å°ç¨åºç»å½", colSpan = 1), |
| | | // ExcelUtil.MyCell("汽修åä½è®¤è¯ï¼å个ä¼ä¸å
许å¤ç¨æ·ï¼", colSpan = 4), |
| | | // ExcelUtil.MyCell("宿³æ¿è¯º", colSpan = 1), |
| | | // ExcelUtil.MyCell("å°è´¦è§èæ§", colSpan = 3), |
| | | // ExcelUtil.MyCell("èªå·¡æ¥è§èæ§", colSpan = 2), |
| | | // ExcelUtil.MyCell("宿³èªæµèªè¯", colSpan = 3), |
| | | // ExcelUtil.MyCell("线ä¸ç管综åé£é©åæä¸å¯¹ç", colSpan = 3), |
| | | // ) |
| | | val h2 = listOf( |
| | | ExcelUtil.MyCell("路段", colSpan = 1), |
| | | ExcelUtil.MyCell("åºå·", colSpan = 1), |
| | | ExcelUtil.MyCell("åä½åç§°", colSpan = 1), |
| | | ExcelUtil.MyCell("ç±»å", colSpan = 1), |
| | | ExcelUtil.MyCell("åä½å°å", colSpan = 1), |
| | | ExcelUtil.MyCell("ç»åº¦", colSpan = 1), |
| | | ExcelUtil.MyCell("纬度", colSpan = 1), |
| | | ExcelUtil.MyCell("è¡é", colSpan = 1), |
| | | ExcelUtil.MyCell("常ç¨è系人", colSpan = 1), |
| | | ExcelUtil.MyCell("èç³»æ¹å¼", colSpan = 1), |
| | | ) |
| | | // heads.add(h1.toTypedArray()) |
| | | heads.add(h2.toTypedArray()) |
| | | } |
| | | |
| | | fun reset() { |
| | | index = 1 |
| | | contents.clear() |
| | | } |
| | | |
| | | fun addRow(row: List<Any>) { |
| | | contents.add(row.toTypedArray()) |
| | | } |
| | | |
| | | fun updateLastRow(index: Int, cell: Any) { |
| | | contents.last()[index] = cell |
| | | } |
| | | |
| | | /** |
| | | * çæä¸è¡excelæ°æ® |
| | | */ |
| | | fun parseRow(scense: Scense) { |
| | | val row = listOf<Any>( |
| | | "", |
| | | index.toDouble(), |
| | | scense.name ?: "", |
| | | scense.type ?: "", |
| | | scense.location ?: "", |
| | | scense.longitude?.toDouble() ?: .0, |
| | | scense.latitude?.toDouble() ?: .0, |
| | | scense.townname ?: "", |
| | | scense.contacts ?: "", |
| | | scense.contactst ?: "" |
| | | ) |
| | | contents.add(row.toTypedArray()) |
| | | index++ |
| | | } |
| | | |
| | | fun outPutToFile() { |
| | | val workbook = HSSFWorkbook() |
| | | val fileName = "éå±±åºå¨è¾¹ç¹ä½-${DateUtil().DateToString(Date(), "yyyy-MM-ddhhmmss")}.xls" |
| | | val filePath = "C:\\work\\å·¥ä½\\ç¬¬ä¸æ¹ç管\\å¨è¾¹ç¹ä½\\$fileName" |
| | | val out = FileOutputStream(File(filePath)) |
| | | ExcelUtil.write(heads, contents, workbook) |
| | | workbook.write(out) |
| | | workbook.close() |
| | | out.flush() |
| | | out.close() |
| | | } |
| | | } |
| | |
| | | * æ°è表头åå¹¶ |
| | | */ |
| | | fun combineHead(oldHeads: MutableList<MutableList<ExcelUtil.MyCell>>, dataSource: DataSource) { |
| | | //å并表头ï¼éåç®åé»è¾ï¼åªæç¬¬ä¸è¡ç表头ä¼è¿è¡åå
æ ¼çè·¨è¡åå¹¶ |
| | | // FIXME: 2023/1/31 å并表头ï¼éåç®åé»è¾ï¼åªæç¬¬ä¸è¡ç表头ä¼è¿è¡åå
æ ¼çè·¨è¡åå¹¶ |
| | | val newHeads = getHeads(dataSource) |
| | | if (oldHeads.isEmpty()) { |
| | | newHeads.forEach { oldHeads.add(it) } |
| | |
| | | |
| | | /** |
| | | * 忍¡æ¿åå¹¶è¾åºä¸ºæ´ä½ææ¡£ |
| | | * åä¸ªæ°æ®æº |
| | | * å¤ä¸ªæ°æ®æº |
| | | */ |
| | | abstract class BaseExcelMulti(private val dataSourceList: List<DataSource>) { |
| | | |
| | |
| | | } |
| | | |
| | | fun loop(callback: (index:Int, rowData: RowData) -> Unit) { |
| | | reset() |
| | | // reset() |
| | | for (i in sourceList.indices) { |
| | | // rowData.recordLastScene() |
| | | rowData.index = i |
| | | rowData.clear() |
| | | rowData.subTask = sourceList[i] |
| | | rowData.clear() |
| | | callback(i, rowData) |
| | | } |
| | | } |
| | |
| | | for (s in subTaskList) { |
| | | if (s.scenseid == it) { |
| | | subtask = s |
| | | break |
| | | result.add(s) |
| | | } |
| | | } |
| | | if (subtask == null) subtask = Subtask().apply { scenseid = it } |
| | | result.add(subtask) |
| | | if (subtask == null) { |
| | | result.add(Subtask().apply { scenseid = it }) |
| | | } |
| | | } |
| | | } else { |
| | | result.addAll(subTaskList) |
| | |
| | | } |
| | | |
| | | /** |
| | | * è®°å½ä¸ä¸ä¸ªåºæ¯ |
| | | */ |
| | | fun recordLastScene() { |
| | | lastScene = scene |
| | | } |
| | | |
| | | /** |
| | | * æ¸
空å½åå¤çç对象çç¸å
³æ°æ®æº |
| | | */ |
| | | fun clear() { |
| | | if (lastScene != null && lastScene?.typeid != _scene?.typeid) { |
| | | _problemTypes.clear() |
| | | _topItems.clear() |
| | | _rules.clear() |
| | | _ledgerCount = -1 |
| | | } else { |
| | | lastScene = _scene |
| | | } |
| | | _scene = null |
| | | _baseScene = null |
| | | _problems.clear() |
| | | _evaluation = null |
| | | _itemevaluationList.clear() |
| | | _ledgerRecordNum = null |
| | | if (lastScene != null && lastScene?.typeid != scene?.typeid) { |
| | | _problemTypes.clear() |
| | | _topItems.clear() |
| | | _rules.clear() |
| | | _ledgerCount = -1 |
| | | } |
| | | recordLastScene() |
| | | } |
| | | |
| | | /** |
| | |
| | | import cn.flightfeather.supervision.business.report.cols.* |
| | | |
| | | class ScoreDetailSummary(dataSource: DataSource) : BaseTemplate(dataSource) { |
| | | override val cols: List<BaseCols> = listOf(ColSceneName(), ColTown(), ColStatus(), ColTotalGrade(), ColItemGrade()) |
| | | override val cols: List<BaseCols> = listOf( |
| | | ColSceneName(), ColTown(), ColStatus(), ColInspectionInfo(listOf(0, 1)), |
| | | ColTotalGrade(), |
| | | ColItemGrade() |
| | | ) |
| | | override val templateName: String = "è§èæ§è¯ä¼°è¯¦æ
表" |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.storage |
| | | |
| | | import cn.flightfeather.supervision.business.Info |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluation |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Score |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.ScoreMapper |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.stereotype.Component |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.time.LocalDateTime |
| | | import java.time.ZoneId |
| | | |
| | | /** |
| | | * 䏿µ·å¸éå®åºåç¬ç50åå¶è¯åç»æï¼ |
| | | * æ ¹æ®[StAutoScore]èªå¨è¯åç»æè¿è¡è½¬æ¢å¾åº |
| | | */ |
| | | @Component |
| | | class JinAnScore { |
| | | |
| | | @Autowired |
| | | lateinit var scoreMapper: ScoreMapper |
| | | |
| | | fun toDb(e: Evaluation, info: Info) { |
| | | val time = LocalDateTime.ofInstant(e.evaluatetime?.toInstant(), ZoneId.systemDefault()) |
| | | val scoreVo = Score().apply { |
| | | sceneId = e.sguid |
| | | sceneName = e.scensename |
| | | year = time.year |
| | | month = time.monthValue |
| | | districtCode = e.districtcode |
| | | districtName = e.districtname |
| | | score = transform(e.resultscorebef?.toIntOrNull() ?: 0) |
| | | completion = !info.online |
| | | } |
| | | |
| | | val res = scoreMapper.selectByExample(Example(Score::class.java).apply { |
| | | createCriteria().andEqualTo("sceneId", e.sguid) |
| | | .andEqualTo("year", time.year) |
| | | .andEqualTo("month", time.monthValue) |
| | | }) |
| | | if (res.isNotEmpty()) { |
| | | scoreVo.id = res[0].id |
| | | scoreMapper.updateByPrimaryKeySelective(scoreVo) |
| | | } else { |
| | | scoreMapper.insert(scoreVo) |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * åæ°è½¬æ¢ |
| | | */ |
| | | private fun transform(oldS: Int): Int { |
| | | return when { |
| | | // åºæ¬è§è |
| | | oldS >= 90 -> 50 |
| | | // ä¸è§è |
| | | oldS >= 50 -> 30 |
| | | // 严éä¸è§è |
| | | else -> 10 |
| | | } |
| | | } |
| | | } |
| | |
| | | stScoreItem_1: StScoreItem_1, |
| | | whScoreItem_1: WhScoreItem_1, |
| | | whScoreItem_2: WhScoreItem_2, |
| | | val jinAnScore: JinAnScore, |
| | | var sceneType: Constant.ScenseType = Constant.ScenseType.TYPE1, ) |
| | | { |
| | | companion object { |
| | |
| | | |
| | | private fun sceneGradeP(subtask: Subtask) { |
| | | val info = itemGrade(subtask) |
| | | val result = totalGrade(info) ?: return |
| | | val result = totalGrade(info, subtask) ?: return |
| | | toDb(info, result) |
| | | // jinAnScore.toDb(result.first, info) |
| | | // addToFile(rows, info, result.first) |
| | | // toFile() |
| | | } |
| | |
| | | getScoreItem() |
| | | |
| | | val info = itemGrade(subtask) |
| | | val result = totalGrade(info) ?: return |
| | | val result = totalGrade(info, subtask) ?: return |
| | | addToFile(rows, info, result.first) |
| | | } |
| | | |
| | |
| | | val scene = scenseMapper.selectByPrimaryKey(subtask.scenseid) |
| | | |
| | | val info = |
| | | Info(userInfo?.guid, tzUserId, subtask.scenseid, subtask.scensename, sceneType, subTask = subtask, sceneIndex = scene.index) |
| | | Info(userInfo?.guid, |
| | | tzUserId, |
| | | subtask.scenseid, |
| | | subtask.scensename, |
| | | sceneType, |
| | | subTask = subtask, |
| | | sceneIndex = scene.index, |
| | | online = scene.extension1 != "0" |
| | | ) |
| | | |
| | | /** 1. æ ¹æ®è¯åè§å对åºçé®é¢èªå¨å¤ææ¯å¦æ£å***************************************************************/ |
| | | // è·å该次巡æ¥ä»»å¡ä¸çææé®é¢ |
| | |
| | | // å
·ä½è¯åé项 |
| | | val subRule = r.second |
| | | subRule.forEach { sr -> |
| | | // åå¨å¤ä¸ªè¯å项ååä¸ä¸ªé®é¢å
³èï¼å æ¤å¿
é¡»å
¨é¨è¯å项é½å¤å®ä¸é |
| | | sr.problemlist?.split(",")?.forEach { pId -> |
| | | if (pList.contains(pId)) { |
| | | sr.extension1 = (0 - (sr.maxscore ?: 0)).toString() |
| | |
| | | /** |
| | | * è®¡ç®æ»å |
| | | */ |
| | | private fun totalGrade(info: Info): Pair<Evaluation, List<Itemevaluation>>? { |
| | | private fun totalGrade(info: Info, subtask: Subtask): Pair<Evaluation, List<Itemevaluation>>? { |
| | | /** 4. è®¡ç®æ»å*************************************************************************/ |
| | | val scene = scenseMapper.selectByPrimaryKey(info.subTask?.scenseid) ?: return null |
| | | val inspection = inspectionMapper.selectByExample(Example(Inspection::class.java).apply { |
| | |
| | | townname = scene.townname |
| | | scensename = scene.name |
| | | scenseaddress = scene.location |
| | | evaluatetime = Date() |
| | | evaluatetime = subtask.planstarttime |
| | | evaluatorguid = "admin" |
| | | evaluatorusername = "admin" |
| | | evaluatorrealname = "admin" |
| | | resultscorebef = (totalScore - abs(total)).toString() |
| | | createdate = Date() |
| | | createdate = subtask.planstarttime |
| | | updatedate = Date() |
| | | } |
| | | } |
| | |
| | | |
| | | var result: Int? = null |
| | | r.forEach { |
| | | if (it == null) return@forEach |
| | | if (it.drExceedTimes > 0) { |
| | | result = 0 |
| | | } |
| | |
| | | /** |
| | | * Date 2022/1/20 16:14 |
| | | * Created by feiyu |
| | | * å·¥å° |
| | | * æ
æç« |
| | | */ |
| | | @Component |
| | | class MpScoreItem_2:ScoreItem() { |
| | |
| | | |
| | | var result: Int? = null |
| | | r.forEach { |
| | | if (it == null) return@forEach |
| | | if (it.drExceedTimes > 0) { |
| | | result = 0 |
| | | } |
| | |
| | | /** |
| | | * Date 2022/1/20 16:14 |
| | | * Created by feiyu |
| | | * å·¥å° |
| | | * ç 头 |
| | | */ |
| | | @Component |
| | | class WhScoreItem_2:ScoreItem() { |
| | |
| | | |
| | | var result: Int? = null |
| | | r.forEach { |
| | | if (it == null) return@forEach |
| | | if (it.drExceedTimes > 0) { |
| | | result = 0 |
| | | } |
| | |
| | | } |
| | | |
| | | private val fetchData = mutableListOf<FetchData>() |
| | | private var shecdule = Executors.newScheduledThreadPool(2) |
| | | private var schedule = Executors.newScheduledThreadPool(1) |
| | | private var maintainSchedule = Executors.newScheduledThreadPool(1) |
| | | private var fetchTime: Date = Date() |
| | | private var maintainTime: Date = Date() |
| | | |
| | |
| | | maintainTask() |
| | | } |
| | | |
| | | private fun fetchTask() { |
| | | shecdule.scheduleAtFixedRate({ |
| | | private fun fetchTask(isFirst: Boolean = false) { |
| | | if (!isFirst) { |
| | | schedule = closeThread(schedule) |
| | | } |
| | | schedule.scheduleAtFixedRate({ |
| | | fetchTime = Date() |
| | | if (Date().time - maintainTime.time > (MAINTAIN_PERIOD_MIN + 1) * 60 * 1000) { |
| | | if (Date().time - maintainTime.time > (MAINTAIN_PERIOD_MIN * 2) * 60 * 1000) { |
| | | maintainTask() |
| | | } |
| | | fetchData.forEach { |
| | |
| | | }, 0, FETCH_PERIOD_MIN, TimeUnit.MINUTES) |
| | | } |
| | | |
| | | private fun maintainTask() { |
| | | |
| | | shecdule.scheduleAtFixedRate({ |
| | | private fun maintainTask(isFirst: Boolean = false) { |
| | | if (!isFirst) { |
| | | maintainSchedule = closeThread(maintainSchedule) |
| | | } |
| | | maintainSchedule.scheduleAtFixedRate({ |
| | | maintainTime = Date() |
| | | if (Date().time - fetchTime.time > (FETCH_PERIOD_MIN + 1) * 60 * 1000) { |
| | | if (Date().time - fetchTime.time > (FETCH_PERIOD_MIN * 2) * 60 * 1000) { |
| | | fetchTask() |
| | | } |
| | | }, 0, MAINTAIN_PERIOD_MIN, TimeUnit.MINUTES) |
| | | } |
| | | |
| | | private fun closeThread(s: ScheduledExecutorService): ScheduledExecutorService { |
| | | try { |
| | | s.shutdown() |
| | | if (s.awaitTermination(10, TimeUnit.SECONDS)) { |
| | | s.shutdownNow() |
| | | } |
| | | } catch (e: InterruptedException) { |
| | | e.printStackTrace() |
| | | s.shutdownNow() |
| | | } |
| | | return Executors.newScheduledThreadPool(1) |
| | | } |
| | | } |
| | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.NightConstruction |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.NightConstructionMapper |
| | | import cn.flightfeather.supervision.common.utils.DateUtil |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Scense |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Userinfo |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.ScenseMapper |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.UserinfoMapper |
| | | import com.github.pagehelper.PageHelper |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.stereotype.Component |
| | | import org.springframework.transaction.annotation.Transactional |
| | | import tk.mybatis.mapper.entity.Example |
| | | import java.util.* |
| | | import javax.annotation.PostConstruct |
| | |
| | | private const val CITY_NAME = "䏿µ·å¸" |
| | | private const val DISTRICT_NAME = "éå®åº" |
| | | |
| | | private const val DEFAULT_TIME = "2020-12-01 00:00:00" |
| | | private const val DEFAULT_TIME = "2022-01-01 00:00:00" |
| | | } |
| | | |
| | | @Autowired |
| | | lateinit var nightConstructionMapper: NightConstructionMapper |
| | | |
| | | @Autowired |
| | | lateinit var scenseMapper: ScenseMapper |
| | | |
| | | @Autowired |
| | | lateinit var userinfoMapper: UserinfoMapper |
| | | |
| | | private val dateUtil = DateUtil() |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | this.nightConstructionMapper = instance.nightConstructionMapper |
| | | this.scenseMapper = instance.scenseMapper |
| | | this.userinfoMapper = instance.userinfoMapper |
| | | } |
| | | |
| | | |
| | | override fun fetch() { |
| | | PageHelper.startPage<NightConstruction>(1, 1) |
| | | nightConstructionMapper.selectByExample(Example(NightConstruction::class.java).apply { |
| | | val res = nightConstructionMapper.selectByExample(Example(NightConstruction::class.java).apply { |
| | | createCriteria().andEqualTo("ncProvinceCode", PROVINCE_CODE) |
| | | .andEqualTo("ncCityCode", CITY_CODE) |
| | | .andEqualTo("ncDistrictCode", DISTRICT_CODE) |
| | | .andEqualTo("ncCityCode", CITY_CODE) |
| | | .andEqualTo("ncDistrictCode", DISTRICT_CODE) |
| | | orderBy("ncCreateTime").desc() |
| | | }).let { |
| | | }) |
| | | res.let { |
| | | val timeStr = if (it.isNotEmpty()) { |
| | | val cal = Calendar.getInstance().apply { time = it[0]?.ncCreateTime } |
| | | cal.add(Calendar.DAY_OF_MONTH, -1) |
| | |
| | | } else { |
| | | DEFAULT_TIME |
| | | } |
| | | // val timeStr = DEFAULT_TIME |
| | | |
| | | |
| | | try { |
| | |
| | | ncDistrictCode = DISTRICT_CODE |
| | | ncDistrictName = DISTRICT_NAME |
| | | } |
| | | nightConstructionMapper.selectByExample(Example(NightConstruction::class.java).apply { |
| | | createCriteria().andEqualTo("ncNum", nightConstruction.ncNum) |
| | | }).run { |
| | | nightConstructionMapper.selectByExample(Example(NightConstruction::class.java).apply { |
| | | val history = nightConstructionMapper.selectByExample(Example(NightConstruction::class.java) |
| | | .apply { |
| | | createCriteria().andEqualTo("ncNum", nightConstruction.ncNum) |
| | | }) |
| | | // å¤æè¯¥å¤æ½æä»¶æ¯å¦åå¨ |
| | | if (history.isNotEmpty()) return@forEach |
| | | |
| | | var sceneId: String? = null |
| | | var userId: String? = null |
| | | // è·åè¯¥å¤æ½å¯¹åºä¼ä¸çåå²è®°å½ |
| | | val records = nightConstructionMapper.selectByExample(Example(NightConstruction::class.java) |
| | | .apply { |
| | | createCriteria().andEqualTo("ncItemName", nightConstruction.ncItemName) |
| | | }).takeIf { l-> l.isNotEmpty() }?.get(0)?.let { r-> |
| | | nightConstruction.ncUserId = r.ncUserId |
| | | nightConstruction.ncSceneId = r.ncSceneId |
| | | } |
| | | if (isEmpty()) { |
| | | nightConstructionMapper.insert(nightConstruction) |
| | | }) |
| | | if (records.isNotEmpty()) { |
| | | sceneId = records[0]?.ncSceneId |
| | | userId = records[0]?.ncUserId |
| | | } |
| | | // è¥æ åå²è®°å½ï¼æ¥æ¾åºæ¯è¡¨ï¼å¤ææ¯å¦æç¸ååç§°çåºæ¯ |
| | | else { |
| | | val scenes = scenseMapper.selectByExample(Example(Scense::class.java).apply { |
| | | createCriteria().andEqualTo("name", nightConstruction.ncItemName) |
| | | }) |
| | | if (scenes.isNotEmpty()) { |
| | | sceneId = scenes[0].guid |
| | | val user = userinfoMapper.selectByExample(Example(Userinfo::class.java).apply { |
| | | createCriteria().andEqualTo("dGuid", sceneId) |
| | | }) |
| | | if (user.isNotEmpty()) userId = user[0].guid |
| | | } |
| | | } |
| | | nightConstruction.ncUserId = userId |
| | | nightConstruction.ncSceneId = sceneId |
| | | |
| | | nightConstructionMapper.insert(nightConstruction) |
| | | } |
| | | } |
| | | } catch (e: Exception) { |
| | |
| | | fun ds2DataSource(@Qualifier("ds2DataSourceProperties") dataSourceProperties: DataSourceProperties): DataSource? { |
| | | return dataSourceProperties.initializeDataSourceBuilder().build() |
| | | } |
| | | |
| | | //第ä¸ä¸ªds3æ°æ®æºé
ç½® |
| | | @Bean(name = ["ds3DataSourceProperties"]) |
| | | @ConfigurationProperties(prefix = "spring.datasource.ds3") |
| | | fun ds3DataSourceProperties(): DataSourceProperties? { |
| | | return DataSourceProperties() |
| | | } |
| | | |
| | | //第ä¸ä¸ªds3æ°æ®æº |
| | | @Bean("ds3DataSource") |
| | | fun ds3DataSource(@Qualifier("ds3DataSourceProperties") dataSourceProperties: DataSourceProperties): DataSource? { |
| | | return dataSourceProperties.initializeDataSourceBuilder().build() |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.datasource.config |
| | | |
| | | import org.apache.ibatis.session.SqlSessionFactory |
| | | import org.mybatis.spring.SqlSessionFactoryBean |
| | | import org.mybatis.spring.SqlSessionTemplate |
| | | import org.mybatis.spring.annotation.MapperScan |
| | | import org.springframework.beans.factory.annotation.Qualifier |
| | | import org.springframework.context.annotation.Bean |
| | | import org.springframework.context.annotation.Configuration |
| | | import org.springframework.core.io.support.PathMatchingResourcePatternResolver |
| | | import org.springframework.jdbc.datasource.DataSourceTransactionManager |
| | | import javax.sql.DataSource |
| | | |
| | | |
| | | /** |
| | | * Mybatis 第ä¸ä¸ªds3æ°æ®æºé
ç½® |
| | | * 夿°æ®æºé
ç½®ä¾èµæ°æ®æºé
ç½® |
| | | * @see DataSourceConfig |
| | | */ |
| | | @Configuration |
| | | @MapperScan(basePackages = ["cn.flightfeather.supervision.domain.ds3.mapper"], |
| | | sqlSessionTemplateRef = "ds3SqlSessionTemplate") |
| | | class MybatisConfig4ds3 { |
| | | |
| | | //ds3æ°æ®æº |
| | | @Bean("ds3SqlSessionFactory") |
| | | @Throws(Exception::class) |
| | | fun ds3SqlSessionFactory(@Qualifier("ds3DataSource") dataSource: DataSource?): SqlSessionFactory? { |
| | | val sqlSessionFactory = SqlSessionFactoryBean() |
| | | sqlSessionFactory.setDataSource(dataSource) |
| | | sqlSessionFactory.setMapperLocations(*PathMatchingResourcePatternResolver() |
| | | .getResources("classpath*:mapper/ds3/*.xml")) |
| | | return sqlSessionFactory.getObject() |
| | | } |
| | | |
| | | //äºå¡æ¯æ |
| | | @Bean(name = ["ds3TransactionManager"]) |
| | | fun ds3TransactionManager(@Qualifier("ds3DataSource") dataSource: DataSource): DataSourceTransactionManager? { |
| | | return DataSourceTransactionManager(dataSource) |
| | | } |
| | | |
| | | @Bean(name = ["ds3SqlSessionTemplate"]) |
| | | fun ds3SqlSessionTemplate(@Qualifier("ds3SqlSessionFactory") sqlSessionFactory: SqlSessionFactory?): |
| | | SqlSessionTemplate? { |
| | | return SqlSessionTemplate(sqlSessionFactory) |
| | | } |
| | | } |
| | |
| | | * @param drSceneName åºæ¯åç§° |
| | | */ |
| | | public void setDrSceneName(String drSceneName) { |
| | | this.drSceneName = drSceneName; |
| | | this.drSceneName = drSceneName == null ? null : drSceneName.trim(); |
| | | } |
| | | |
| | | /** |
| | |
| | | import org.apache.ibatis.annotations.Mapper |
| | | |
| | | @Mapper |
| | | interface DustDataResultMapper : MyMapper<DustDataResult> |
| | | interface DustDataResultMapper : MyMapper<DustDataResult?> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.entity; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.util.Date; |
| | | |
| | | @Table(name = "ja_t_dust_site_info") |
| | | public class DustSiteInfo { |
| | | @Id |
| | | private String id; |
| | | |
| | | /** |
| | | * å®è£
å°å |
| | | */ |
| | | private String address; |
| | | |
| | | /** |
| | | * å¼å·¥æ¶é´ |
| | | */ |
| | | @Column(name = "begin_date") |
| | | private Date beginDate; |
| | | |
| | | /** |
| | | * 建çé¢ç§¯ |
| | | */ |
| | | @Column(name = "build_area") |
| | | private String buildArea; |
| | | |
| | | /** |
| | | * ééæ¶é´ |
| | | */ |
| | | @Column(name = "data_time") |
| | | private Date dataTime; |
| | | |
| | | /** |
| | | * æ¸
æ´æªæ½ |
| | | */ |
| | | @Column(name = "clean_measure") |
| | | private String cleanMeasure; |
| | | |
| | | /** |
| | | * ç«ç¹ç¼ç |
| | | */ |
| | | private String code; |
| | | |
| | | /** |
| | | * æ½å·¥åä½ |
| | | */ |
| | | @Column(name = "construction_unit") |
| | | private String constructionUnit; |
| | | |
| | | /** |
| | | * ç¹ä½æ§å¶çº§ |
| | | */ |
| | | @Column(name = "control_level") |
| | | private String controlLevel; |
| | | |
| | | /** |
| | | * å¼åå |
| | | */ |
| | | private String developers; |
| | | |
| | | /** |
| | | * æ§è¡æ¶é´ |
| | | */ |
| | | @Column(name = "do_time") |
| | | private Date doTime; |
| | | |
| | | /** |
| | | * è¿ç»´å |
| | | */ |
| | | @Column(name = "duty_company") |
| | | private String dutyCompany; |
| | | |
| | | /** |
| | | * è¿ç»´åid |
| | | */ |
| | | @Column(name = "duty_company_id") |
| | | private String dutyCompanyId; |
| | | |
| | | /** |
| | | * ç»ææ¶é´ |
| | | */ |
| | | @Column(name = "end_date") |
| | | private Date endDate; |
| | | |
| | | /** |
| | | * å½åæ½å·¥é¶æ®µ |
| | | */ |
| | | @Column(name = "engineering_stage") |
| | | private String engineeringStage; |
| | | |
| | | /** |
| | | * å½åæ½å·¥é¶æ®µç¼ç |
| | | */ |
| | | @Column(name = "engineering_stage_code") |
| | | private String engineeringStageCode; |
| | | |
| | | /** |
| | | * 设å¤ç¼ç |
| | | */ |
| | | @Column(name = "equipment_code") |
| | | private String equipmentCode; |
| | | |
| | | /** |
| | | * å å°é¢ç§¯ |
| | | */ |
| | | @Column(name = "floor_area") |
| | | private String floorArea; |
| | | |
| | | /** |
| | | * æå±åºå¿ä»£ç |
| | | */ |
| | | @Column(name = "group_id") |
| | | private String groupId; |
| | | |
| | | /** |
| | | * æå±åºå¿ |
| | | */ |
| | | @Column(name = "group_name") |
| | | private String groupName; |
| | | |
| | | /** |
| | | * æ¯å¦æçæµ |
| | | */ |
| | | @Column(name = "has_monitor") |
| | | private String hasMonitor; |
| | | |
| | | /** |
| | | * æ¯å¦å¨çº¿ |
| | | */ |
| | | @Column(name = "is_online") |
| | | private String isOnline; |
| | | |
| | | /** |
| | | * è®¾å¤æ¯å¦å¼å¸¸ |
| | | */ |
| | | @Column(name = "is_trouble") |
| | | private String isTrouble; |
| | | |
| | | /** |
| | | * å 餿 å¿ä½ |
| | | */ |
| | | @Column(name = "jhpt_delete") |
| | | private String jhptDelete; |
| | | |
| | | /** |
| | | * æ´æ°æ¶é´ |
| | | */ |
| | | @Column(name = "jhpt_update_time") |
| | | private String jhptUpdateTime; |
| | | |
| | | private String kindex; |
| | | |
| | | /** |
| | | * 纬度 |
| | | */ |
| | | private String latitude; |
| | | |
| | | /** |
| | | * è系人 |
| | | */ |
| | | private String linkman; |
| | | |
| | | /** |
| | | * ç»åº¦ |
| | | */ |
| | | private String longitude; |
| | | |
| | | /** |
| | | * 设å¤ç¼ç |
| | | */ |
| | | @Column(name = "mn_code") |
| | | private String mnCode; |
| | | |
| | | /** |
| | | * ç«ç¹åç§° |
| | | */ |
| | | private String name; |
| | | |
| | | /** |
| | | * åªå£°åè½åº |
| | | */ |
| | | @Column(name = "noise_region") |
| | | private String noiseRegion; |
| | | |
| | | /** |
| | | * è系人çµè¯ |
| | | */ |
| | | private String phone; |
| | | |
| | | /** |
| | | * æå±ç份 |
| | | */ |
| | | private String province; |
| | | |
| | | /** |
| | | * è´è´£äºº |
| | | */ |
| | | private String responsible; |
| | | |
| | | /** |
| | | * å
ä¸å¤ç¯ç¼ç |
| | | */ |
| | | @Column(name = "ring_id") |
| | | private String ringId; |
| | | |
| | | /** |
| | | * é¶æ®µå¼å§æ¥æ |
| | | */ |
| | | @Column(name = "stage_begin_date") |
| | | private Date stageBeginDate; |
| | | |
| | | /** |
| | | * 忢æ¶é´ |
| | | */ |
| | | @Column(name = "stop_time") |
| | | private Date stopTime; |
| | | |
| | | /** |
| | | * tspæµåº¦ |
| | | */ |
| | | private Double tsp; |
| | | |
| | | /** |
| | | * ç±»åç¼ç |
| | | */ |
| | | @Column(name = "type_id") |
| | | private String typeId; |
| | | |
| | | /** |
| | | * ç±»ååç§° |
| | | */ |
| | | private String typename; |
| | | |
| | | /** |
| | | * ç»è®¡ç±»åç¼ç |
| | | */ |
| | | @Column(name = "union_type_id") |
| | | private String unionTypeId; |
| | | |
| | | /** |
| | | * å´å¢é«åº¦ |
| | | */ |
| | | @Column(name = "wall_height") |
| | | private String wallHeight; |
| | | |
| | | /** |
| | | * ä¸å¡æ¶é´ |
| | | */ |
| | | @Column(name = "ywsj_date") |
| | | private Date ywsjDate; |
| | | |
| | | /** |
| | | * @return id |
| | | */ |
| | | public String getId() { |
| | | return id; |
| | | } |
| | | |
| | | /** |
| | | * @param id |
| | | */ |
| | | public void setId(String id) { |
| | | this.id = id == null ? null : id.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå®è£
å°å |
| | | * |
| | | * @return address - å®è£
å°å |
| | | */ |
| | | public String getAddress() { |
| | | return address; |
| | | } |
| | | |
| | | /** |
| | | * 设置å®è£
å°å |
| | | * |
| | | * @param address å®è£
å°å |
| | | */ |
| | | public void setAddress(String address) { |
| | | this.address = address == null ? null : address.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå¼å·¥æ¶é´ |
| | | * |
| | | * @return begin_date - å¼å·¥æ¶é´ |
| | | */ |
| | | public Date getBeginDate() { |
| | | return beginDate; |
| | | } |
| | | |
| | | /** |
| | | * 设置å¼å·¥æ¶é´ |
| | | * |
| | | * @param beginDate å¼å·¥æ¶é´ |
| | | */ |
| | | public void setBeginDate(Date beginDate) { |
| | | this.beginDate = beginDate; |
| | | } |
| | | |
| | | /** |
| | | * è·å建çé¢ç§¯ |
| | | * |
| | | * @return build_area - 建çé¢ç§¯ |
| | | */ |
| | | public String getBuildArea() { |
| | | return buildArea; |
| | | } |
| | | |
| | | /** |
| | | * 设置建çé¢ç§¯ |
| | | * |
| | | * @param buildArea 建çé¢ç§¯ |
| | | */ |
| | | public void setBuildArea(String buildArea) { |
| | | this.buildArea = buildArea == null ? null : buildArea.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åééæ¶é´ |
| | | * |
| | | * @return data_time - ééæ¶é´ |
| | | */ |
| | | public Date getDataTime() { |
| | | return dataTime; |
| | | } |
| | | |
| | | /** |
| | | * 设置ééæ¶é´ |
| | | * |
| | | * @param dataTime ééæ¶é´ |
| | | */ |
| | | public void setDataTime(Date dataTime) { |
| | | this.dataTime = dataTime; |
| | | } |
| | | |
| | | /** |
| | | * è·åæ¸
æ´æªæ½ |
| | | * |
| | | * @return clean_measure - æ¸
æ´æªæ½ |
| | | */ |
| | | public String getCleanMeasure() { |
| | | return cleanMeasure; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ¸
æ´æªæ½ |
| | | * |
| | | * @param cleanMeasure æ¸
æ´æªæ½ |
| | | */ |
| | | public void setCleanMeasure(String cleanMeasure) { |
| | | this.cleanMeasure = cleanMeasure == null ? null : cleanMeasure.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç«ç¹ç¼ç |
| | | * |
| | | * @return code - ç«ç¹ç¼ç |
| | | */ |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç«ç¹ç¼ç |
| | | * |
| | | * @param code ç«ç¹ç¼ç |
| | | */ |
| | | public void setCode(String code) { |
| | | this.code = code == null ? null : code.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ½å·¥åä½ |
| | | * |
| | | * @return construction_unit - æ½å·¥åä½ |
| | | */ |
| | | public String getConstructionUnit() { |
| | | return constructionUnit; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ½å·¥åä½ |
| | | * |
| | | * @param constructionUnit æ½å·¥åä½ |
| | | */ |
| | | public void setConstructionUnit(String constructionUnit) { |
| | | this.constructionUnit = constructionUnit == null ? null : constructionUnit.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç¹ä½æ§å¶çº§ |
| | | * |
| | | * @return control_level - ç¹ä½æ§å¶çº§ |
| | | */ |
| | | public String getControlLevel() { |
| | | return controlLevel; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç¹ä½æ§å¶çº§ |
| | | * |
| | | * @param controlLevel ç¹ä½æ§å¶çº§ |
| | | */ |
| | | public void setControlLevel(String controlLevel) { |
| | | this.controlLevel = controlLevel == null ? null : controlLevel.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå¼åå |
| | | * |
| | | * @return developers - å¼åå |
| | | */ |
| | | public String getDevelopers() { |
| | | return developers; |
| | | } |
| | | |
| | | /** |
| | | * 设置å¼åå |
| | | * |
| | | * @param developers å¼åå |
| | | */ |
| | | public void setDevelopers(String developers) { |
| | | this.developers = developers == null ? null : developers.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ§è¡æ¶é´ |
| | | * |
| | | * @return do_time - æ§è¡æ¶é´ |
| | | */ |
| | | public Date getDoTime() { |
| | | return doTime; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ§è¡æ¶é´ |
| | | * |
| | | * @param doTime æ§è¡æ¶é´ |
| | | */ |
| | | public void setDoTime(Date doTime) { |
| | | this.doTime = doTime; |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿ç»´å |
| | | * |
| | | * @return duty_company - è¿ç»´å |
| | | */ |
| | | public String getDutyCompany() { |
| | | return dutyCompany; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿ç»´å |
| | | * |
| | | * @param dutyCompany è¿ç»´å |
| | | */ |
| | | public void setDutyCompany(String dutyCompany) { |
| | | this.dutyCompany = dutyCompany == null ? null : dutyCompany.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿ç»´åid |
| | | * |
| | | * @return duty_company_id - è¿ç»´åid |
| | | */ |
| | | public String getDutyCompanyId() { |
| | | return dutyCompanyId; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿ç»´åid |
| | | * |
| | | * @param dutyCompanyId è¿ç»´åid |
| | | */ |
| | | public void setDutyCompanyId(String dutyCompanyId) { |
| | | this.dutyCompanyId = dutyCompanyId == null ? null : dutyCompanyId.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç»ææ¶é´ |
| | | * |
| | | * @return end_date - ç»ææ¶é´ |
| | | */ |
| | | public Date getEndDate() { |
| | | return endDate; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®ç»ææ¶é´ |
| | | * |
| | | * @param endDate ç»ææ¶é´ |
| | | */ |
| | | public void setEndDate(Date endDate) { |
| | | this.endDate = endDate; |
| | | } |
| | | |
| | | /** |
| | | * è·åå½åæ½å·¥é¶æ®µ |
| | | * |
| | | * @return engineering_stage - å½åæ½å·¥é¶æ®µ |
| | | */ |
| | | public String getEngineeringStage() { |
| | | return engineeringStage; |
| | | } |
| | | |
| | | /** |
| | | * 设置å½åæ½å·¥é¶æ®µ |
| | | * |
| | | * @param engineeringStage å½åæ½å·¥é¶æ®µ |
| | | */ |
| | | public void setEngineeringStage(String engineeringStage) { |
| | | this.engineeringStage = engineeringStage == null ? null : engineeringStage.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå½åæ½å·¥é¶æ®µç¼ç |
| | | * |
| | | * @return engineering_stage_code - å½åæ½å·¥é¶æ®µç¼ç |
| | | */ |
| | | public String getEngineeringStageCode() { |
| | | return engineeringStageCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置å½åæ½å·¥é¶æ®µç¼ç |
| | | * |
| | | * @param engineeringStageCode å½åæ½å·¥é¶æ®µç¼ç |
| | | */ |
| | | public void setEngineeringStageCode(String engineeringStageCode) { |
| | | this.engineeringStageCode = engineeringStageCode == null ? null : engineeringStageCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤ç¼ç |
| | | * |
| | | * @return equipment_code - 设å¤ç¼ç |
| | | */ |
| | | public String getEquipmentCode() { |
| | | return equipmentCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ç¼ç |
| | | * |
| | | * @param equipmentCode 设å¤ç¼ç |
| | | */ |
| | | public void setEquipmentCode(String equipmentCode) { |
| | | this.equipmentCode = equipmentCode == null ? null : equipmentCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå å°é¢ç§¯ |
| | | * |
| | | * @return floor_area - å å°é¢ç§¯ |
| | | */ |
| | | public String getFloorArea() { |
| | | return floorArea; |
| | | } |
| | | |
| | | /** |
| | | * 设置å å°é¢ç§¯ |
| | | * |
| | | * @param floorArea å å°é¢ç§¯ |
| | | */ |
| | | public void setFloorArea(String floorArea) { |
| | | this.floorArea = floorArea == null ? null : floorArea.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±åºå¿ä»£ç |
| | | * |
| | | * @return group_id - æå±åºå¿ä»£ç |
| | | */ |
| | | public String getGroupId() { |
| | | return groupId; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±åºå¿ä»£ç |
| | | * |
| | | * @param groupId æå±åºå¿ä»£ç |
| | | */ |
| | | public void setGroupId(String groupId) { |
| | | this.groupId = groupId == null ? null : groupId.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±åºå¿ |
| | | * |
| | | * @return group_name - æå±åºå¿ |
| | | */ |
| | | public String getGroupName() { |
| | | return groupName; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±åºå¿ |
| | | * |
| | | * @param groupName æå±åºå¿ |
| | | */ |
| | | public void setGroupName(String groupName) { |
| | | this.groupName = groupName == null ? null : groupName.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ¯å¦æçæµ |
| | | * |
| | | * @return has_monitor - æ¯å¦æçæµ |
| | | */ |
| | | public String getHasMonitor() { |
| | | return hasMonitor; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ¯å¦æçæµ |
| | | * |
| | | * @param hasMonitor æ¯å¦æçæµ |
| | | */ |
| | | public void setHasMonitor(String hasMonitor) { |
| | | this.hasMonitor = hasMonitor == null ? null : hasMonitor.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ¯å¦å¨çº¿ |
| | | * |
| | | * @return is_online - æ¯å¦å¨çº¿ |
| | | */ |
| | | public String getIsOnline() { |
| | | return isOnline; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ¯å¦å¨çº¿ |
| | | * |
| | | * @param isOnline æ¯å¦å¨çº¿ |
| | | */ |
| | | public void setIsOnline(String isOnline) { |
| | | this.isOnline = isOnline == null ? null : isOnline.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè®¾å¤æ¯å¦å¼å¸¸ |
| | | * |
| | | * @return is_trouble - è®¾å¤æ¯å¦å¼å¸¸ |
| | | */ |
| | | public String getIsTrouble() { |
| | | return isTrouble; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®è®¾å¤æ¯å¦å¼å¸¸ |
| | | * |
| | | * @param isTrouble è®¾å¤æ¯å¦å¼å¸¸ |
| | | */ |
| | | public void setIsTrouble(String isTrouble) { |
| | | this.isTrouble = isTrouble == null ? null : isTrouble.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå 餿 å¿ä½ |
| | | * |
| | | * @return jhpt_delete - å 餿 å¿ä½ |
| | | */ |
| | | public String getJhptDelete() { |
| | | return jhptDelete; |
| | | } |
| | | |
| | | /** |
| | | * 设置å 餿 å¿ä½ |
| | | * |
| | | * @param jhptDelete å 餿 å¿ä½ |
| | | */ |
| | | public void setJhptDelete(String jhptDelete) { |
| | | this.jhptDelete = jhptDelete == null ? null : jhptDelete.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ´æ°æ¶é´ |
| | | * |
| | | * @return jhpt_update_time - æ´æ°æ¶é´ |
| | | */ |
| | | public String getJhptUpdateTime() { |
| | | return jhptUpdateTime; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®æ´æ°æ¶é´ |
| | | * |
| | | * @param jhptUpdateTime æ´æ°æ¶é´ |
| | | */ |
| | | public void setJhptUpdateTime(String jhptUpdateTime) { |
| | | this.jhptUpdateTime = jhptUpdateTime == null ? null : jhptUpdateTime.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return kindex |
| | | */ |
| | | public String getKindex() { |
| | | return kindex; |
| | | } |
| | | |
| | | /** |
| | | * @param kindex |
| | | */ |
| | | public void setKindex(String kindex) { |
| | | this.kindex = kindex == null ? null : kindex.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å纬度 |
| | | * |
| | | * @return latitude - 纬度 |
| | | */ |
| | | public String getLatitude() { |
| | | return latitude; |
| | | } |
| | | |
| | | /** |
| | | * 设置纬度 |
| | | * |
| | | * @param latitude 纬度 |
| | | */ |
| | | public void setLatitude(String latitude) { |
| | | this.latitude = latitude == null ? null : latitude.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè系人 |
| | | * |
| | | * @return linkman - è系人 |
| | | */ |
| | | public String getLinkman() { |
| | | return linkman; |
| | | } |
| | | |
| | | /** |
| | | * 设置è系人 |
| | | * |
| | | * @param linkman è系人 |
| | | */ |
| | | public void setLinkman(String linkman) { |
| | | this.linkman = linkman == null ? null : linkman.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç»åº¦ |
| | | * |
| | | * @return longitude - ç»åº¦ |
| | | */ |
| | | public String getLongitude() { |
| | | return longitude; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç»åº¦ |
| | | * |
| | | * @param longitude ç»åº¦ |
| | | */ |
| | | public void setLongitude(String longitude) { |
| | | this.longitude = longitude == null ? null : longitude.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤ç¼ç |
| | | * |
| | | * @return mn_code - 设å¤ç¼ç |
| | | */ |
| | | public String getMnCode() { |
| | | return mnCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ç¼ç |
| | | * |
| | | * @param mnCode 设å¤ç¼ç |
| | | */ |
| | | public void setMnCode(String mnCode) { |
| | | this.mnCode = mnCode == null ? null : mnCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç«ç¹åç§° |
| | | * |
| | | * @return name - ç«ç¹åç§° |
| | | */ |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç«ç¹åç§° |
| | | * |
| | | * @param name ç«ç¹åç§° |
| | | */ |
| | | public void setName(String name) { |
| | | this.name = name == null ? null : name.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·ååªå£°åè½åº |
| | | * |
| | | * @return noise_region - åªå£°åè½åº |
| | | */ |
| | | public String getNoiseRegion() { |
| | | return noiseRegion; |
| | | } |
| | | |
| | | /** |
| | | * 设置åªå£°åè½åº |
| | | * |
| | | * @param noiseRegion åªå£°åè½åº |
| | | */ |
| | | public void setNoiseRegion(String noiseRegion) { |
| | | this.noiseRegion = noiseRegion == null ? null : noiseRegion.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè系人çµè¯ |
| | | * |
| | | * @return phone - è系人çµè¯ |
| | | */ |
| | | public String getPhone() { |
| | | return phone; |
| | | } |
| | | |
| | | /** |
| | | * 设置è系人çµè¯ |
| | | * |
| | | * @param phone è系人çµè¯ |
| | | */ |
| | | public void setPhone(String phone) { |
| | | this.phone = phone == null ? null : phone.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±ç份 |
| | | * |
| | | * @return province - æå±ç份 |
| | | */ |
| | | public String getProvince() { |
| | | return province; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±ç份 |
| | | * |
| | | * @param province æå±ç份 |
| | | */ |
| | | public void setProvince(String province) { |
| | | this.province = province == null ? null : province.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè´è´£äºº |
| | | * |
| | | * @return responsible - è´è´£äºº |
| | | */ |
| | | public String getResponsible() { |
| | | return responsible; |
| | | } |
| | | |
| | | /** |
| | | * 设置è´è´£äºº |
| | | * |
| | | * @param responsible è´è´£äºº |
| | | */ |
| | | public void setResponsible(String responsible) { |
| | | this.responsible = responsible == null ? null : responsible.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå
ä¸å¤ç¯ç¼ç |
| | | * |
| | | * @return ring_id - å
ä¸å¤ç¯ç¼ç |
| | | */ |
| | | public String getRingId() { |
| | | return ringId; |
| | | } |
| | | |
| | | /** |
| | | * 设置å
ä¸å¤ç¯ç¼ç |
| | | * |
| | | * @param ringId å
ä¸å¤ç¯ç¼ç |
| | | */ |
| | | public void setRingId(String ringId) { |
| | | this.ringId = ringId == null ? null : ringId.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åé¶æ®µå¼å§æ¥æ |
| | | * |
| | | * @return stage_begin_date - é¶æ®µå¼å§æ¥æ |
| | | */ |
| | | public Date getStageBeginDate() { |
| | | return stageBeginDate; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®é¶æ®µå¼å§æ¥æ |
| | | * |
| | | * @param stageBeginDate é¶æ®µå¼å§æ¥æ |
| | | */ |
| | | public void setStageBeginDate(Date stageBeginDate) { |
| | | this.stageBeginDate = stageBeginDate; |
| | | } |
| | | |
| | | /** |
| | | * è·å忢æ¶é´ |
| | | * |
| | | * @return stop_time - 忢æ¶é´ |
| | | */ |
| | | public Date getStopTime() { |
| | | return stopTime; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®åæ¢æ¶é´ |
| | | * |
| | | * @param stopTime 忢æ¶é´ |
| | | */ |
| | | public void setStopTime(Date stopTime) { |
| | | this.stopTime = stopTime; |
| | | } |
| | | |
| | | /** |
| | | * è·åtspæµåº¦ |
| | | * |
| | | * @return tsp - tspæµåº¦ |
| | | */ |
| | | public Double getTsp() { |
| | | return tsp; |
| | | } |
| | | |
| | | /** |
| | | * 设置tspæµåº¦ |
| | | * |
| | | * @param tsp tspæµåº¦ |
| | | */ |
| | | public void setTsp(Double tsp) { |
| | | this.tsp = tsp; |
| | | } |
| | | |
| | | /** |
| | | * è·åç±»åç¼ç |
| | | * |
| | | * @return type_id - ç±»åç¼ç |
| | | */ |
| | | public String getTypeId() { |
| | | return typeId; |
| | | } |
| | | |
| | | /** |
| | | * 设置类åç¼ç |
| | | * |
| | | * @param typeId ç±»åç¼ç |
| | | */ |
| | | public void setTypeId(String typeId) { |
| | | this.typeId = typeId == null ? null : typeId.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç±»ååç§° |
| | | * |
| | | * @return typename - ç±»ååç§° |
| | | */ |
| | | public String getTypename() { |
| | | return typename; |
| | | } |
| | | |
| | | /** |
| | | * 设置类ååç§° |
| | | * |
| | | * @param typename ç±»ååç§° |
| | | */ |
| | | public void setTypename(String typename) { |
| | | this.typename = typename == null ? null : typename.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç»è®¡ç±»åç¼ç |
| | | * |
| | | * @return union_type_id - ç»è®¡ç±»åç¼ç |
| | | */ |
| | | public String getUnionTypeId() { |
| | | return unionTypeId; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç»è®¡ç±»åç¼ç |
| | | * |
| | | * @param unionTypeId ç»è®¡ç±»åç¼ç |
| | | */ |
| | | public void setUnionTypeId(String unionTypeId) { |
| | | this.unionTypeId = unionTypeId == null ? null : unionTypeId.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå´å¢é«åº¦ |
| | | * |
| | | * @return wall_height - å´å¢é«åº¦ |
| | | */ |
| | | public String getWallHeight() { |
| | | return wallHeight; |
| | | } |
| | | |
| | | /** |
| | | * 设置å´å¢é«åº¦ |
| | | * |
| | | * @param wallHeight å´å¢é«åº¦ |
| | | */ |
| | | public void setWallHeight(String wallHeight) { |
| | | this.wallHeight = wallHeight == null ? null : wallHeight.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åä¸å¡æ¶é´ |
| | | * |
| | | * @return ywsj_date - ä¸å¡æ¶é´ |
| | | */ |
| | | public Date getYwsjDate() { |
| | | return ywsjDate; |
| | | } |
| | | |
| | | /** |
| | | * 设置ä¸å¡æ¶é´ |
| | | * |
| | | * @param ywsjDate ä¸å¡æ¶é´ |
| | | */ |
| | | public void setYwsjDate(Date ywsjDate) { |
| | | this.ywsjDate = ywsjDate; |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.entity; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.util.Date; |
| | | |
| | | @Table(name = "ja_t_dust_site_map") |
| | | public class DustSiteMap { |
| | | @Id |
| | | @Column(name = "Id") |
| | | private Integer id; |
| | | |
| | | @Column(name = "TZ_User_Id") |
| | | private String tzUserId; |
| | | |
| | | @Column(name = "TZ_User_Name") |
| | | private String tzUserName; |
| | | |
| | | @Column(name = "JA_MN_Code") |
| | | private String jaMnCode; |
| | | |
| | | @Column(name = "JA_Scene_Name") |
| | | private String jaSceneName; |
| | | |
| | | @Column(name = "SV_User_Id") |
| | | private String svUserId; |
| | | |
| | | @Column(name = "SV_User_name") |
| | | private String svUserName; |
| | | |
| | | @Column(name = "Create_Time") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * @return Id |
| | | */ |
| | | public Integer getId() { |
| | | return id; |
| | | } |
| | | |
| | | /** |
| | | * @param id |
| | | */ |
| | | public void setId(Integer id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | /** |
| | | * @return TZ_User_Id |
| | | */ |
| | | public String getTzUserId() { |
| | | return tzUserId; |
| | | } |
| | | |
| | | /** |
| | | * @param tzUserId |
| | | */ |
| | | public void setTzUserId(String tzUserId) { |
| | | this.tzUserId = tzUserId == null ? null : tzUserId.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return TZ_User_Name |
| | | */ |
| | | public String getTzUserName() { |
| | | return tzUserName; |
| | | } |
| | | |
| | | /** |
| | | * @param tzUserName |
| | | */ |
| | | public void setTzUserName(String tzUserName) { |
| | | this.tzUserName = tzUserName == null ? null : tzUserName.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return JA_MN_Code |
| | | */ |
| | | public String getJaMnCode() { |
| | | return jaMnCode; |
| | | } |
| | | |
| | | /** |
| | | * @param jaMnCode |
| | | */ |
| | | public void setJaMnCode(String jaMnCode) { |
| | | this.jaMnCode = jaMnCode == null ? null : jaMnCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return JA_Scene_Name |
| | | */ |
| | | public String getJaSceneName() { |
| | | return jaSceneName; |
| | | } |
| | | |
| | | /** |
| | | * @param jaSceneName |
| | | */ |
| | | public void setJaSceneName(String jaSceneName) { |
| | | this.jaSceneName = jaSceneName == null ? null : jaSceneName.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return SV_User_Id |
| | | */ |
| | | public String getSvUserId() { |
| | | return svUserId; |
| | | } |
| | | |
| | | /** |
| | | * @param svUserId |
| | | */ |
| | | public void setSvUserId(String svUserId) { |
| | | this.svUserId = svUserId == null ? null : svUserId.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return SV_User_name |
| | | */ |
| | | public String getSvUserName() { |
| | | return svUserName; |
| | | } |
| | | |
| | | /** |
| | | * @param svUserName |
| | | */ |
| | | public void setSvUserName(String svUserName) { |
| | | this.svUserName = svUserName == null ? null : svUserName.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return Create_Time |
| | | */ |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | /** |
| | | * @param createTime |
| | | */ |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.entity; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.util.Date; |
| | | |
| | | @Table(name = "ja_t_hour_dust_data") |
| | | public class HourDustData { |
| | | @Id |
| | | private String id; |
| | | |
| | | /** |
| | | * æ¬å°å¼ |
| | | */ |
| | | private Double dustvalue; |
| | | |
| | | /** |
| | | * FLAG |
| | | */ |
| | | private String flag; |
| | | |
| | | /** |
| | | * ç级 |
| | | */ |
| | | private String grade; |
| | | |
| | | /** |
| | | * æå±åºå¿ |
| | | */ |
| | | private String groupname; |
| | | |
| | | /** |
| | | * å
¥åºæ¶é´ |
| | | */ |
| | | private Date inserttime; |
| | | |
| | | /** |
| | | * å¼å§æ¶é´ |
| | | */ |
| | | private Date lst; |
| | | |
| | | /** |
| | | * ç»ææ¶é´ |
| | | */ |
| | | @Column(name = "lst_end") |
| | | private Date lstEnd; |
| | | |
| | | /** |
| | | * çæµè®¾å¤ç¼ç |
| | | */ |
| | | private String mncode; |
| | | |
| | | /** |
| | | * å·¥ç¨åç§° |
| | | */ |
| | | private String name; |
| | | |
| | | /** |
| | | * åªå£°å¼ |
| | | */ |
| | | private String noisevalue; |
| | | |
| | | /** |
| | | * å·¥ç¨ID |
| | | */ |
| | | private String projectid; |
| | | |
| | | /** |
| | | * å·¥ç¨ç±»å«ID |
| | | */ |
| | | private String projecttypeid; |
| | | |
| | | /** |
| | | * è´¨é |
| | | */ |
| | | private String quality; |
| | | |
| | | /** |
| | | * @return id |
| | | */ |
| | | public String getId() { |
| | | return id; |
| | | } |
| | | |
| | | /** |
| | | * @param id |
| | | */ |
| | | public void setId(String id) { |
| | | this.id = id == null ? null : id.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ¬å°å¼ |
| | | * |
| | | * @return dustvalue - æ¬å°å¼ |
| | | */ |
| | | public Double getDustvalue() { |
| | | return dustvalue; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ¬å°å¼ |
| | | * |
| | | * @param dustvalue æ¬å°å¼ |
| | | */ |
| | | public void setDustvalue(Double dustvalue) { |
| | | this.dustvalue = dustvalue; |
| | | } |
| | | |
| | | /** |
| | | * è·åFLAG |
| | | * |
| | | * @return flag - FLAG |
| | | */ |
| | | public String getFlag() { |
| | | return flag; |
| | | } |
| | | |
| | | /** |
| | | * 设置FLAG |
| | | * |
| | | * @param flag FLAG |
| | | */ |
| | | public void setFlag(String flag) { |
| | | this.flag = flag == null ? null : flag.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç级 |
| | | * |
| | | * @return grade - ç级 |
| | | */ |
| | | public String getGrade() { |
| | | return grade; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç级 |
| | | * |
| | | * @param grade ç级 |
| | | */ |
| | | public void setGrade(String grade) { |
| | | this.grade = grade == null ? null : grade.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±åºå¿ |
| | | * |
| | | * @return groupname - æå±åºå¿ |
| | | */ |
| | | public String getGroupname() { |
| | | return groupname; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±åºå¿ |
| | | * |
| | | * @param groupname æå±åºå¿ |
| | | */ |
| | | public void setGroupname(String groupname) { |
| | | this.groupname = groupname == null ? null : groupname.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå
¥åºæ¶é´ |
| | | * |
| | | * @return inserttime - å
¥åºæ¶é´ |
| | | */ |
| | | public Date getInserttime() { |
| | | return inserttime; |
| | | } |
| | | |
| | | /** |
| | | * 设置å
¥åºæ¶é´ |
| | | * |
| | | * @param inserttime å
¥åºæ¶é´ |
| | | */ |
| | | public void setInserttime(Date inserttime) { |
| | | this.inserttime = inserttime; |
| | | } |
| | | |
| | | /** |
| | | * è·åå¼å§æ¶é´ |
| | | * |
| | | * @return lst - å¼å§æ¶é´ |
| | | */ |
| | | public Date getLst() { |
| | | return lst; |
| | | } |
| | | |
| | | /** |
| | | * 设置å¼å§æ¶é´ |
| | | * |
| | | * @param lst å¼å§æ¶é´ |
| | | */ |
| | | public void setLst(Date lst) { |
| | | this.lst = lst; |
| | | } |
| | | |
| | | /** |
| | | * è·åç»ææ¶é´ |
| | | * |
| | | * @return lst_end - ç»ææ¶é´ |
| | | */ |
| | | public Date getLstEnd() { |
| | | return lstEnd; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®ç»ææ¶é´ |
| | | * |
| | | * @param lstEnd ç»ææ¶é´ |
| | | */ |
| | | public void setLstEnd(Date lstEnd) { |
| | | this.lstEnd = lstEnd; |
| | | } |
| | | |
| | | /** |
| | | * è·åçæµè®¾å¤ç¼ç |
| | | * |
| | | * @return mncode - çæµè®¾å¤ç¼ç |
| | | */ |
| | | public String getMncode() { |
| | | return mncode; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®çæµè®¾å¤ç¼ç |
| | | * |
| | | * @param mncode çæµè®¾å¤ç¼ç |
| | | */ |
| | | public void setMncode(String mncode) { |
| | | this.mncode = mncode == null ? null : mncode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå·¥ç¨åç§° |
| | | * |
| | | * @return name - å·¥ç¨åç§° |
| | | */ |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | /** |
| | | * 设置工ç¨åç§° |
| | | * |
| | | * @param name å·¥ç¨åç§° |
| | | */ |
| | | public void setName(String name) { |
| | | this.name = name == null ? null : name.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·ååªå£°å¼ |
| | | * |
| | | * @return noisevalue - åªå£°å¼ |
| | | */ |
| | | public String getNoisevalue() { |
| | | return noisevalue; |
| | | } |
| | | |
| | | /** |
| | | * 设置åªå£°å¼ |
| | | * |
| | | * @param noisevalue åªå£°å¼ |
| | | */ |
| | | public void setNoisevalue(String noisevalue) { |
| | | this.noisevalue = noisevalue == null ? null : noisevalue.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå·¥ç¨ID |
| | | * |
| | | * @return projectid - å·¥ç¨ID |
| | | */ |
| | | public String getProjectid() { |
| | | return projectid; |
| | | } |
| | | |
| | | /** |
| | | * 设置工ç¨ID |
| | | * |
| | | * @param projectid å·¥ç¨ID |
| | | */ |
| | | public void setProjectid(String projectid) { |
| | | this.projectid = projectid == null ? null : projectid.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå·¥ç¨ç±»å«ID |
| | | * |
| | | * @return projecttypeid - å·¥ç¨ç±»å«ID |
| | | */ |
| | | public String getProjecttypeid() { |
| | | return projecttypeid; |
| | | } |
| | | |
| | | /** |
| | | * 设置工ç¨ç±»å«ID |
| | | * |
| | | * @param projecttypeid å·¥ç¨ç±»å«ID |
| | | */ |
| | | public void setProjecttypeid(String projecttypeid) { |
| | | this.projecttypeid = projecttypeid == null ? null : projecttypeid.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè´¨é |
| | | * |
| | | * @return quality - è´¨é |
| | | */ |
| | | public String getQuality() { |
| | | return quality; |
| | | } |
| | | |
| | | /** |
| | | * 设置质é |
| | | * |
| | | * @param quality è´¨é |
| | | */ |
| | | public void setQuality(String quality) { |
| | | this.quality = quality == null ? null : quality.trim(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.entity; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.util.Date; |
| | | |
| | | @Table(name = "ja_t_lamp_device_data") |
| | | public class LampDeviceData { |
| | | @Id |
| | | private Integer id; |
| | | |
| | | /** |
| | | * ééå· |
| | | */ |
| | | @Column(name = "channel_num") |
| | | private String channelNum; |
| | | |
| | | /** |
| | | * æ¸
æ´åº¦ |
| | | */ |
| | | @Column(name = "clean_liness") |
| | | private String cleanLiness; |
| | | |
| | | /** |
| | | * 设å¤ç¼å· |
| | | */ |
| | | @Column(name = "device_code") |
| | | private String deviceCode; |
| | | |
| | | /** |
| | | * 设å¤åç§° |
| | | */ |
| | | @Column(name = "device_name") |
| | | private String deviceName; |
| | | |
| | | /** |
| | | * 设å¤ç¶æ |
| | | */ |
| | | @Column(name = "device_state") |
| | | private String deviceState; |
| | | |
| | | /** |
| | | * ä¼ä¸ç¼å· |
| | | */ |
| | | @Column(name = "enter_id") |
| | | private String enterId; |
| | | |
| | | /** |
| | | * é£æç¶æ |
| | | */ |
| | | @Column(name = "fan_state") |
| | | private String fanState; |
| | | |
| | | /** |
| | | * æ²¹çæµåº¦ |
| | | */ |
| | | @Column(name = "lampblack_value") |
| | | private Double lampblackValue; |
| | | |
| | | /** |
| | | * çæµæ¶é´ |
| | | */ |
| | | @Column(name = "monitor_time") |
| | | private Date monitorTime; |
| | | |
| | | /** |
| | | * ç产æ¶é´ |
| | | */ |
| | | @Column(name = "production_date") |
| | | private Date productionDate; |
| | | |
| | | /** |
| | | * ååå¨ç¶æ |
| | | */ |
| | | @Column(name = "purifier_state") |
| | | private String purifierState; |
| | | |
| | | /** |
| | | * @return id |
| | | */ |
| | | public Integer getId() { |
| | | return id; |
| | | } |
| | | |
| | | /** |
| | | * @param id |
| | | */ |
| | | public void setId(Integer id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | /** |
| | | * è·åééå· |
| | | * |
| | | * @return channel_num - ééå· |
| | | */ |
| | | public String getChannelNum() { |
| | | return channelNum; |
| | | } |
| | | |
| | | /** |
| | | * 设置ééå· |
| | | * |
| | | * @param channelNum ééå· |
| | | */ |
| | | public void setChannelNum(String channelNum) { |
| | | this.channelNum = channelNum == null ? null : channelNum.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ¸
æ´åº¦ |
| | | * |
| | | * @return clean_liness - æ¸
æ´åº¦ |
| | | */ |
| | | public String getCleanLiness() { |
| | | return cleanLiness; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ¸
æ´åº¦ |
| | | * |
| | | * @param cleanLiness æ¸
æ´åº¦ |
| | | */ |
| | | public void setCleanLiness(String cleanLiness) { |
| | | this.cleanLiness = cleanLiness == null ? null : cleanLiness.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤ç¼å· |
| | | * |
| | | * @return device_code - 设å¤ç¼å· |
| | | */ |
| | | public String getDeviceCode() { |
| | | return deviceCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ç¼å· |
| | | * |
| | | * @param deviceCode 设å¤ç¼å· |
| | | */ |
| | | public void setDeviceCode(String deviceCode) { |
| | | this.deviceCode = deviceCode == null ? null : deviceCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤åç§° |
| | | * |
| | | * @return device_name - 设å¤åç§° |
| | | */ |
| | | public String getDeviceName() { |
| | | return deviceName; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤åç§° |
| | | * |
| | | * @param deviceName 设å¤åç§° |
| | | */ |
| | | public void setDeviceName(String deviceName) { |
| | | this.deviceName = deviceName == null ? null : deviceName.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤ç¶æ |
| | | * |
| | | * @return device_state - 设å¤ç¶æ |
| | | */ |
| | | public String getDeviceState() { |
| | | return deviceState; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ç¶æ |
| | | * |
| | | * @param deviceState 设å¤ç¶æ |
| | | */ |
| | | public void setDeviceState(String deviceState) { |
| | | this.deviceState = deviceState == null ? null : deviceState.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åä¼ä¸ç¼å· |
| | | * |
| | | * @return enter_id - ä¼ä¸ç¼å· |
| | | */ |
| | | public String getEnterId() { |
| | | return enterId; |
| | | } |
| | | |
| | | /** |
| | | * 设置ä¼ä¸ç¼å· |
| | | * |
| | | * @param enterId ä¼ä¸ç¼å· |
| | | */ |
| | | public void setEnterId(String enterId) { |
| | | this.enterId = enterId == null ? null : enterId.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åé£æç¶æ |
| | | * |
| | | * @return fan_state - é£æç¶æ |
| | | */ |
| | | public String getFanState() { |
| | | return fanState; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®é£æç¶æ |
| | | * |
| | | * @param fanState é£æç¶æ |
| | | */ |
| | | public void setFanState(String fanState) { |
| | | this.fanState = fanState == null ? null : fanState.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ²¹çæµåº¦ |
| | | * |
| | | * @return lampblack_value - æ²¹çæµåº¦ |
| | | */ |
| | | public Double getLampblackValue() { |
| | | return lampblackValue; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®æ²¹çæµåº¦ |
| | | * |
| | | * @param lampblackValue æ²¹çæµåº¦ |
| | | */ |
| | | public void setLampblackValue(Double lampblackValue) { |
| | | this.lampblackValue = lampblackValue; |
| | | } |
| | | |
| | | /** |
| | | * è·åçæµæ¶é´ |
| | | * |
| | | * @return monitor_time - çæµæ¶é´ |
| | | */ |
| | | public Date getMonitorTime() { |
| | | return monitorTime; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®çæµæ¶é´ |
| | | * |
| | | * @param monitorTime çæµæ¶é´ |
| | | */ |
| | | public void setMonitorTime(Date monitorTime) { |
| | | this.monitorTime = monitorTime; |
| | | } |
| | | |
| | | /** |
| | | * è·åç产æ¶é´ |
| | | * |
| | | * @return production_date - ç产æ¶é´ |
| | | */ |
| | | public Date getProductionDate() { |
| | | return productionDate; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç产æ¶é´ |
| | | * |
| | | * @param productionDate ç产æ¶é´ |
| | | */ |
| | | public void setProductionDate(Date productionDate) { |
| | | this.productionDate = productionDate; |
| | | } |
| | | |
| | | /** |
| | | * è·åååå¨ç¶æ |
| | | * |
| | | * @return purifier_state - ååå¨ç¶æ |
| | | */ |
| | | public String getPurifierState() { |
| | | return purifierState; |
| | | } |
| | | |
| | | /** |
| | | * 设置ååå¨ç¶æ |
| | | * |
| | | * @param purifierState ååå¨ç¶æ |
| | | */ |
| | | public void setPurifierState(String purifierState) { |
| | | this.purifierState = purifierState == null ? null : purifierState.trim(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.entity; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.util.Date; |
| | | |
| | | @Table(name = "ja_t_lamp_enter_base_info") |
| | | public class LampEnterBaseInfo { |
| | | /** |
| | | * ä¼ä¸ç¼ç |
| | | */ |
| | | @Id |
| | | @Column(name = "enter_id") |
| | | private String enterId; |
| | | |
| | | /** |
| | | * ä¼ä¸åç§° |
| | | */ |
| | | @Column(name = "enter_name") |
| | | private String enterName; |
| | | |
| | | /** |
| | | * ä¼ä¸å°å |
| | | */ |
| | | private String address; |
| | | |
| | | /** |
| | | * è¥ä¸æ¶é´ |
| | | */ |
| | | @Column(name = "business_date") |
| | | private String businessDate; |
| | | |
| | | /** |
| | | * æ°æ®æº |
| | | */ |
| | | private String datasource; |
| | | |
| | | /** |
| | | * éèåºç¼ç |
| | | */ |
| | | @Column(name = "jjq_code") |
| | | private String jjqCode; |
| | | |
| | | /** |
| | | * éèåºåç§° |
| | | */ |
| | | @Column(name = "jjq_name") |
| | | private String jjqName; |
| | | |
| | | /** |
| | | * 纬度 |
| | | */ |
| | | private Double latitude; |
| | | |
| | | /** |
| | | * è系人 |
| | | */ |
| | | @Column(name = "link_man") |
| | | private String linkMan; |
| | | |
| | | /** |
| | | * èç³»çµè¯ |
| | | */ |
| | | @Column(name = "link_phone") |
| | | private String linkPhone; |
| | | |
| | | /** |
| | | * ç»åº¦ |
| | | */ |
| | | private Double longitude; |
| | | |
| | | /** |
| | | * è¡æ¿åºåç§° |
| | | */ |
| | | @Column(name = "region_name") |
| | | private String regionName; |
| | | |
| | | /** |
| | | * æ³¨åæ¶é´ |
| | | */ |
| | | @Column(name = "regist_date") |
| | | private Date registDate; |
| | | |
| | | /** |
| | | * ç¶æ |
| | | */ |
| | | private String state; |
| | | |
| | | /** |
| | | * æå±è¡é |
| | | */ |
| | | private String street; |
| | | |
| | | /** |
| | | * æå£ç±»å |
| | | */ |
| | | private String outfallType; |
| | | |
| | | /** |
| | | * è·åä¼ä¸ç¼ç |
| | | * |
| | | * @return enter_id - ä¼ä¸ç¼ç |
| | | */ |
| | | public String getEnterId() { |
| | | return enterId; |
| | | } |
| | | |
| | | /** |
| | | * 设置ä¼ä¸ç¼ç |
| | | * |
| | | * @param enterId ä¼ä¸ç¼ç |
| | | */ |
| | | public void setEnterId(String enterId) { |
| | | this.enterId = enterId == null ? null : enterId.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åä¼ä¸åç§° |
| | | * |
| | | * @return enter_name - ä¼ä¸åç§° |
| | | */ |
| | | public String getEnterName() { |
| | | return enterName; |
| | | } |
| | | |
| | | /** |
| | | * 设置ä¼ä¸åç§° |
| | | * |
| | | * @param enterName ä¼ä¸åç§° |
| | | */ |
| | | public void setEnterName(String enterName) { |
| | | this.enterName = enterName == null ? null : enterName.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åä¼ä¸å°å |
| | | * |
| | | * @return address - ä¼ä¸å°å |
| | | */ |
| | | public String getAddress() { |
| | | return address; |
| | | } |
| | | |
| | | /** |
| | | * 设置ä¼ä¸å°å |
| | | * |
| | | * @param address ä¼ä¸å°å |
| | | */ |
| | | public void setAddress(String address) { |
| | | this.address = address == null ? null : address.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¥ä¸æ¶é´ |
| | | * |
| | | * @return business_date - è¥ä¸æ¶é´ |
| | | */ |
| | | public String getBusinessDate() { |
| | | return businessDate; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¥ä¸æ¶é´ |
| | | * |
| | | * @param businessDate è¥ä¸æ¶é´ |
| | | */ |
| | | public void setBusinessDate(String businessDate) { |
| | | this.businessDate = businessDate == null ? null : businessDate.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ°æ®æº |
| | | * |
| | | * @return datasource - æ°æ®æº |
| | | */ |
| | | public String getDatasource() { |
| | | return datasource; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®æ°æ®æº |
| | | * |
| | | * @param datasource æ°æ®æº |
| | | */ |
| | | public void setDatasource(String datasource) { |
| | | this.datasource = datasource == null ? null : datasource.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åéèåºç¼ç |
| | | * |
| | | * @return jjq_code - éèåºç¼ç |
| | | */ |
| | | public String getJjqCode() { |
| | | return jjqCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置éèåºç¼ç |
| | | * |
| | | * @param jjqCode éèåºç¼ç |
| | | */ |
| | | public void setJjqCode(String jjqCode) { |
| | | this.jjqCode = jjqCode == null ? null : jjqCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åéèåºåç§° |
| | | * |
| | | * @return jjq_name - éèåºåç§° |
| | | */ |
| | | public String getJjqName() { |
| | | return jjqName; |
| | | } |
| | | |
| | | /** |
| | | * 设置éèåºåç§° |
| | | * |
| | | * @param jjqName éèåºåç§° |
| | | */ |
| | | public void setJjqName(String jjqName) { |
| | | this.jjqName = jjqName == null ? null : jjqName.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å纬度 |
| | | * |
| | | * @return latitude - 纬度 |
| | | */ |
| | | public Double getLatitude() { |
| | | return latitude; |
| | | } |
| | | |
| | | /** |
| | | * 设置纬度 |
| | | * |
| | | * @param latitude 纬度 |
| | | */ |
| | | public void setLatitude(Double latitude) { |
| | | this.latitude = latitude; |
| | | } |
| | | |
| | | /** |
| | | * è·åè系人 |
| | | * |
| | | * @return link_man - è系人 |
| | | */ |
| | | public String getLinkMan() { |
| | | return linkMan; |
| | | } |
| | | |
| | | /** |
| | | * 设置è系人 |
| | | * |
| | | * @param linkMan è系人 |
| | | */ |
| | | public void setLinkMan(String linkMan) { |
| | | this.linkMan = linkMan == null ? null : linkMan.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åèç³»çµè¯ |
| | | * |
| | | * @return link_phone - èç³»çµè¯ |
| | | */ |
| | | public String getLinkPhone() { |
| | | return linkPhone; |
| | | } |
| | | |
| | | /** |
| | | * 设置èç³»çµè¯ |
| | | * |
| | | * @param linkPhone èç³»çµè¯ |
| | | */ |
| | | public void setLinkPhone(String linkPhone) { |
| | | this.linkPhone = linkPhone == null ? null : linkPhone.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç»åº¦ |
| | | * |
| | | * @return longitude - ç»åº¦ |
| | | */ |
| | | public Double getLongitude() { |
| | | return longitude; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç»åº¦ |
| | | * |
| | | * @param longitude ç»åº¦ |
| | | */ |
| | | public void setLongitude(Double longitude) { |
| | | this.longitude = longitude; |
| | | } |
| | | |
| | | /** |
| | | * è·åè¡æ¿åºåç§° |
| | | * |
| | | * @return region_name - è¡æ¿åºåç§° |
| | | */ |
| | | public String getRegionName() { |
| | | return regionName; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®è¡æ¿åºåç§° |
| | | * |
| | | * @param regionName è¡æ¿åºåç§° |
| | | */ |
| | | public void setRegionName(String regionName) { |
| | | this.regionName = regionName == null ? null : regionName.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ³¨åæ¶é´ |
| | | * |
| | | * @return regist_date - æ³¨åæ¶é´ |
| | | */ |
| | | public Date getRegistDate() { |
| | | return registDate; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®æ³¨åæ¶é´ |
| | | * |
| | | * @param registDate æ³¨åæ¶é´ |
| | | */ |
| | | public void setRegistDate(Date registDate) { |
| | | this.registDate = registDate; |
| | | } |
| | | |
| | | /** |
| | | * è·åç¶æ |
| | | * |
| | | * @return state - ç¶æ |
| | | */ |
| | | public String getState() { |
| | | return state; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®ç¶æ |
| | | * |
| | | * @param state ç¶æ |
| | | */ |
| | | public void setState(String state) { |
| | | this.state = state == null ? null : state.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±è¡é |
| | | * |
| | | * @return street - æå±è¡é |
| | | */ |
| | | public String getStreet() { |
| | | return street; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±è¡é |
| | | * |
| | | * @param street æå±è¡é |
| | | */ |
| | | public void setStreet(String street) { |
| | | this.street = street == null ? null : street.trim(); |
| | | } |
| | | |
| | | public String getOutfallType() { |
| | | return outfallType; |
| | | } |
| | | |
| | | public void setOutfallType(String outfallType) { |
| | | this.outfallType = outfallType; |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.entity; |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.BaseScene; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | |
| | | @Table(name = "ea_t_restaurant_base_info") |
| | | public class RestaurantBaseInfo implements BaseScene { |
| | | @Id |
| | | @Column(name = "RB_GUID") |
| | | private String rbGuid; |
| | | |
| | | /** |
| | | * ç»è¥èç³» |
| | | */ |
| | | @Column(name = "RB_Cuisine") |
| | | private String rbCuisine; |
| | | |
| | | /** |
| | | * æ²¹çç±»å |
| | | */ |
| | | @Column(name = "RB_Cooking_Fumes_Type") |
| | | private String rbCookingFumesType; |
| | | |
| | | /** |
| | | * æ¥å®¢é«å³°æ¶æ®µ |
| | | */ |
| | | @Column(name = "RB_Peak_Period") |
| | | private String rbPeakPeriod; |
| | | |
| | | /** |
| | | * 室å
å°±é¤ä½ |
| | | */ |
| | | @Column(name = "RB_Indoor_Seating") |
| | | private Integer rbIndoorSeating; |
| | | |
| | | /** |
| | | * 室å¤å°±é¤ä½ |
| | | */ |
| | | @Column(name = "RB_Outdoor_Seating") |
| | | private Integer rbOutdoorSeating; |
| | | |
| | | /** |
| | | * å°±é¤ä½æ»æ° |
| | | */ |
| | | @Column(name = "RB_Total_Seating") |
| | | private Integer rbTotalSeating; |
| | | |
| | | /** |
| | | * æ¯å¦åå¨å¤§å ç§ç¤ææ·å¤ç§ç¤ |
| | | */ |
| | | @Column(name = "RB_Outdoor_Barbecue") |
| | | private Boolean rbOutdoorBarbecue; |
| | | |
| | | /** |
| | | * å卿¯å¦æå夿å¼é¨çª |
| | | */ |
| | | @Column(name = "RB_Open_Kitchen") |
| | | private Boolean rbOpenKitchen; |
| | | |
| | | /** |
| | | * 大å ãåå¨ç¯å¢æ
åµ |
| | | */ |
| | | @Column(name = "RB_Environment") |
| | | private String rbEnvironment; |
| | | |
| | | /** |
| | | * ç¶å¤´æ° |
| | | */ |
| | | @Column(name = "RB_Cooking_Range_Num") |
| | | private Integer rbCookingRangeNum; |
| | | |
| | | /** |
| | | * çµç¤ç |
| | | */ |
| | | @Column(name = "RB_Electric_Oven_Num") |
| | | private Integer rbElectricOvenNum; |
| | | |
| | | /** |
| | | * å
¶ä»æ¶æ²¹ççå
· |
| | | */ |
| | | @Column(name = "RB_Other_Cooker_Num") |
| | | private String rbOtherCookerNum; |
| | | |
| | | /** |
| | | * å卿¯å¦ææ°é£ |
| | | */ |
| | | @Column(name = "RB_Fresh_Air") |
| | | private Boolean rbFreshAir; |
| | | |
| | | /** |
| | | * å卿¯å¦æç©ºè° |
| | | */ |
| | | @Column(name = "RB_Air_Conditioner") |
| | | private Boolean rbAirConditioner; |
| | | |
| | | /** |
| | | * å卿¯å¦æææ°æ |
| | | */ |
| | | @Column(name = "RB_Exhaust_Fan") |
| | | private Boolean rbExhaustFan; |
| | | |
| | | /** |
| | | * ç¨æ²¹ç±»å |
| | | */ |
| | | @Column(name = "RB_Cooking_Oil_Type") |
| | | private String rbCookingOilType; |
| | | |
| | | /** |
| | | * æåº¦ç¨æ²¹éï¼Lï¼ |
| | | */ |
| | | @Column(name = "RB_Cooking_Oil_Capacity") |
| | | private String rbCookingOilCapacity; |
| | | |
| | | /** |
| | | * æå±éä¸åº |
| | | */ |
| | | @Column(name = "RB_Concentration_Area") |
| | | private String rbConcentrationArea; |
| | | |
| | | /** |
| | | * æå£æ°é |
| | | */ |
| | | @Column(name = "RB_Outfall_Count") |
| | | private Integer rbOutfallCount; |
| | | |
| | | /** |
| | | * æå£ä½ç½® |
| | | */ |
| | | @Column(name = "RB_Outfall_Location") |
| | | private String rbOutfallLocation; |
| | | |
| | | /** |
| | | * æå£ç¼å· |
| | | */ |
| | | @Column(name = "RB_Outfall_Num") |
| | | private String rbOutfallNum; |
| | | |
| | | @Column(name = "RB_Extension1") |
| | | private String rbExtension1; |
| | | |
| | | @Column(name = "RB_Extension2") |
| | | private String rbExtension2; |
| | | |
| | | @Column(name = "RB_Extension3") |
| | | private String rbExtension3; |
| | | |
| | | @Column(name = "RB_Remark") |
| | | private String rbRemark; |
| | | |
| | | /** |
| | | * @return RB_GUID |
| | | */ |
| | | public String getRbGuid() { |
| | | return rbGuid; |
| | | } |
| | | |
| | | /** |
| | | * @param rbGuid |
| | | */ |
| | | public void setRbGuid(String rbGuid) { |
| | | this.rbGuid = rbGuid == null ? null : rbGuid.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç»è¥èç³» |
| | | * |
| | | * @return RB_Cuisine - ç»è¥èç³» |
| | | */ |
| | | public String getRbCuisine() { |
| | | return rbCuisine; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç»è¥èç³» |
| | | * |
| | | * @param rbCuisine ç»è¥èç³» |
| | | */ |
| | | public void setRbCuisine(String rbCuisine) { |
| | | this.rbCuisine = rbCuisine == null ? null : rbCuisine.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ²¹çç±»å |
| | | * |
| | | * @return RB_Cooking_Fumes_Type - æ²¹çç±»å |
| | | */ |
| | | public String getRbCookingFumesType() { |
| | | return rbCookingFumesType; |
| | | } |
| | | |
| | | /** |
| | | * 设置油çç±»å |
| | | * |
| | | * @param rbCookingFumesType æ²¹çç±»å |
| | | */ |
| | | public void setRbCookingFumesType(String rbCookingFumesType) { |
| | | this.rbCookingFumesType = rbCookingFumesType == null ? null : rbCookingFumesType.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ¥å®¢é«å³°æ¶æ®µ |
| | | * |
| | | * @return RB_Peak_Period - æ¥å®¢é«å³°æ¶æ®µ |
| | | */ |
| | | public String getRbPeakPeriod() { |
| | | return rbPeakPeriod; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ¥å®¢é«å³°æ¶æ®µ |
| | | * |
| | | * @param rbPeakPeriod æ¥å®¢é«å³°æ¶æ®µ |
| | | */ |
| | | public void setRbPeakPeriod(String rbPeakPeriod) { |
| | | this.rbPeakPeriod = rbPeakPeriod == null ? null : rbPeakPeriod.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å室å
å°±é¤ä½ |
| | | * |
| | | * @return RB_Indoor_Seating - 室å
å°±é¤ä½ |
| | | */ |
| | | public Integer getRbIndoorSeating() { |
| | | return rbIndoorSeating; |
| | | } |
| | | |
| | | /** |
| | | * 设置室å
å°±é¤ä½ |
| | | * |
| | | * @param rbIndoorSeating 室å
å°±é¤ä½ |
| | | */ |
| | | public void setRbIndoorSeating(Integer rbIndoorSeating) { |
| | | this.rbIndoorSeating = rbIndoorSeating; |
| | | } |
| | | |
| | | /** |
| | | * è·å室å¤å°±é¤ä½ |
| | | * |
| | | * @return RB_Outdoor_Seating - 室å¤å°±é¤ä½ |
| | | */ |
| | | public Integer getRbOutdoorSeating() { |
| | | return rbOutdoorSeating; |
| | | } |
| | | |
| | | /** |
| | | * 设置室å¤å°±é¤ä½ |
| | | * |
| | | * @param rbOutdoorSeating 室å¤å°±é¤ä½ |
| | | */ |
| | | public void setRbOutdoorSeating(Integer rbOutdoorSeating) { |
| | | this.rbOutdoorSeating = rbOutdoorSeating; |
| | | } |
| | | |
| | | /** |
| | | * è·åå°±é¤ä½æ»æ° |
| | | * |
| | | * @return RB_Total_Seating - å°±é¤ä½æ»æ° |
| | | */ |
| | | public Integer getRbTotalSeating() { |
| | | return rbTotalSeating; |
| | | } |
| | | |
| | | /** |
| | | * 设置就é¤ä½æ»æ° |
| | | * |
| | | * @param rbTotalSeating å°±é¤ä½æ»æ° |
| | | */ |
| | | public void setRbTotalSeating(Integer rbTotalSeating) { |
| | | this.rbTotalSeating = rbTotalSeating; |
| | | } |
| | | |
| | | /** |
| | | * è·åæ¯å¦åå¨å¤§å ç§ç¤ææ·å¤ç§ç¤ |
| | | * |
| | | * @return RB_Outdoor_Barbecue - æ¯å¦åå¨å¤§å ç§ç¤ææ·å¤ç§ç¤ |
| | | */ |
| | | public Boolean getRbOutdoorBarbecue() { |
| | | return rbOutdoorBarbecue; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ¯å¦åå¨å¤§å ç§ç¤ææ·å¤ç§ç¤ |
| | | * |
| | | * @param rbOutdoorBarbecue æ¯å¦åå¨å¤§å ç§ç¤ææ·å¤ç§ç¤ |
| | | */ |
| | | public void setRbOutdoorBarbecue(Boolean rbOutdoorBarbecue) { |
| | | this.rbOutdoorBarbecue = rbOutdoorBarbecue; |
| | | } |
| | | |
| | | /** |
| | | * è·åå卿¯å¦æå夿å¼é¨çª |
| | | * |
| | | * @return RB_Open_Kitchen - å卿¯å¦æå夿å¼é¨çª |
| | | */ |
| | | public Boolean getRbOpenKitchen() { |
| | | return rbOpenKitchen; |
| | | } |
| | | |
| | | /** |
| | | * 设置å卿¯å¦æå夿å¼é¨çª |
| | | * |
| | | * @param rbOpenKitchen å卿¯å¦æå夿å¼é¨çª |
| | | */ |
| | | public void setRbOpenKitchen(Boolean rbOpenKitchen) { |
| | | this.rbOpenKitchen = rbOpenKitchen; |
| | | } |
| | | |
| | | /** |
| | | * è·å大å ãåå¨ç¯å¢æ
åµ |
| | | * |
| | | * @return RB_Environment - 大å ãåå¨ç¯å¢æ
åµ |
| | | */ |
| | | public String getRbEnvironment() { |
| | | return rbEnvironment; |
| | | } |
| | | |
| | | /** |
| | | * 设置大å ãåå¨ç¯å¢æ
åµ |
| | | * |
| | | * @param rbEnvironment 大å ãåå¨ç¯å¢æ
åµ |
| | | */ |
| | | public void setRbEnvironment(String rbEnvironment) { |
| | | this.rbEnvironment = rbEnvironment == null ? null : rbEnvironment.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç¶å¤´æ° |
| | | * |
| | | * @return RB_Cooking_Range_Num - ç¶å¤´æ° |
| | | */ |
| | | public Integer getRbCookingRangeNum() { |
| | | return rbCookingRangeNum; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç¶å¤´æ° |
| | | * |
| | | * @param rbCookingRangeNum ç¶å¤´æ° |
| | | */ |
| | | public void setRbCookingRangeNum(Integer rbCookingRangeNum) { |
| | | this.rbCookingRangeNum = rbCookingRangeNum; |
| | | } |
| | | |
| | | /** |
| | | * è·åçµç¤ç |
| | | * |
| | | * @return RB_Electric_Oven_Num - çµç¤ç |
| | | */ |
| | | public Integer getRbElectricOvenNum() { |
| | | return rbElectricOvenNum; |
| | | } |
| | | |
| | | /** |
| | | * 设置çµç¤ç |
| | | * |
| | | * @param rbElectricOvenNum çµç¤ç |
| | | */ |
| | | public void setRbElectricOvenNum(Integer rbElectricOvenNum) { |
| | | this.rbElectricOvenNum = rbElectricOvenNum; |
| | | } |
| | | |
| | | /** |
| | | * è·åå
¶ä»æ¶æ²¹ççå
· |
| | | * |
| | | * @return RB_Other_Cooker_Num - å
¶ä»æ¶æ²¹ççå
· |
| | | */ |
| | | public String getRbOtherCookerNum() { |
| | | return rbOtherCookerNum; |
| | | } |
| | | |
| | | /** |
| | | * 设置å
¶ä»æ¶æ²¹ççå
· |
| | | * |
| | | * @param rbOtherCookerNum å
¶ä»æ¶æ²¹ççå
· |
| | | */ |
| | | public void setRbOtherCookerNum(String rbOtherCookerNum) { |
| | | this.rbOtherCookerNum = rbOtherCookerNum == null ? null : rbOtherCookerNum.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå卿¯å¦ææ°é£ |
| | | * |
| | | * @return RB_Fresh_Air - å卿¯å¦ææ°é£ |
| | | */ |
| | | public Boolean getRbFreshAir() { |
| | | return rbFreshAir; |
| | | } |
| | | |
| | | /** |
| | | * 设置å卿¯å¦ææ°é£ |
| | | * |
| | | * @param rbFreshAir å卿¯å¦ææ°é£ |
| | | */ |
| | | public void setRbFreshAir(Boolean rbFreshAir) { |
| | | this.rbFreshAir = rbFreshAir; |
| | | } |
| | | |
| | | /** |
| | | * è·åå卿¯å¦æç©ºè° |
| | | * |
| | | * @return RB_Air_Conditioner - å卿¯å¦æç©ºè° |
| | | */ |
| | | public Boolean getRbAirConditioner() { |
| | | return rbAirConditioner; |
| | | } |
| | | |
| | | /** |
| | | * 设置å卿¯å¦æç©ºè° |
| | | * |
| | | * @param rbAirConditioner å卿¯å¦æç©ºè° |
| | | */ |
| | | public void setRbAirConditioner(Boolean rbAirConditioner) { |
| | | this.rbAirConditioner = rbAirConditioner; |
| | | } |
| | | |
| | | /** |
| | | * è·åå卿¯å¦æææ°æ |
| | | * |
| | | * @return RB_Exhaust_Fan - å卿¯å¦æææ°æ |
| | | */ |
| | | public Boolean getRbExhaustFan() { |
| | | return rbExhaustFan; |
| | | } |
| | | |
| | | /** |
| | | * 设置å卿¯å¦æææ°æ |
| | | * |
| | | * @param rbExhaustFan å卿¯å¦æææ°æ |
| | | */ |
| | | public void setRbExhaustFan(Boolean rbExhaustFan) { |
| | | this.rbExhaustFan = rbExhaustFan; |
| | | } |
| | | |
| | | /** |
| | | * è·åç¨æ²¹ç±»å |
| | | * |
| | | * @return RB_Cooking_Oil_Type - ç¨æ²¹ç±»å |
| | | */ |
| | | public String getRbCookingOilType() { |
| | | return rbCookingOilType; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®ç¨æ²¹ç±»å |
| | | * |
| | | * @param rbCookingOilType ç¨æ²¹ç±»å |
| | | */ |
| | | public void setRbCookingOilType(String rbCookingOilType) { |
| | | this.rbCookingOilType = rbCookingOilType == null ? null : rbCookingOilType.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæåº¦ç¨æ²¹éï¼Lï¼ |
| | | * |
| | | * @return RB_Cooking_Oil_Capacity - æåº¦ç¨æ²¹éï¼Lï¼ |
| | | */ |
| | | public String getRbCookingOilCapacity() { |
| | | return rbCookingOilCapacity; |
| | | } |
| | | |
| | | /** |
| | | * 设置æåº¦ç¨æ²¹éï¼Lï¼ |
| | | * |
| | | * @param rbCookingOilCapacity æåº¦ç¨æ²¹éï¼Lï¼ |
| | | */ |
| | | public void setRbCookingOilCapacity(String rbCookingOilCapacity) { |
| | | this.rbCookingOilCapacity = rbCookingOilCapacity == null ? null : rbCookingOilCapacity.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±éä¸åº |
| | | * |
| | | * @return RB_Concentration_Area - æå±éä¸åº |
| | | */ |
| | | public String getRbConcentrationArea() { |
| | | return rbConcentrationArea; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±éä¸åº |
| | | * |
| | | * @param rbConcentrationArea æå±éä¸åº |
| | | */ |
| | | public void setRbConcentrationArea(String rbConcentrationArea) { |
| | | this.rbConcentrationArea = rbConcentrationArea == null ? null : rbConcentrationArea.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæå£æ°é |
| | | * |
| | | * @return RB_Outfall_Count - æå£æ°é |
| | | */ |
| | | public Integer getRbOutfallCount() { |
| | | return rbOutfallCount; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå£æ°é |
| | | * |
| | | * @param rbOutfallCount æå£æ°é |
| | | */ |
| | | public void setRbOutfallCount(Integer rbOutfallCount) { |
| | | this.rbOutfallCount = rbOutfallCount; |
| | | } |
| | | |
| | | /** |
| | | * è·åæå£ä½ç½® |
| | | * |
| | | * @return RB_Outfall_Location - æå£ä½ç½® |
| | | */ |
| | | public String getRbOutfallLocation() { |
| | | return rbOutfallLocation; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå£ä½ç½® |
| | | * |
| | | * @param rbOutfallLocation æå£ä½ç½® |
| | | */ |
| | | public void setRbOutfallLocation(String rbOutfallLocation) { |
| | | this.rbOutfallLocation = rbOutfallLocation == null ? null : rbOutfallLocation.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæå£ç¼å· |
| | | * |
| | | * @return RB_Outfall_Num - æå£ç¼å· |
| | | */ |
| | | public String getRbOutfallNum() { |
| | | return rbOutfallNum; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå£ç¼å· |
| | | * |
| | | * @param rbOutfallNum æå£ç¼å· |
| | | */ |
| | | public void setRbOutfallNum(String rbOutfallNum) { |
| | | this.rbOutfallNum = rbOutfallNum == null ? null : rbOutfallNum.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return RB_Extension1 |
| | | */ |
| | | public String getRbExtension1() { |
| | | return rbExtension1; |
| | | } |
| | | |
| | | /** |
| | | * @param rbExtension1 |
| | | */ |
| | | public void setRbExtension1(String rbExtension1) { |
| | | this.rbExtension1 = rbExtension1 == null ? null : rbExtension1.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return RB_Extension2 |
| | | */ |
| | | public String getRbExtension2() { |
| | | return rbExtension2; |
| | | } |
| | | |
| | | /** |
| | | * @param rbExtension2 |
| | | */ |
| | | public void setRbExtension2(String rbExtension2) { |
| | | this.rbExtension2 = rbExtension2 == null ? null : rbExtension2.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return RB_Extension3 |
| | | */ |
| | | public String getRbExtension3() { |
| | | return rbExtension3; |
| | | } |
| | | |
| | | /** |
| | | * @param rbExtension3 |
| | | */ |
| | | public void setRbExtension3(String rbExtension3) { |
| | | this.rbExtension3 = rbExtension3 == null ? null : rbExtension3.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return RB_Remark |
| | | */ |
| | | public String getRbRemark() { |
| | | return rbRemark; |
| | | } |
| | | |
| | | /** |
| | | * @param rbRemark |
| | | */ |
| | | public void setRbRemark(String rbRemark) { |
| | | this.rbRemark = rbRemark == null ? null : rbRemark.trim(); |
| | | } |
| | | } |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.entity |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonInclude |
| | | import java.util.* |
| | | import javax.persistence.Column |
| | | import javax.persistence.Id |
| | | import javax.persistence.Table |
| | | |
| | | @Table(name = "sm_t_userinfo") |
| | | @JsonInclude(JsonInclude.Include.NON_NULL) |
| | | public class UserinfoTZ { |
| | | open class UserinfoTZ { |
| | | @Id |
| | | @Column(name = "UI_GUID") |
| | | var guid: String? = null |
| | | |
| | | @Column(name = "UI_HeadIconUrl") |
| | | var headIconUrl: String? = null |
| | | |
| | | @Column(name = "UI_AcountName") |
| | | var acountname: String? = null |
| | |
| | | @Column(name = "UI_UserType") |
| | | var usertype: String? = null |
| | | |
| | | @Column(name = "UI_User_SubType_Id") |
| | | var userSubTypeId: Int? = null |
| | | |
| | | @Column(name = "UI_User_SubType") |
| | | var userSubType: String? = null |
| | | |
| | | @Column(name = "D_GUID") |
| | | var dGuid: String? = null |
| | | |
| | |
| | | @Column(name = "UI_WechatID") |
| | | var wechatid: String? = null |
| | | |
| | | @Column(name = "UI_Create_Time") |
| | | var uiCreateTime: Date? = null |
| | | |
| | | @Column(name = "UI_Login_Time") |
| | | var uiLoginTime: Date? = null |
| | | |
| | | @Column(name = "UI_Extension1") |
| | | var extension1: String? = null |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.entity; |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.BaseScene; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | |
| | | @Table(name = "ea_t_vehicle_base_info") |
| | | public class VehicleBaseInfo implements BaseScene { |
| | | @Id |
| | | @Column(name = "VB_GUID") |
| | | private String vbGuid; |
| | | |
| | | /** |
| | | * 汽车维修ç»è¥è®¸å¯è¯ç¼å· |
| | | */ |
| | | @Column(name = "VB_Repair_License") |
| | | private String vbRepairLicense; |
| | | |
| | | /** |
| | | * 汽车维修ç»è¥è®¸å¯è¯æææ |
| | | */ |
| | | @Column(name = "VB_Repair_License_Validity") |
| | | private String vbRepairLicenseValidity; |
| | | |
| | | /** |
| | | * ç¯ä¿è´è´£äºº |
| | | */ |
| | | @Column(name = "VB_Environment_Manager") |
| | | private String vbEnvironmentManager; |
| | | |
| | | /** |
| | | * ç¯ä¿è´è´£äººçµè¯ |
| | | */ |
| | | @Column(name = "VB_Environment_Manager_Tel") |
| | | private String vbEnvironmentManagerTel; |
| | | |
| | | /** |
| | | * 修车类å |
| | | */ |
| | | @Column(name = "VB_Repair_Type") |
| | | private String vbRepairType; |
| | | |
| | | /** |
| | | * ç»´ä¿®èµè´¨çº§å« |
| | | */ |
| | | @Column(name = "VB_Repair_Level") |
| | | private String vbRepairLevel; |
| | | |
| | | /** |
| | | * @return VB_GUID |
| | | */ |
| | | public String getVbGuid() { |
| | | return vbGuid; |
| | | } |
| | | |
| | | /** |
| | | * @param vbGuid |
| | | */ |
| | | public void setVbGuid(String vbGuid) { |
| | | this.vbGuid = vbGuid == null ? null : vbGuid.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å汽车维修ç»è¥è®¸å¯è¯ç¼å· |
| | | * |
| | | * @return VB_Repair_License - 汽车维修ç»è¥è®¸å¯è¯ç¼å· |
| | | */ |
| | | public String getVbRepairLicense() { |
| | | return vbRepairLicense; |
| | | } |
| | | |
| | | /** |
| | | * 设置汽车维修ç»è¥è®¸å¯è¯ç¼å· |
| | | * |
| | | * @param vbRepairLicense 汽车维修ç»è¥è®¸å¯è¯ç¼å· |
| | | */ |
| | | public void setVbRepairLicense(String vbRepairLicense) { |
| | | this.vbRepairLicense = vbRepairLicense == null ? null : vbRepairLicense.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å汽车维修ç»è¥è®¸å¯è¯æææ |
| | | * |
| | | * @return VB_Repair_License_Validity - 汽车维修ç»è¥è®¸å¯è¯æææ |
| | | */ |
| | | public String getVbRepairLicenseValidity() { |
| | | return vbRepairLicenseValidity; |
| | | } |
| | | |
| | | /** |
| | | * 设置汽车维修ç»è¥è®¸å¯è¯æææ |
| | | * |
| | | * @param vbRepairLicenseValidity 汽车维修ç»è¥è®¸å¯è¯æææ |
| | | */ |
| | | public void setVbRepairLicenseValidity(String vbRepairLicenseValidity) { |
| | | this.vbRepairLicenseValidity = vbRepairLicenseValidity == null ? null : vbRepairLicenseValidity.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç¯ä¿è´è´£äºº |
| | | * |
| | | * @return VB_Environment_Manager - ç¯ä¿è´è´£äºº |
| | | */ |
| | | public String getVbEnvironmentManager() { |
| | | return vbEnvironmentManager; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç¯ä¿è´è´£äºº |
| | | * |
| | | * @param vbEnvironmentManager ç¯ä¿è´è´£äºº |
| | | */ |
| | | public void setVbEnvironmentManager(String vbEnvironmentManager) { |
| | | this.vbEnvironmentManager = vbEnvironmentManager == null ? null : vbEnvironmentManager.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç¯ä¿è´è´£äººçµè¯ |
| | | * |
| | | * @return VB_Environment_Manager_Tel - ç¯ä¿è´è´£äººçµè¯ |
| | | */ |
| | | public String getVbEnvironmentManagerTel() { |
| | | return vbEnvironmentManagerTel; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç¯ä¿è´è´£äººçµè¯ |
| | | * |
| | | * @param vbEnvironmentManagerTel ç¯ä¿è´è´£äººçµè¯ |
| | | */ |
| | | public void setVbEnvironmentManagerTel(String vbEnvironmentManagerTel) { |
| | | this.vbEnvironmentManagerTel = vbEnvironmentManagerTel == null ? null : vbEnvironmentManagerTel.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å修车类å |
| | | * |
| | | * @return VB_Repair_Type - 修车类å |
| | | */ |
| | | public String getVbRepairType() { |
| | | return vbRepairType; |
| | | } |
| | | |
| | | /** |
| | | * 设置修车类å |
| | | * |
| | | * @param vbRepairType 修车类å |
| | | */ |
| | | public void setVbRepairType(String vbRepairType) { |
| | | this.vbRepairType = vbRepairType == null ? null : vbRepairType.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç»´ä¿®èµè´¨çº§å« |
| | | * |
| | | * @return VB_Repair_Level - ç»´ä¿®èµè´¨çº§å« |
| | | */ |
| | | public String getVbRepairLevel() { |
| | | return vbRepairLevel; |
| | | } |
| | | |
| | | /** |
| | | * 设置维修èµè´¨çº§å« |
| | | * |
| | | * @param vbRepairLevel ç»´ä¿®èµè´¨çº§å« |
| | | */ |
| | | public void setVbRepairLevel(String vbRepairLevel) { |
| | | this.vbRepairLevel = vbRepairLevel == null ? null : vbRepairLevel.trim(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.mapper |
| | | |
| | | import cn.flightfeather.supervision.domain.ds2.entity.DustSiteInfo |
| | | import cn.flightfeather.supervision.domain.util.MyMapper |
| | | import org.apache.ibatis.annotations.Mapper |
| | | |
| | | @Mapper |
| | | interface DustSiteInfoMapper : MyMapper<DustSiteInfo?> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.mapper |
| | | |
| | | import cn.flightfeather.supervision.domain.ds2.entity.DustSiteMap |
| | | import cn.flightfeather.supervision.domain.util.MyMapper |
| | | import org.apache.ibatis.annotations.Mapper |
| | | |
| | | @Mapper |
| | | interface DustSiteMapMapper : MyMapper<DustSiteMap?> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.mapper |
| | | |
| | | import cn.flightfeather.supervision.domain.ds2.entity.HourDustData |
| | | import cn.flightfeather.supervision.domain.util.MyMapper |
| | | import org.apache.ibatis.annotations.Mapper |
| | | |
| | | @Mapper |
| | | interface HourDustDataMapper : MyMapper<HourDustData?> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.mapper |
| | | |
| | | import cn.flightfeather.supervision.domain.ds2.entity.LampDeviceData |
| | | import cn.flightfeather.supervision.domain.util.MyMapper |
| | | import org.apache.ibatis.annotations.Mapper |
| | | |
| | | @Mapper |
| | | interface LampDeviceDataMapper : MyMapper<LampDeviceData?> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.mapper |
| | | |
| | | import cn.flightfeather.supervision.domain.ds2.entity.LampEnterBaseInfo |
| | | import cn.flightfeather.supervision.domain.util.MyMapper |
| | | import org.apache.ibatis.annotations.Mapper |
| | | |
| | | @Mapper |
| | | interface LampEnterBaseInfoMapper : MyMapper<LampEnterBaseInfo?> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.mapper |
| | | |
| | | import cn.flightfeather.supervision.domain.ds2.entity.RestaurantBaseInfo |
| | | import cn.flightfeather.supervision.domain.util.MyMapper |
| | | import org.apache.ibatis.annotations.Mapper |
| | | |
| | | @Mapper |
| | | interface RestaurantBaseInfoMapper : MyMapper<RestaurantBaseInfo> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds2.mapper |
| | | |
| | | import cn.flightfeather.supervision.domain.ds2.entity.VehicleBaseInfo |
| | | import cn.flightfeather.supervision.domain.util.MyMapper |
| | | import org.apache.ibatis.annotations.Mapper |
| | | |
| | | @Mapper |
| | | interface VehicleBaseInfoMapper : MyMapper<VehicleBaseInfo?> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds3.entity; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import javax.persistence.*; |
| | | |
| | | @Table(name = "fm_web_analysis_data") |
| | | public class FumeDailyAnalysis { |
| | | /** |
| | | * 设å¤ç¼å· |
| | | */ |
| | | @Column(name = "fume_dev_id") |
| | | private String fumeDevId; |
| | | |
| | | @Column(name = "fume_date") |
| | | private Date fumeDate; |
| | | |
| | | /** |
| | | * æçæµåº¦ï¼åä½mg/m^3 |
| | | */ |
| | | @Column(name = "fume_day_min") |
| | | private Double fumeDayMin; |
| | | |
| | | /** |
| | | * æçæµåº¦ï¼åä½mg/m^3 |
| | | */ |
| | | @Column(name = "fume_day_max") |
| | | private Double fumeDayMax; |
| | | |
| | | @Column(name = "fume_day_average") |
| | | private Double fumeDayAverage; |
| | | |
| | | @Column(name = "purifier_open_rate") |
| | | private String purifierOpenRate; |
| | | |
| | | @Column(name = "fume_minute_exceeding_num") |
| | | private BigDecimal fumeMinuteExceedingNum; |
| | | |
| | | @Column(name = "fume_over_standard_rate") |
| | | private String fumeOverStandardRate; |
| | | |
| | | @Column(name = "fume_data_efficiency") |
| | | private String fumeDataEfficiency; |
| | | |
| | | @Column(name = "daily_online_rate") |
| | | private String dailyOnlineRate; |
| | | |
| | | @Column(name = "noon_online_rate") |
| | | private String noonOnlineRate; |
| | | |
| | | @Column(name = "night_online_rate") |
| | | private String nightOnlineRate; |
| | | |
| | | @Column(name = "key_online_rate") |
| | | private String keyOnlineRate; |
| | | |
| | | @Column(name = "noon__valid_rate") |
| | | private String noonValidRate; |
| | | |
| | | @Column(name = "night__valid_rate") |
| | | private String nightValidRate; |
| | | |
| | | @Column(name = "key_valid_rate") |
| | | private String keyValidRate; |
| | | |
| | | @Column(name = "noon_opening_count") |
| | | private String noonOpeningCount; |
| | | |
| | | @Column(name = "night_opening_count") |
| | | private String nightOpeningCount; |
| | | |
| | | @Column(name = "key_opening_rate") |
| | | private String keyOpeningRate; |
| | | |
| | | @Column(name = "noon_exceeding_num") |
| | | private String noonExceedingNum; |
| | | |
| | | @Column(name = "night_exceeding_num") |
| | | private String nightExceedingNum; |
| | | |
| | | @Column(name = "key_exceeding_rate") |
| | | private String keyExceedingRate; |
| | | |
| | | /** |
| | | * è·å设å¤ç¼å· |
| | | * |
| | | * @return fume_dev_id - 设å¤ç¼å· |
| | | */ |
| | | public String getFumeDevId() { |
| | | return fumeDevId; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ç¼å· |
| | | * |
| | | * @param fumeDevId 设å¤ç¼å· |
| | | */ |
| | | public void setFumeDevId(String fumeDevId) { |
| | | this.fumeDevId = fumeDevId == null ? null : fumeDevId.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return fume_date |
| | | */ |
| | | public Date getFumeDate() { |
| | | return fumeDate; |
| | | } |
| | | |
| | | /** |
| | | * @param fumeDate |
| | | */ |
| | | public void setFumeDate(Date fumeDate) { |
| | | this.fumeDate = fumeDate; |
| | | } |
| | | |
| | | /** |
| | | * è·åæçæµåº¦ï¼åä½mg/m^3 |
| | | * |
| | | * @return fume_day_min - æçæµåº¦ï¼åä½mg/m^3 |
| | | */ |
| | | public Double getFumeDayMin() { |
| | | return fumeDayMin; |
| | | } |
| | | |
| | | /** |
| | | * 设置æçæµåº¦ï¼åä½mg/m^3 |
| | | * |
| | | * @param fumeDayMin æçæµåº¦ï¼åä½mg/m^3 |
| | | */ |
| | | public void setFumeDayMin(Double fumeDayMin) { |
| | | this.fumeDayMin = fumeDayMin; |
| | | } |
| | | |
| | | /** |
| | | * è·åæçæµåº¦ï¼åä½mg/m^3 |
| | | * |
| | | * @return fume_day_max - æçæµåº¦ï¼åä½mg/m^3 |
| | | */ |
| | | public Double getFumeDayMax() { |
| | | return fumeDayMax; |
| | | } |
| | | |
| | | /** |
| | | * 设置æçæµåº¦ï¼åä½mg/m^3 |
| | | * |
| | | * @param fumeDayMax æçæµåº¦ï¼åä½mg/m^3 |
| | | */ |
| | | public void setFumeDayMax(Double fumeDayMax) { |
| | | this.fumeDayMax = fumeDayMax; |
| | | } |
| | | |
| | | /** |
| | | * @return fume_day_average |
| | | */ |
| | | public Double getFumeDayAverage() { |
| | | return fumeDayAverage; |
| | | } |
| | | |
| | | /** |
| | | * @param fumeDayAverage |
| | | */ |
| | | public void setFumeDayAverage(Double fumeDayAverage) { |
| | | this.fumeDayAverage = fumeDayAverage; |
| | | } |
| | | |
| | | /** |
| | | * @return purifier_open_rate |
| | | */ |
| | | public String getPurifierOpenRate() { |
| | | return purifierOpenRate; |
| | | } |
| | | |
| | | /** |
| | | * @param purifierOpenRate |
| | | */ |
| | | public void setPurifierOpenRate(String purifierOpenRate) { |
| | | this.purifierOpenRate = purifierOpenRate == null ? null : purifierOpenRate.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return fume_minute_exceeding_num |
| | | */ |
| | | public BigDecimal getFumeMinuteExceedingNum() { |
| | | return fumeMinuteExceedingNum; |
| | | } |
| | | |
| | | /** |
| | | * @param fumeMinuteExceedingNum |
| | | */ |
| | | public void setFumeMinuteExceedingNum(BigDecimal fumeMinuteExceedingNum) { |
| | | this.fumeMinuteExceedingNum = fumeMinuteExceedingNum; |
| | | } |
| | | |
| | | /** |
| | | * @return fume_over_standard_rate |
| | | */ |
| | | public String getFumeOverStandardRate() { |
| | | return fumeOverStandardRate; |
| | | } |
| | | |
| | | /** |
| | | * @param fumeOverStandardRate |
| | | */ |
| | | public void setFumeOverStandardRate(String fumeOverStandardRate) { |
| | | this.fumeOverStandardRate = fumeOverStandardRate == null ? null : fumeOverStandardRate.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return fume_data_efficiency |
| | | */ |
| | | public String getFumeDataEfficiency() { |
| | | return fumeDataEfficiency; |
| | | } |
| | | |
| | | /** |
| | | * @param fumeDataEfficiency |
| | | */ |
| | | public void setFumeDataEfficiency(String fumeDataEfficiency) { |
| | | this.fumeDataEfficiency = fumeDataEfficiency == null ? null : fumeDataEfficiency.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return daily_online_rate |
| | | */ |
| | | public String getDailyOnlineRate() { |
| | | return dailyOnlineRate; |
| | | } |
| | | |
| | | /** |
| | | * @param dailyOnlineRate |
| | | */ |
| | | public void setDailyOnlineRate(String dailyOnlineRate) { |
| | | this.dailyOnlineRate = dailyOnlineRate == null ? null : dailyOnlineRate.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return noon_online_rate |
| | | */ |
| | | public String getNoonOnlineRate() { |
| | | return noonOnlineRate; |
| | | } |
| | | |
| | | /** |
| | | * @param noonOnlineRate |
| | | */ |
| | | public void setNoonOnlineRate(String noonOnlineRate) { |
| | | this.noonOnlineRate = noonOnlineRate == null ? null : noonOnlineRate.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return night_online_rate |
| | | */ |
| | | public String getNightOnlineRate() { |
| | | return nightOnlineRate; |
| | | } |
| | | |
| | | /** |
| | | * @param nightOnlineRate |
| | | */ |
| | | public void setNightOnlineRate(String nightOnlineRate) { |
| | | this.nightOnlineRate = nightOnlineRate == null ? null : nightOnlineRate.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return key_online_rate |
| | | */ |
| | | public String getKeyOnlineRate() { |
| | | return keyOnlineRate; |
| | | } |
| | | |
| | | /** |
| | | * @param keyOnlineRate |
| | | */ |
| | | public void setKeyOnlineRate(String keyOnlineRate) { |
| | | this.keyOnlineRate = keyOnlineRate == null ? null : keyOnlineRate.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return noon__valid_rate |
| | | */ |
| | | public String getNoonValidRate() { |
| | | return noonValidRate; |
| | | } |
| | | |
| | | /** |
| | | * @param noonValidRate |
| | | */ |
| | | public void setNoonValidRate(String noonValidRate) { |
| | | this.noonValidRate = noonValidRate == null ? null : noonValidRate.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return night__valid_rate |
| | | */ |
| | | public String getNightValidRate() { |
| | | return nightValidRate; |
| | | } |
| | | |
| | | /** |
| | | * @param nightValidRate |
| | | */ |
| | | public void setNightValidRate(String nightValidRate) { |
| | | this.nightValidRate = nightValidRate == null ? null : nightValidRate.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return key_valid_rate |
| | | */ |
| | | public String getKeyValidRate() { |
| | | return keyValidRate; |
| | | } |
| | | |
| | | /** |
| | | * @param keyValidRate |
| | | */ |
| | | public void setKeyValidRate(String keyValidRate) { |
| | | this.keyValidRate = keyValidRate == null ? null : keyValidRate.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return noon_opening_count |
| | | */ |
| | | public String getNoonOpeningCount() { |
| | | return noonOpeningCount; |
| | | } |
| | | |
| | | /** |
| | | * @param noonOpeningCount |
| | | */ |
| | | public void setNoonOpeningCount(String noonOpeningCount) { |
| | | this.noonOpeningCount = noonOpeningCount == null ? null : noonOpeningCount.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return night_opening_count |
| | | */ |
| | | public String getNightOpeningCount() { |
| | | return nightOpeningCount; |
| | | } |
| | | |
| | | /** |
| | | * @param nightOpeningCount |
| | | */ |
| | | public void setNightOpeningCount(String nightOpeningCount) { |
| | | this.nightOpeningCount = nightOpeningCount == null ? null : nightOpeningCount.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return key_opening_rate |
| | | */ |
| | | public String getKeyOpeningRate() { |
| | | return keyOpeningRate; |
| | | } |
| | | |
| | | /** |
| | | * @param keyOpeningRate |
| | | */ |
| | | public void setKeyOpeningRate(String keyOpeningRate) { |
| | | this.keyOpeningRate = keyOpeningRate == null ? null : keyOpeningRate.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return noon_exceeding_num |
| | | */ |
| | | public String getNoonExceedingNum() { |
| | | return noonExceedingNum; |
| | | } |
| | | |
| | | /** |
| | | * @param noonExceedingNum |
| | | */ |
| | | public void setNoonExceedingNum(String noonExceedingNum) { |
| | | this.noonExceedingNum = noonExceedingNum == null ? null : noonExceedingNum.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return night_exceeding_num |
| | | */ |
| | | public String getNightExceedingNum() { |
| | | return nightExceedingNum; |
| | | } |
| | | |
| | | /** |
| | | * @param nightExceedingNum |
| | | */ |
| | | public void setNightExceedingNum(String nightExceedingNum) { |
| | | this.nightExceedingNum = nightExceedingNum == null ? null : nightExceedingNum.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return key_exceeding_rate |
| | | */ |
| | | public String getKeyExceedingRate() { |
| | | return keyExceedingRate; |
| | | } |
| | | |
| | | /** |
| | | * @param keyExceedingRate |
| | | */ |
| | | public void setKeyExceedingRate(String keyExceedingRate) { |
| | | this.keyExceedingRate = keyExceedingRate == null ? null : keyExceedingRate.trim(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds3.mapper |
| | | |
| | | import cn.flightfeather.supervision.domain.ds3.entity.FumeDailyAnalysis |
| | | import cn.flightfeather.supervision.domain.util.MyMapper |
| | | import org.apache.ibatis.annotations.Mapper |
| | | |
| | | @Mapper |
| | | interface FumeDailyAnalysisMapper : MyMapper<FumeDailyAnalysis?> |
| | |
| | | fun getSceneDetail(sceneId: String):BaseResponse<SceneDetail> |
| | | |
| | | fun updateSceneDetail(typeId: Int, sceneDetailStr: SceneDetailStr): BaseResponse<String> |
| | | |
| | | fun searchScene(areaVo: AreaVo, page: Int?, perPage: Int?): BaseResponse<List<Scense>> |
| | | } |
| | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Userinfo |
| | | |
| | | interface UserinfoService { |
| | | fun findOne(id: String): Userinfo |
| | | fun findOne(id: String): Userinfo? |
| | | |
| | | fun findAll(): MutableList<Userinfo> |
| | | |
| | |
| | | } |
| | | |
| | | //æ ¹æ®åä»»å¡idè·ååé¡¹èæ ¸è¯ä¼° |
| | | val itemevaluation = itemevaluationService.findBySubTaskID(subTaskID) |
| | | if (!itemevaluation.isEmpty()) { |
| | | inspectionVo.itemevaluationList = itemevaluation |
| | | } else { |
| | | inspectionVo.itemevaluationList = mutableListOf() |
| | | } |
| | | // val itemevaluation = itemevaluationService.findBySubTaskID(subTaskID) |
| | | // if (!itemevaluation.isEmpty()) { |
| | | // inspectionVo.itemevaluationList = itemevaluation |
| | | // } else { |
| | | // inspectionVo.itemevaluationList = mutableListOf() |
| | | // } |
| | | |
| | | //è¿å |
| | | return inspectionVo |
| | |
| | | } |
| | | } |
| | | |
| | | var r = 0 |
| | | var isUpdate = true |
| | | when (typeId.toString()) { |
| | | Constant.ScenseType.TYPE1.value -> { |
| | | val subScene = Gson().fromJson(sceneDetailStr.subScene, SceneConstructionSite::class.java) |
| | | if (subScene.getsGuid() != null) { |
| | | val record =sceneConstructionSiteMapper.selectByPrimaryKey(subScene.getsGuid()) |
| | | isUpdate = record != null |
| | | r = if (record == null) { |
| | | sceneConstructionSiteMapper.insert(subScene) |
| | | } else { |
| | | sceneConstructionSiteMapper.updateByPrimaryKeySelective(subScene) |
| | | if (sceneDetailStr.subScene != null) { |
| | | var r = 0 |
| | | var isUpdate = true |
| | | when (typeId.toString()) { |
| | | Constant.ScenseType.TYPE1.value -> { |
| | | val subScene = Gson().fromJson(sceneDetailStr.subScene, SceneConstructionSite::class.java) |
| | | if (subScene.getsGuid() != null) { |
| | | val record = sceneConstructionSiteMapper.selectByPrimaryKey(subScene.getsGuid()) |
| | | isUpdate = record != null |
| | | r = if (record == null) { |
| | | sceneConstructionSiteMapper.insert(subScene) |
| | | } else { |
| | | sceneConstructionSiteMapper.updateByPrimaryKeySelective(subScene) |
| | | } |
| | | } |
| | | } |
| | | Constant.ScenseType.TYPE2.value -> { |
| | | val subScene = Gson().fromJson(sceneDetailStr.subScene, SceneWharf::class.java) |
| | | if (subScene.getsGuid() != null) { |
| | | val record = sceneWharfMapper.selectByPrimaryKey(subScene.getsGuid()) |
| | | isUpdate = record != null |
| | | r = if (record == null) { |
| | | sceneWharfMapper.insert(subScene) |
| | | } else { |
| | | sceneWharfMapper.updateByPrimaryKeySelective(subScene) |
| | | } |
| | | } |
| | | } |
| | | Constant.ScenseType.TYPE3.value -> { |
| | | val subScene = Gson().fromJson(sceneDetailStr.subScene, SceneMixingPlant::class.java) |
| | | if (subScene.getsGuid() != null) { |
| | | val record = sceneMixingPlantMapper.selectByPrimaryKey(subScene.getsGuid()) |
| | | isUpdate = record != null |
| | | r = if (record == null) { |
| | | sceneMixingPlantMapper.insert(subScene) |
| | | } else { |
| | | sceneMixingPlantMapper.updateByPrimaryKeySelective(subScene) |
| | | } |
| | | } |
| | | } |
| | | Constant.ScenseType.TYPE14.value -> { |
| | | val subScene = Gson().fromJson(sceneDetailStr.subScene, SceneStorageYard::class.java) |
| | | if (subScene.getsGuid() != null) { |
| | | val record = sceneStorageYardMapper.selectByPrimaryKey(subScene.getsGuid()) |
| | | isUpdate = record != null |
| | | r = if (record == null) { |
| | | sceneStorageYardMapper.insert(subScene) |
| | | } else { |
| | | sceneStorageYardMapper.updateByPrimaryKeySelective(subScene) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | Constant.ScenseType.TYPE2.value -> { |
| | | val subScene = Gson().fromJson(sceneDetailStr.subScene, SceneWharf::class.java) |
| | | if (subScene.getsGuid() != null) { |
| | | val record =sceneWharfMapper.selectByPrimaryKey(subScene.getsGuid()) |
| | | isUpdate = record != null |
| | | r = if (record == null) { |
| | | sceneWharfMapper.insert(subScene) |
| | | } else { |
| | | sceneWharfMapper.updateByPrimaryKeySelective(subScene) |
| | | } |
| | | } |
| | | } |
| | | Constant.ScenseType.TYPE3.value -> { |
| | | val subScene = Gson().fromJson(sceneDetailStr.subScene, SceneMixingPlant::class.java) |
| | | if (subScene.getsGuid() != null) { |
| | | val record =sceneMixingPlantMapper.selectByPrimaryKey(subScene.getsGuid()) |
| | | isUpdate = record != null |
| | | r = if (record == null) { |
| | | sceneMixingPlantMapper.insert(subScene) |
| | | } else { |
| | | sceneMixingPlantMapper.updateByPrimaryKeySelective(subScene) |
| | | } |
| | | } |
| | | } |
| | | Constant.ScenseType.TYPE14.value -> { |
| | | val subScene = Gson().fromJson(sceneDetailStr.subScene, SceneStorageYard::class.java) |
| | | if (subScene.getsGuid() != null) { |
| | | val record =sceneStorageYardMapper.selectByPrimaryKey(subScene.getsGuid()) |
| | | isUpdate = record != null |
| | | r = if (record == null) { |
| | | sceneStorageYardMapper.insert(subScene) |
| | | } else { |
| | | sceneStorageYardMapper.updateByPrimaryKeySelective(subScene) |
| | | } |
| | | } |
| | | } |
| | | result.append("åºæ¯ç¹æä¿¡æ¯${if (isUpdate) "æ´æ°" else "æ°å¢"}: $r; ") |
| | | } |
| | | result.append("åºæ¯ç¹æä¿¡æ¯${if (isUpdate) "æ´æ°" else "æ°å¢"}: $r; ") |
| | | |
| | | return BaseResponse(true, data = result.toString()) |
| | | } |
| | | |
| | | override fun searchScene(areaVo: AreaVo, page: Int?, perPage: Int?): BaseResponse<List<Scense>> { |
| | | val p = PageHelper.startPage<Scense>(page ?: 1, perPage ?: 30) |
| | | val list = scenseMapper.selectByExample(Example(Scense::class.java).apply { |
| | | createCriteria().apply { |
| | | areaVo.provincecode?.let { andEqualTo("provincecode", it) } |
| | | areaVo.citycode?.let { andEqualTo("citycode", it) } |
| | | areaVo.districtcode?.let { andEqualTo("districtcode", it) } |
| | | areaVo.towncode?.let { andEqualTo("towncode", it) } |
| | | areaVo.scensetypeid?.let { andEqualTo("typeid", it) } |
| | | areaVo.sceneName?.let { andLike("name", "%${it}%") } |
| | | |
| | | } |
| | | areaVo.online?.let { |
| | | and(createCriteria().apply { |
| | | if (it) { |
| | | orNotEqualTo("extension1", "0").orIsNull("extension1") |
| | | } else { |
| | | andEqualTo("extension1", "0") |
| | | } |
| | | }) |
| | | } |
| | | orderBy("typeid").orderBy("index") |
| | | }) |
| | | return BaseResponse(true, head = DataHead(p.pageNum, p.pages, p.total), data = list) |
| | | } |
| | | } |
| | |
| | | ) |
| | | val dataSource = DataSource(config, dbMapper) |
| | | val t = when (mode) { |
| | | // //é®é¢ä¸æ´æ¹è·è¸ªæ±æ»è¡¨ |
| | | // 0 -> ProDetailSummary(dataSource) |
| | | // //åè¡éé®é¢æ´æ¹åææ±æ»è¡¨ |
| | | // 1 -> ProAnalysisSummary(dataSource) |
| | | // |
| | | // //è§èæ§è¯ä¼°è¯¦æ
表 |
| | | // 2 -> ScoreDetailSummary(dataSource) |
| | | // //åè¡éè§èæ§åæè¡¨ |
| | | // 3 -> ScoreAnalysisSummary(dataSource) |
| | | // |
| | | // //é®é¢ä¸æ´æ¹åç±»ç»è®¡è¡¨ |
| | | // 4 -> ProTypeDetailSummary(dataSource) |
| | | // //é®é¢ä¸æ´æ¹åç±»æå |
| | | // 5 -> ProTypeRankSummary(dataSource) |
| | | // //æåº¦ä¸»è¦æå
¸åé®é¢åæè¡¨ |
| | | // 6 -> ProTypeRankMainSummary(dataSource) |
| | | // //工尿½å·¥é¶æ®µé®é¢åç±»åæè¡¨ |
| | | // 7 -> ProTypeStatusSummary(dataSource) |
| | | |
| | | 8 -> ReportOne(dataSource) |
| | | 9 -> ReportTwo(dataSource) |
| | | 10 -> ReportThree(dataSource) |
| | |
| | | package cn.flightfeather.supervision.lightshare.service.impl |
| | | |
| | | import cn.flightfeather.supervision.business.storage.JinAnScore |
| | | import cn.flightfeather.supervision.business.storage.StAutoScore |
| | | import cn.flightfeather.supervision.business.storage.item.* |
| | | import cn.flightfeather.supervision.domain.ds1.entity.* |
| | |
| | | import tk.mybatis.mapper.entity.Example |
| | | import tk.mybatis.mapper.util.StringUtil |
| | | import java.util.* |
| | | import kotlin.math.ceil |
| | | |
| | | @Service |
| | | class SubtaskServiceImpl( |
| | |
| | | private val stScoreItem_1: StScoreItem_1, |
| | | private val whScoreItem_1: WhScoreItem_1, |
| | | private val whScoreItem_2: WhScoreItem_2, |
| | | private val jinAnScore: JinAnScore, |
| | | ) : SubtaskService { |
| | | |
| | | val dateUtil = DateUtil() |
| | |
| | | // autoScore.calculateScore() |
| | | // } |
| | | val s = scenseMapper.selectByPrimaryKey(subtask.scenseid) |
| | | val autoScore = StAutoScore(scoreItem1, scoreItem2, mpScoreItem_1, mpScoreItem_2, stScoreItem_1, whScoreItem_1, whScoreItem_2) |
| | | val autoScore = StAutoScore(scoreItem1, scoreItem2, mpScoreItem_1, mpScoreItem_2, stScoreItem_1, |
| | | whScoreItem_1, whScoreItem_2, jinAnScore) |
| | | autoScore.sceneType = Constant.ScenseType.getByValue(s.typeid?.toString()) |
| | | autoScore.sceneGrade(subtask) |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | val tempResult = BaseSearchResultVo() |
| | | val result = BaseSearchResultVo() |
| | | |
| | | val _sceneType = sceneType ?: 1 |
| | | val _districtCode = "310106" |
| | |
| | | } |
| | | } |
| | | |
| | | val example = Example(Subtask::class.java).apply { |
| | | createCriteria().andEqualTo("districtcode", _districtCode) |
| | | .andGreaterThanOrEqualTo("planstarttime", _startTime) |
| | | .andLessThanOrEqualTo("planendtime", _endTime) |
| | | } |
| | | |
| | | var counts = 0 |
| | | |
| | | |
| | | // val offset = (perPage ?: 30).times((page ?: 1).minus(1)) |
| | | // PageHelper.offsetPage<Subtask>(offset, perPage ?: 30) |
| | | |
| | | subtaskMapper.selectByExample(example).forEach { s -> |
| | | |
| | | val scene = scenseMapper.selectByPrimaryKey(s.scenseid) |
| | | val inspection = inspectionMapper.selectByExample(Example(Inspection::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", s.stguid) |
| | | }).takeIf { it.isNotEmpty() }?.get(0) |
| | | val evaluation = evaluationMapper.selectByExample(Example(Evaluation::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", s.stguid) |
| | | }).takeIf { it.isNotEmpty() }?.get(0) |
| | | |
| | | if (scene.typeid != _sceneType.toByte()) { |
| | | return@forEach |
| | | val subtaskMap = mutableMapOf<String?, SubtaskSearchResultVo>() |
| | | val problemMap = mutableMapOf<String?, ProblemDetail>() |
| | | // val p = PageHelper.startPage<Subtask>(page ?: 1, perPage ?: 30) |
| | | subtaskMapper.getSubtask2(null, null, _districtCode, _sceneType.toByte(), _startTime, _endTime).forEach { |
| | | if (!subtaskMap.containsKey(it.subTaskId)) { |
| | | val vo =SubtaskSearchResultVo() |
| | | BeanUtils.copyProperties(it, vo) |
| | | subtaskMap[it.subTaskId] = vo |
| | | } |
| | | if (!problemMap.containsKey(it.problemId)) { |
| | | val problemDetail = ProblemDetail() |
| | | BeanUtils.copyProperties(it, problemDetail) |
| | | problemMap[it.problemId] = problemDetail |
| | | subtaskMap[it.subTaskId]?.problemList?.add(problemDetail) |
| | | } |
| | | val url = it.mExtension1 + it.mGuid+ ".jpg" |
| | | if (it.isChanged == true) { |
| | | problemMap[it.problemId]?.rectificationPics?.add(url) |
| | | } else { |
| | | counts++ |
| | | } |
| | | |
| | | |
| | | val subtaskSearchResultVo = SubtaskSearchResultVo().apply { |
| | | this.districtName = scene.districtname |
| | | this.townName = scene.townname |
| | | this.sceneName = scene.name |
| | | this.sceneAddress = scene.location |
| | | this.planStartTime = s.planstarttime |
| | | this.planEndTime = s.planendtime |
| | | this.status = s.status |
| | | this.path= inspection?.extension1 |
| | | this.score = evaluation?.resultscorebef?.toIntOrNull() |
| | | this.level = when { |
| | | score == null -> null |
| | | score!! >= 54 -> "åæ ¼" |
| | | else -> "ä¸åæ ¼" |
| | | } |
| | | } |
| | | tempResult.data.add(subtaskSearchResultVo) |
| | | |
| | | problemlistMapper.selectByExample(Example(Problemlist::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", s.stguid) |
| | | }).forEach { p -> |
| | | val problem = ProblemDetail().apply { |
| | | this.problemName = p.problemname |
| | | this.longitude = p.longitude?.toDouble() |
| | | this.latitude = p.latitude?.toDouble() |
| | | this.location = p.location |
| | | this.rectification = p.ischanged |
| | | this.rectificationTime = p.changedtime |
| | | } |
| | | subtaskSearchResultVo.problemList.add(problem) |
| | | |
| | | mediafileMapper.selectByExample(Example(Mediafile::class.java).apply { |
| | | createCriteria().andEqualTo("businessguid", p.guid) |
| | | }).forEach { m -> |
| | | val url = m.extension1 + m.guid + ".jpg" |
| | | if (m.ischanged == true) { |
| | | problem.rectificationPics.add(url) |
| | | } else { |
| | | problem.problemPics.add(url) |
| | | } |
| | | } |
| | | problemMap[it.problemId]?.problemPics?.add(url) |
| | | } |
| | | } |
| | | |
| | | val totalPage = Math.ceil(counts.toDouble() / (perPage ?: 30).toDouble()).toInt() |
| | | |
| | | val result = BaseSearchResultVo() |
| | | |
| | | val totalPage = ceil(subtaskMap.size.toDouble() / (perPage ?: 30).toDouble()).toInt() |
| | | result.head = DataHead().apply { |
| | | this.page = page ?: 1 |
| | | this.totalPage = totalPage |
| | | this.totalCount = subtaskMap.size.toLong() |
| | | } |
| | | |
| | | val firstIndex = 0 + ((page ?: 1) - 1).times(perPage ?: 30) |
| | | val lastIndex = firstIndex + (perPage ?: 30) - 1 |
| | | |
| | | for (i in firstIndex until tempResult.data.size) { |
| | | if (i > lastIndex) { |
| | | break |
| | | var count = 0 |
| | | val startIndex = ((page ?: 1) - 1) * (perPage ?: 30) |
| | | val endIndex = startIndex + (perPage ?: 30) - 1 |
| | | with(subtaskMap) exit@{ |
| | | subtaskMap.forEach { |
| | | if (count in startIndex..endIndex) { |
| | | result.data.add(it.value) |
| | | } |
| | | count++ |
| | | if (count > endIndex) return@exit |
| | | } |
| | | result.data.add(tempResult.data[i]) |
| | | } |
| | | |
| | | |
| | | // val example = Example(Subtask::class.java).apply { |
| | | // createCriteria().andEqualTo("districtcode", _districtCode) |
| | | // .andGreaterThanOrEqualTo("planstarttime", _startTime) |
| | | // .andLessThanOrEqualTo("planendtime", _endTime) |
| | | // } |
| | | // |
| | | // var counts = 0 |
| | | // |
| | | // val p = PageHelper.startPage<Subtask>(page ?: 1, perPage ?: 30) |
| | | // |
| | | // subtaskMapper.selectByExample(example).forEach { s -> |
| | | // |
| | | // val scene = scenseMapper.selectByPrimaryKey(s.scenseid) |
| | | // val inspection = inspectionMapper.selectByExample(Example(Inspection::class.java).apply { |
| | | // createCriteria().andEqualTo("stguid", s.stguid) |
| | | // }).takeIf { it.isNotEmpty() }?.get(0) |
| | | // val evaluation = evaluationMapper.selectByExample(Example(Evaluation::class.java).apply { |
| | | // createCriteria().andEqualTo("stguid", s.stguid) |
| | | // }).takeIf { it.isNotEmpty() }?.get(0) |
| | | // |
| | | // if (scene.typeid != _sceneType.toByte()) { |
| | | // return@forEach |
| | | // } else { |
| | | // counts++ |
| | | // } |
| | | // |
| | | // |
| | | // val subtaskSearchResultVo = SubtaskSearchResultVo().apply { |
| | | // this.subTaskId = s.stguid |
| | | // this.districtName = scene.districtname |
| | | // this.townName = scene.townname |
| | | // this.sceneName = scene.name |
| | | // this.sceneAddress = scene.location |
| | | // this.planStartTime = s.planstarttime |
| | | // this.planEndTime = s.planendtime |
| | | // this.status = s.status |
| | | // this.path= inspection?.extension1 |
| | | // this.score = evaluation?.resultscorebef?.toIntOrNull() |
| | | // this.level = when { |
| | | // score == null -> null |
| | | // score!! >= 54 -> "åæ ¼" |
| | | // else -> "ä¸åæ ¼" |
| | | // } |
| | | // } |
| | | // tempResult.data.add(subtaskSearchResultVo) |
| | | // |
| | | // problemlistMapper.selectByExample(Example(Problemlist::class.java).apply { |
| | | // createCriteria().andEqualTo("stguid", s.stguid) |
| | | // }).forEach { p -> |
| | | // val problem = ProblemDetail().apply { |
| | | // this.problemId = p.guid |
| | | // this.problemName = p.problemname |
| | | // this.longitude = p.longitude?.toDouble() |
| | | // this.latitude = p.latitude?.toDouble() |
| | | // this.location = p.location |
| | | // this.rectification = p.ischanged |
| | | // this.rectificationTime = p.changedtime |
| | | // } |
| | | // subtaskSearchResultVo.problemList.add(problem) |
| | | // |
| | | // mediafileMapper.selectByExample(Example(Mediafile::class.java).apply { |
| | | // createCriteria().andEqualTo("businessguid", p.guid) |
| | | // }).forEach { m -> |
| | | // val url = m.extension1 + m.guid + ".jpg" |
| | | // if (m.ischanged == true) { |
| | | // problem.rectificationPics.add(url) |
| | | // } else { |
| | | // problem.problemPics.add(url) |
| | | // } |
| | | // } |
| | | // } |
| | | // } |
| | | // |
| | | // tempResult.head = DataHead().apply { |
| | | // this.page = p.pageNum |
| | | // this.totalPage = p.pages |
| | | // } |
| | | |
| | | return result |
| | | } |
| | |
| | | result.head = DataHead().apply { |
| | | this.page = p.pageNum |
| | | this.totalPage = p.pages |
| | | this.totalCount = p.total |
| | | } |
| | | |
| | | subtasklist.forEach { |
| | |
| | | } |
| | | val subtaskMap = mutableMapOf<String?, SubtaskSearchResultVo>() |
| | | val problemMap = mutableMapOf<String?, ProblemDetail>() |
| | | // val p = PageHelper.startPage<Subtask>(page ?: 1, perPage ?: 30) |
| | | subtaskMapper.getSubtask2(time, time2, _districtCode, _sceneType?.toByte(), null, null).forEach { |
| | | if (!subtaskMap.containsKey(it.subTaskId)) { |
| | | val vo =SubtaskSearchResultVo() |
| | |
| | | result.head = DataHead().apply { |
| | | this.page = 1 |
| | | this.totalPage = 1 |
| | | this.totalCount = subtaskMap.size.toLong() |
| | | } |
| | | subtaskMap.forEach { |
| | | result.data.add(it.value) |
| | |
| | | result.head = DataHead().apply { |
| | | this.page = p.pageNum |
| | | this.totalPage = p.pages |
| | | this.totalCount = p.total |
| | | } |
| | | |
| | | subtasklist.forEach { |
| | |
| | | } |
| | | val subtaskMap = mutableMapOf<String?, SubtaskSearchResultVo>() |
| | | val problemMap = mutableMapOf<String?, ProblemDetail>() |
| | | // val p = PageHelper.startPage<Subtask>(page ?: 1, perPage ?: 30) |
| | | subtaskMapper.getSubtask2(time, time2, _districtCode, _sceneType?.toByte(), null, null).forEach { |
| | | if (!subtaskMap.containsKey(it.subTaskId)) { |
| | | val vo =SubtaskSearchResultVo() |
| | |
| | | result.head = DataHead().apply { |
| | | this.page = 1 |
| | | this.totalPage = 1 |
| | | this.totalCount = subtaskMap.size.toLong() |
| | | } |
| | | subtaskMap.forEach { |
| | | result.data.add(it.value) |
| | |
| | | // example.or( |
| | | example.createCriteria().andIsNull("tsguid") |
| | | .andEqualTo("districtcode", districtCode) |
| | | .andLessThan("starttime", date) |
| | | .andLessThanOrEqualTo("starttime", date) |
| | | .andGreaterThanOrEqualTo("endtime", date) |
| | | // ) |
| | | example.orderBy("starttime").desc() |
| | |
| | | val criteria = example.createCriteria() |
| | | //è·åç¨æ·ä¿¡æ¯ |
| | | val userInfo = userinfoMapper.findOne(guid) |
| | | val districtCode = userInfo.dGuid |
| | | val districtCode = userInfo?.dGuid |
| | | |
| | | //æ·»å æ¥æè¿æ»¤ |
| | | |
| | |
| | | return result |
| | | } |
| | | |
| | | override fun findOne(id: String): Userinfo = userinfoMapper.selectByPrimaryKey(id) |
| | | override fun findOne(id: String): Userinfo? = userinfoMapper.selectByPrimaryKey(id) |
| | | |
| | | override fun findAll(): MutableList<Userinfo> = userinfoMapper.selectAll() |
| | | |
| | |
| | | |
| | | var endtime: String? = null |
| | | |
| | | var sceneName: String? = null |
| | | |
| | | var scensetypeid: String? = null |
| | | |
| | | var notstandardnum: Int = 0 |
| | | |
| | | var allsensenum: Int = 0 |
| | | |
| | | //æ¯å¦ä¸çº¿ |
| | | var online: Boolean? = null |
| | | } |
| | |
| | | |
| | | data class DataHead( |
| | | var page: Int = 1, |
| | | var totalPage: Int = 1 |
| | | var totalPage: Int = 1, |
| | | var totalCount:Long = 0 |
| | | ) |
| | | |
| | | open class DataContent{ |
| | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Scense |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Task |
| | | import cn.flightfeather.supervision.lightshare.service.ScenseService |
| | | import cn.flightfeather.supervision.lightshare.vo.AreaVo |
| | | import cn.flightfeather.supervision.lightshare.vo.BaseResponse |
| | | import cn.flightfeather.supervision.lightshare.vo.SceneDetailStr |
| | | import io.swagger.annotations.Api |
| | |
| | | @RequestBody sceneDetailStr: SceneDetailStr |
| | | ) = scenseService.updateSceneDetail(typeId, sceneDetailStr) |
| | | |
| | | @PostMapping("/find") |
| | | fun searchScene( |
| | | @RequestBody areaVo: AreaVo, |
| | | @RequestParam("page", required = false) page: Int?, |
| | | @RequestParam("per_page", required = false) perPage: Int? |
| | | ) = scenseService.searchScene(areaVo, page, perPage) |
| | | |
| | | } |
| | |
| | | # password: cn.FLIGHTFEATHER |
| | | |
| | | #-è¿ç¨æµè¯æå¡å¨- |
| | | # url: jdbc:mysql://47.100.191.150:3306/supervision?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false |
| | | # username: remoteU1 |
| | | # password: eSoF8DnzfGTlhAjE |
| | | url: jdbc:mysql://47.100.191.150:3306/supervision?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false |
| | | username: remoteU1 |
| | | password: eSoF8DnzfGTlhAjE |
| | | |
| | | #-å叿å¡å¨- |
| | | url: jdbc:mysql://localhost:3306/supervision?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false |
| | | username: supervision |
| | | password: supervision_feiyu2021 |
| | | # url: jdbc:mysql://localhost:3306/supervision?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false |
| | | # username: supervision |
| | | # password: supervision_feiyu2021 |
| | | |
| | | #-ç¯å¢ç£å¯æµè¯æå¡å¨- |
| | | # url: jdbc:mysql://192.168.0.200:3306/supervision_ii?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false |
| | | # username: root |
| | | # password: cn.FLIGHTFEATHER |
| | | # url: jdbc:mysql://192.168.0.200:3306/supervision_ii?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false |
| | | # username: root |
| | | # password: cn.FLIGHTFEATHER |
| | | |
| | | initialSize: 5 |
| | | minIdle: 5 |
| | |
| | | ds2: |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | #-Test- |
| | | # url: jdbc:mysql://192.168.0.200:3306/ledger?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false |
| | | # username: root |
| | | # password: cn.FLIGHTFEATHER |
| | | |
| | | # url: jdbc:mysql://localhost:3306/ledger?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false |
| | | # username: root |
| | | # password: 123456 |
| | | #-TestEnd- |
| | | |
| | | #-å叿å¡å¨- |
| | | # url: jdbc:mysql://localhost:3306/ledger?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false |
| | |
| | | connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 |
| | | useGlobalDataSourceStat: true |
| | | |
| | | ds3: |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | |
| | | # è¿ç¨æå¡å¨ |
| | | url: jdbc:mysql://114.215.109.124:3306/fume?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false |
| | | username: fumeRemote |
| | | password: feiyu2023 |
| | | |
| | | #thymeleaf设置ä¸ç¼å |
| | | thymeleaf: |
| | | cache: false |
| | |
| | | "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> |
| | | <generatorConfiguration> |
| | | <!-- æ°æ®åºé©±å¨:éæ©ä½ çæ¬å°ç¡¬çä¸é¢çæ°æ®åºé©±å¨å
--> |
| | | <classPathEntry location="C:\Users\feiyu\.m2\repository\mysql\mysql-connector-java\8.0.21\mysql-connector-java-8.0.21.jar"/> |
| | | <!-- <classPathEntry location="C:\Users\feiyu\.m2\repository\mysql\mysql-connector-java\8.0.21\mysql-connector-java-8.0.21.jar"/>--> |
| | | <classPathEntry location="C:\Users\feiyu02\.m2\repository\mysql\mysql-connector-java\8.0.21\mysql-connector-java-8.0.21.jar"/> |
| | | <context id="DB2Tables" targetRuntime="MyBatis3" defaultModelType="flat"> |
| | | <!-- TKmybatisé
ç½® --> |
| | | <property name="javaFileEncoding" value="UTF-8"/> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <!--<?xml version="1.0" encoding="UTF-8"?>--> |
| | | <!DOCTYPE generatorConfiguration |
| | | PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> |
| | | <generatorConfiguration> |
| | | <!-- æ°æ®åºé©±å¨:éæ©ä½ çæ¬å°ç¡¬çä¸é¢çæ°æ®åºé©±å¨å
--> |
| | | <!-- <classPathEntry location="C:\Users\feiyu\.m2\repository\mysql\mysql-connector-java\8.0.21\mysql-connector-java-8.0.21.jar"/>--> |
| | | <classPathEntry location="C:\Users\feiyu02\.m2\repository\mysql\mysql-connector-java\8.0.21\mysql-connector-java-8.0.21.jar"/> |
| | | <context id="DB2Tables" targetRuntime="MyBatis3" defaultModelType="flat"> |
| | | <!-- TKmybatisé
ç½® --> |
| | | <property name="javaFileEncoding" value="UTF-8"/> |
| | | <property name="beginningDelimiter" value="`"/> |
| | | <property name="endingDelimiter" value="`"/> |
| | | <plugin type="${mapper.plugin}"> |
| | | <property name="mappers" value="${mapper.Mapper}"/> |
| | | </plugin> |
| | | <commentGenerator> |
| | | <property name="suppressDate" value="true"/> |
| | | <!-- æ¯å¦å»é¤èªå¨çæç注é trueï¼æ¯ ï¼ false:å¦ --> |
| | | <property name="suppressAllComments" value="true"/> |
| | | </commentGenerator> |
| | | <!--æ°æ®åºé¾æ¥URLï¼ç¨æ·åãå¯ç --> |
| | | <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://114.215.109.124:3306/fume?serverTimezone=Asia/Shanghai" |
| | | userId="fumeRemote" |
| | | password="feiyu2023"> |
| | | </jdbcConnection> |
| | | <javaTypeResolver> |
| | | <property name="forceBigDecimals" value="false"/> |
| | | </javaTypeResolver> |
| | | <!-- çææ¨¡åçå
ååä½ç½®--> |
| | | <javaModelGenerator targetPackage="cn.flightfeather.supervision.domain.ds3.entity" |
| | | targetProject="src/main/kotlin"> |
| | | <property name="enableSubPackages" value="true"/> |
| | | <property name="trimStrings" value="true"/> |
| | | </javaModelGenerator> |
| | | <!-- çææ å°æä»¶çå
ååä½ç½®--> |
| | | <sqlMapGenerator targetPackage="ds3" targetProject="src/main/resources/mapper"> |
| | | <property name="enableSubPackages" value="true"/> |
| | | </sqlMapGenerator> |
| | | <!-- çæDAOçå
ååä½ç½®--> |
| | | <javaClientGenerator type="XMLMAPPER" targetPackage="cn.flightfeather.supervision.domain.ds3.mapper" |
| | | targetProject="src/main/kotlin"> |
| | | <property name="enableSubPackages" value="true"/> |
| | | </javaClientGenerator> |
| | | <!-- è¦çæç表 tableNameæ¯æ°æ®åºä¸ç表åæè§å¾å domainObjectNameæ¯å®ä½ç±»å--> |
| | | <table tableName="fm_web_analysis_data" domainObjectName="FumeDailyAnalysis" enableCountByExample="false" |
| | | enableUpdateByExample="false" enableDeleteByExample="false" |
| | | enableSelectByExample="false" selectByExampleQueryId="false"/> |
| | | </context> |
| | | </generatorConfiguration> |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="cn.flightfeather.supervision.domain.ds1.mapper.DustDataResultMapper" > |
| | | <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds1.entity.DustDataResult" > |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="cn.flightfeather.supervision.domain.ds1.mapper.DustDataResultMapper"> |
| | | <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds1.entity.DustDataResult"> |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | <id column="DR_Id" property="drId" jdbcType="INTEGER" /> |
| | | <result column="DR_Scene_Id" property="drSceneId" jdbcType="VARCHAR" /> |
| | | <result column="DR_Scene_Name" property="drSceneName" jdbcType="VARCHAR" /> |
| | | <result column="DR_Time" property="drTime" jdbcType="DATE" /> |
| | | <result column="DR_Exceed_Times" property="drExceedTimes" jdbcType="INTEGER" /> |
| | | <result column="DR_Avg" property="drAvg" jdbcType="DOUBLE" /> |
| | | <result column="DR_Max" property="drMax" jdbcType="DOUBLE" /> |
| | | <result column="DR_Min" property="drMin" jdbcType="DOUBLE" /> |
| | | <result column="DR_Over_Avg_Per" property="drOverAvgPer" jdbcType="DOUBLE" /> |
| | | <result column="DR_Data_Num" property="drDataNum" jdbcType="INTEGER" /> |
| | | <result column="DR_Effective_Rate" property="drEffectiveRate" jdbcType="DOUBLE" /> |
| | | <id column="DR_Id" jdbcType="INTEGER" property="drId" /> |
| | | <result column="DR_Scene_Id" jdbcType="VARCHAR" property="drSceneId" /> |
| | | <result column="DR_Scene_Name" jdbcType="VARCHAR" property="drSceneName" /> |
| | | <result column="DR_Time" jdbcType="DATE" property="drTime" /> |
| | | <result column="DR_Exceed_Times" jdbcType="INTEGER" property="drExceedTimes" /> |
| | | <result column="DR_Avg" jdbcType="DOUBLE" property="drAvg" /> |
| | | <result column="DR_Max" jdbcType="DOUBLE" property="drMax" /> |
| | | <result column="DR_Min" jdbcType="DOUBLE" property="drMin" /> |
| | | <result column="DR_Over_Avg_Per" jdbcType="DOUBLE" property="drOverAvgPer" /> |
| | | <result column="DR_Data_Num" jdbcType="INTEGER" property="drDataNum" /> |
| | | <result column="DR_Effective_Rate" jdbcType="DOUBLE" property="drEffectiveRate" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <sql id="Base_Column_List"> |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | |
| | | LEFT JOIN sm_t_problemtype AS f ON d.PT_GUID = f.PT_GUID |
| | | RIGHT JOIN im_t_mediafile AS e ON d.PL_GUID = e.MF_BusinessGUID |
| | | WHERE |
| | | a.ST_DistrictCode = #{param3} |
| | | <if test="param1 != null"> |
| | | ((d.PL_ChangedTime is not null and d.PL_ChangedTime > #{param1}) OR d.PL_Time > #{param2}) |
| | | AND ((d.PL_ChangedTime is not null and d.PL_ChangedTime > #{param1}) OR d.PL_Time > #{param2}) |
| | | </if> |
| | | AND a.ST_DistrictCode = #{param3} |
| | | <if test="param4 != null"> |
| | | AND b.S_TypeID = #{param4} |
| | | </if> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="cn.flightfeather.supervision.domain.ds2.mapper.DustSiteInfoMapper" > |
| | | <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds2.entity.DustSiteInfo" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | <id column="id" property="id" jdbcType="VARCHAR" /> |
| | | <result column="address" property="address" jdbcType="VARCHAR" /> |
| | | <result column="begin_date" property="beginDate" jdbcType="TIMESTAMP" /> |
| | | <result column="build_area" property="buildArea" jdbcType="VARCHAR" /> |
| | | <result column="data_time" property="dataTime" jdbcType="TIMESTAMP" /> |
| | | <result column="clean_measure" property="cleanMeasure" jdbcType="VARCHAR" /> |
| | | <result column="code" property="code" jdbcType="VARCHAR" /> |
| | | <result column="construction_unit" property="constructionUnit" jdbcType="VARCHAR" /> |
| | | <result column="control_level" property="controlLevel" jdbcType="VARCHAR" /> |
| | | <result column="developers" property="developers" jdbcType="VARCHAR" /> |
| | | <result column="do_time" property="doTime" jdbcType="TIMESTAMP" /> |
| | | <result column="duty_company" property="dutyCompany" jdbcType="VARCHAR" /> |
| | | <result column="duty_company_id" property="dutyCompanyId" jdbcType="VARCHAR" /> |
| | | <result column="end_date" property="endDate" jdbcType="TIMESTAMP" /> |
| | | <result column="engineering_stage" property="engineeringStage" jdbcType="VARCHAR" /> |
| | | <result column="engineering_stage_code" property="engineeringStageCode" jdbcType="VARCHAR" /> |
| | | <result column="equipment_code" property="equipmentCode" jdbcType="VARCHAR" /> |
| | | <result column="floor_area" property="floorArea" jdbcType="VARCHAR" /> |
| | | <result column="group_id" property="groupId" jdbcType="VARCHAR" /> |
| | | <result column="group_name" property="groupName" jdbcType="VARCHAR" /> |
| | | <result column="has_monitor" property="hasMonitor" jdbcType="VARCHAR" /> |
| | | <result column="is_online" property="isOnline" jdbcType="VARCHAR" /> |
| | | <result column="is_trouble" property="isTrouble" jdbcType="VARCHAR" /> |
| | | <result column="jhpt_delete" property="jhptDelete" jdbcType="VARCHAR" /> |
| | | <result column="jhpt_update_time" property="jhptUpdateTime" jdbcType="VARCHAR" /> |
| | | <result column="kindex" property="kindex" jdbcType="VARCHAR" /> |
| | | <result column="latitude" property="latitude" jdbcType="VARCHAR" /> |
| | | <result column="linkman" property="linkman" jdbcType="VARCHAR" /> |
| | | <result column="longitude" property="longitude" jdbcType="VARCHAR" /> |
| | | <result column="mn_code" property="mnCode" jdbcType="VARCHAR" /> |
| | | <result column="name" property="name" jdbcType="VARCHAR" /> |
| | | <result column="noise_region" property="noiseRegion" jdbcType="VARCHAR" /> |
| | | <result column="phone" property="phone" jdbcType="VARCHAR" /> |
| | | <result column="province" property="province" jdbcType="VARCHAR" /> |
| | | <result column="responsible" property="responsible" jdbcType="VARCHAR" /> |
| | | <result column="ring_id" property="ringId" jdbcType="VARCHAR" /> |
| | | <result column="stage_begin_date" property="stageBeginDate" jdbcType="TIMESTAMP" /> |
| | | <result column="stop_time" property="stopTime" jdbcType="TIMESTAMP" /> |
| | | <result column="tsp" property="tsp" jdbcType="DOUBLE" /> |
| | | <result column="type_id" property="typeId" jdbcType="VARCHAR" /> |
| | | <result column="typename" property="typename" jdbcType="VARCHAR" /> |
| | | <result column="union_type_id" property="unionTypeId" jdbcType="VARCHAR" /> |
| | | <result column="wall_height" property="wallHeight" jdbcType="VARCHAR" /> |
| | | <result column="ywsj_date" property="ywsjDate" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | id, address, begin_date, build_area, data_time, clean_measure, code, construction_unit, |
| | | control_level, developers, do_time, duty_company, duty_company_id, end_date, engineering_stage, |
| | | engineering_stage_code, equipment_code, floor_area, group_id, group_name, has_monitor, |
| | | is_online, is_trouble, jhpt_delete, jhpt_update_time, kindex, latitude, linkman, |
| | | longitude, mn_code, name, noise_region, phone, province, responsible, ring_id, stage_begin_date, |
| | | stop_time, tsp, type_id, typename, union_type_id, wall_height, ywsj_date |
| | | </sql> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="cn.flightfeather.supervision.domain.ds2.mapper.DustSiteMapMapper"> |
| | | <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds2.entity.DustSiteMap"> |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | <id column="Id" jdbcType="INTEGER" property="id" /> |
| | | <result column="TZ_User_Id" jdbcType="VARCHAR" property="tzUserId" /> |
| | | <result column="TZ_User_Name" jdbcType="VARCHAR" property="tzUserName" /> |
| | | <result column="JA_MN_Code" jdbcType="VARCHAR" property="jaMnCode" /> |
| | | <result column="JA_Scene_Name" jdbcType="VARCHAR" property="jaSceneName" /> |
| | | <result column="SV_User_Id" jdbcType="VARCHAR" property="svUserId" /> |
| | | <result column="SV_User_name" jdbcType="VARCHAR" property="svUserName" /> |
| | | <result column="Create_Time" jdbcType="TIMESTAMP" property="createTime" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List"> |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | Id, TZ_User_Id, TZ_User_Name, JA_MN_Code, JA_Scene_Name, SV_User_Id, SV_User_name, |
| | | Create_Time |
| | | </sql> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="cn.flightfeather.supervision.domain.ds2.mapper.HourDustDataMapper" > |
| | | <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds2.entity.HourDustData" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | <id column="id" property="id" jdbcType="VARCHAR" /> |
| | | <result column="dustvalue" property="dustvalue" jdbcType="DOUBLE" /> |
| | | <result column="flag" property="flag" jdbcType="VARCHAR" /> |
| | | <result column="grade" property="grade" jdbcType="VARCHAR" /> |
| | | <result column="groupname" property="groupname" jdbcType="VARCHAR" /> |
| | | <result column="inserttime" property="inserttime" jdbcType="TIMESTAMP" /> |
| | | <result column="lst" property="lst" jdbcType="TIMESTAMP" /> |
| | | <result column="lst_end" property="lstEnd" jdbcType="TIMESTAMP" /> |
| | | <result column="mncode" property="mncode" jdbcType="VARCHAR" /> |
| | | <result column="name" property="name" jdbcType="VARCHAR" /> |
| | | <result column="noisevalue" property="noisevalue" jdbcType="VARCHAR" /> |
| | | <result column="projectid" property="projectid" jdbcType="VARCHAR" /> |
| | | <result column="projecttypeid" property="projecttypeid" jdbcType="VARCHAR" /> |
| | | <result column="quality" property="quality" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | id, dustvalue, flag, grade, groupname, inserttime, lst, lst_end, mncode, name, noisevalue, |
| | | projectid, projecttypeid, quality |
| | | </sql> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="cn.flightfeather.supervision.domain.ds2.mapper.LampDeviceDataMapper" > |
| | | <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds2.entity.LampDeviceData" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | <id column="id" property="id" jdbcType="INTEGER" /> |
| | | <result column="channel_num" property="channelNum" jdbcType="VARCHAR" /> |
| | | <result column="clean_liness" property="cleanLiness" jdbcType="VARCHAR" /> |
| | | <result column="device_code" property="deviceCode" jdbcType="VARCHAR" /> |
| | | <result column="device_name" property="deviceName" jdbcType="VARCHAR" /> |
| | | <result column="device_state" property="deviceState" jdbcType="VARCHAR" /> |
| | | <result column="enter_id" property="enterId" jdbcType="VARCHAR" /> |
| | | <result column="fan_state" property="fanState" jdbcType="VARCHAR" /> |
| | | <result column="lampblack_value" property="lampblackValue" jdbcType="DOUBLE" /> |
| | | <result column="monitor_time" property="monitorTime" jdbcType="TIMESTAMP" /> |
| | | <result column="production_date" property="productionDate" jdbcType="TIMESTAMP" /> |
| | | <result column="purifier_state" property="purifierState" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | id, channel_num, clean_liness, device_code, device_name, device_state, enter_id, |
| | | fan_state, lampblack_value, monitor_time, production_date, purifier_state |
| | | </sql> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="cn.flightfeather.supervision.domain.ds2.mapper.LampEnterBaseInfoMapper" > |
| | | <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds2.entity.LampEnterBaseInfo" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | <id column="enter_id" property="enterId" jdbcType="VARCHAR" /> |
| | | <result column="enter_name" property="enterName" jdbcType="VARCHAR" /> |
| | | <result column="address" property="address" jdbcType="VARCHAR" /> |
| | | <result column="business_date" property="businessDate" jdbcType="VARCHAR" /> |
| | | <result column="datasource" property="datasource" jdbcType="VARCHAR" /> |
| | | <result column="jjq_code" property="jjqCode" jdbcType="VARCHAR" /> |
| | | <result column="jjq_name" property="jjqName" jdbcType="VARCHAR" /> |
| | | <result column="latitude" property="latitude" jdbcType="DOUBLE" /> |
| | | <result column="link_man" property="linkMan" jdbcType="VARCHAR" /> |
| | | <result column="link_phone" property="linkPhone" jdbcType="VARCHAR" /> |
| | | <result column="longitude" property="longitude" jdbcType="DOUBLE" /> |
| | | <result column="region_name" property="regionName" jdbcType="VARCHAR" /> |
| | | <result column="regist_date" property="registDate" jdbcType="TIMESTAMP" /> |
| | | <result column="state" property="state" jdbcType="VARCHAR" /> |
| | | <result column="street" property="street" jdbcType="VARCHAR" /> |
| | | <result column="outfall_type" property="outfallType" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | enter_id, enter_name, address, business_date, datasource, jjq_code, jjq_name, latitude, |
| | | link_man, link_phone, longitude, region_name, regist_date, state, street |
| | | </sql> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="cn.flightfeather.supervision.domain.ds3.mapper.FumeDailyAnalysisMapper" > |
| | | <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds3.entity.FumeDailyAnalysis" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | <result column="fume_dev_id" property="fumeDevId" jdbcType="VARCHAR" /> |
| | | <result column="fume_date" property="fumeDate" jdbcType="DATE" /> |
| | | <result column="fume_day_min" property="fumeDayMin" jdbcType="DOUBLE" /> |
| | | <result column="fume_day_max" property="fumeDayMax" jdbcType="DOUBLE" /> |
| | | <result column="fume_day_average" property="fumeDayAverage" jdbcType="DOUBLE" /> |
| | | <result column="purifier_open_rate" property="purifierOpenRate" jdbcType="VARCHAR" /> |
| | | <result column="fume_minute_exceeding_num" property="fumeMinuteExceedingNum" jdbcType="DECIMAL" /> |
| | | <result column="fume_over_standard_rate" property="fumeOverStandardRate" jdbcType="VARCHAR" /> |
| | | <result column="fume_data_efficiency" property="fumeDataEfficiency" jdbcType="VARCHAR" /> |
| | | <result column="daily_online_rate" property="dailyOnlineRate" jdbcType="VARCHAR" /> |
| | | <result column="noon_online_rate" property="noonOnlineRate" jdbcType="VARCHAR" /> |
| | | <result column="night_online_rate" property="nightOnlineRate" jdbcType="VARCHAR" /> |
| | | <result column="key_online_rate" property="keyOnlineRate" jdbcType="VARCHAR" /> |
| | | <result column="noon__valid_rate" property="noonValidRate" jdbcType="VARCHAR" /> |
| | | <result column="night__valid_rate" property="nightValidRate" jdbcType="VARCHAR" /> |
| | | <result column="key_valid_rate" property="keyValidRate" jdbcType="VARCHAR" /> |
| | | <result column="noon_opening_count" property="noonOpeningCount" jdbcType="VARCHAR" /> |
| | | <result column="night_opening_count" property="nightOpeningCount" jdbcType="VARCHAR" /> |
| | | <result column="key_opening_rate" property="keyOpeningRate" jdbcType="VARCHAR" /> |
| | | <result column="noon_exceeding_num" property="noonExceedingNum" jdbcType="VARCHAR" /> |
| | | <result column="night_exceeding_num" property="nightExceedingNum" jdbcType="VARCHAR" /> |
| | | <result column="key_exceeding_rate" property="keyExceedingRate" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.autooutput |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.AopEvaluation |
| | | import cn.flightfeather.supervision.business.autooutput.score.construction.JADataAnalysis |
| | | import cn.flightfeather.supervision.lightshare.service.SearchService |
| | | import cn.flightfeather.supervision.lightshare.vo.ExcelConfigVo |
| | | import org.junit.Test |
| | | import org.junit.jupiter.api.extension.ExtendWith |
| | | import org.junit.runner.RunWith |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.boot.test.context.SpringBootTest |
| | | import org.springframework.test.context.junit.jupiter.SpringExtension |
| | | import org.springframework.test.context.junit4.SpringRunner |
| | | |
| | | @RunWith(SpringRunner::class) |
| | | @ExtendWith(SpringExtension::class) |
| | | @SpringBootTest |
| | | class AopEvaluationTest { |
| | | |
| | | @Autowired |
| | | lateinit var aopEvaluation: AopEvaluation |
| | | |
| | | @Autowired |
| | | lateinit var searchService: SearchService |
| | | |
| | | @Autowired |
| | | lateinit var jaDataAnalysis: JADataAnalysis |
| | | |
| | | /** |
| | | * ç»è®¡çæµæ°æ®ç»æ |
| | | */ |
| | | @Test |
| | | fun test1() { |
| | | jaDataAnalysis.setResource("VHXHS1dHsykTNUf2", 1, 2023, 8) |
| | | jaDataAnalysis.execute() |
| | | } |
| | | |
| | | /** |
| | | * èªå¨è¯ä¼° |
| | | */ |
| | | @Test |
| | | fun test() { |
| | | aopEvaluation.setResource("VHXHS1dHsykTNUf2", 1) |
| | | aopEvaluation.execute() |
| | | } |
| | | |
| | | /** |
| | | * 导åºèªå¨è¯ä¼°ç»æ |
| | | */ |
| | | @Test |
| | | fun test2() { |
| | | val mode = 9 |
| | | searchService.writeToFile(ExcelConfigVo( |
| | | "VHXHS1dHsykTNUf2", |
| | | districtCode = "310106", |
| | | sceneType = 1), mode) |
| | | } |
| | | } |
| | |
| | | // val t = s.substring(0, s.length - 2) |
| | | // println(t) |
| | | |
| | | // autoScore.sceneType = Constant.ScenseType.TYPE1 |
| | | // autoScore.topTaskGrade("8QN1VzftuhBJmrF8") |
| | | // val subtask = subtaskMapper.selectByPrimaryKey("OPmza2ddEAKiQHqz") |
| | | autoScore.sceneType = Constant.ScenseType.TYPE1 |
| | | autoScore.topTaskGrade("BdSm7KhSYWar3BSp") |
| | | // val subtask = subtaskMapper.selectByPrimaryKey("YoKxHlojS1wIlFoQ") |
| | | // autoScore.sceneGrade(subtask) |
| | | // autoScore.sceneGradeToFile(subtask) |
| | | |
| | | autoScore3.go(2022, 9, 1) |
| | | // autoScore3.go(2022, 9, 1) |
| | | |
| | | // val t = problemlistMapper.getStatisticalResult("310116", "2021-09-01 00:00:00", "2021-09-30 00:00:00", "1") |
| | | // println() |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.business.location |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.ScenseMapper |
| | | import org.junit.Test |
| | | import org.junit.jupiter.api.Assertions.* |
| | | import org.junit.jupiter.api.extension.ExtendWith |
| | | import org.junit.runner.RunWith |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.boot.test.context.SpringBootTest |
| | | import org.springframework.test.context.junit.jupiter.SpringExtension |
| | | import org.springframework.test.context.junit4.SpringRunner |
| | | |
| | | @RunWith(SpringRunner::class) |
| | | @ExtendWith(SpringExtension::class) |
| | | @SpringBootTest |
| | | class LocationRoadNearbyTest { |
| | | |
| | | @Autowired |
| | | lateinit var scenseMapper: ScenseMapper |
| | | |
| | | @Test |
| | | fun foo1() { |
| | | val locationRoadNearby = LocationRoadNearby(scenseMapper) |
| | | // val b = LocationRoadNearby.BasePlace("", Pair(121.378346, 30.84923), Pair(121.378296, 30.861472)) |
| | | // locationRoadNearby.search(b, 1000.0) |
| | | val bList = listOf( |
| | | LocationRoadNearby.BasePlace("å¹²é±è·¯-éç³åè·¯-éå¼ å
¬è·¯", Pair(121.218411,30.826654), Pair(121.227142,30.828403)), |
| | | LocationRoadNearby.BasePlace("éå»å
¬è·¯-建ä¹è·¯-æ±åå
¬è·¯", Pair(121.18409,30.835699), Pair(121.183811,30.831636)), |
| | | LocationRoadNearby.BasePlace("éå¼ å
¬è·¯-ç°æ°è·¯-å¹²é±è·¯", Pair(121.219555,30.829319), Pair(121.227142,30.828403)), |
| | | LocationRoadNearby.BasePlace("大è«ä¸å¿è·¯-æ±å¹³å
¬è·¯-æ±å¢è·¯", Pair(121.147448,30.858481), Pair(121.149312,30.857804)), |
| | | LocationRoadNearby.BasePlace("大è«ä¸å¿è·¯-建å¯è·¯-æ±å¹³å
¬è·¯", Pair(121.141819,30.858344), Pair(121.147448,30.858481)), |
| | | LocationRoadNearby.BasePlace("æ±åå
¬è·¯-éå¼ å
¬è·¯-康å
´è·¯", Pair(121.177261,30.83326), Pair(121.18053,30.830751)), |
| | | LocationRoadNearby.BasePlace("æ±åå
¬è·¯-éå»å
¬è·¯-康å
´è·¯", Pair(121.183811,30.831636), Pair(121.18053,30.830751)), |
| | | LocationRoadNearby.BasePlace("åæ°è·¯-建ä¹è·¯-æ±åå
¬è·¯", Pair(121.191766,30.835612), Pair(121.196591,30.831604)), |
| | | LocationRoadNearby.BasePlace("溪åè·¯-æ±åå
¬è·¯-æ°ä¸è¡", Pair(121.171163,30.832014), Pair(121.174958,30.827349)), |
| | | LocationRoadNearby.BasePlace("䏿¹çº¢ä¸å¿è·¯-å建路-æ±å¹³å
¬è·¯", Pair(121.141617,30.870365), Pair(121.145145,30.870635)), |
| | | LocationRoadNearby.BasePlace("䏿¹çº¢ä¸å¿è·¯-æ±å¹³å
¬è·¯-æ±å¢è·¯", Pair(121.145145,30.870635), Pair(121.155051,30.870966)), |
| | | LocationRoadNearby.BasePlace("æ±åå
¬è·¯-éå»å
¬è·¯-ç°æ¬¢è·¯", Pair(121.183811,30.831636), Pair(121.18989,30.831606)), |
| | | LocationRoadNearby.BasePlace("æ±å¹³å
¬è·¯-ä¸å¯è·¯-大è«ä¸å¿è·¯", Pair(121.146281,30.864199), Pair(121.147448,30.858481)), |
| | | LocationRoadNearby.BasePlace("æ±å¹³å
¬è·¯-䏿¹çº¢ä¸å¿è·¯-ä¸å¯è·¯", Pair(121.145404,30.869592), Pair(121.146281,30.864199)), |
| | | LocationRoadNearby.BasePlace("éå¼ å
¬è·¯-éç³åè·¯-ç°æ°è·¯", Pair(121.215668,30.830838), Pair(121.219555,30.829319)), |
| | | LocationRoadNearby.BasePlace("æ±å¹³å
¬è·¯-åéè·¯-è·èè·¯", Pair(121.148479,30.836083), Pair(121.14842,30.842135)), |
| | | LocationRoadNearby.BasePlace("æ±æ³¾å建路-建å¯è·¯-æ±å¹³å
¬è·¯", Pair(121.142609,30.863955), Pair(121.146407,30.864167)), |
| | | LocationRoadNearby.BasePlace("æ±æ³¾å建路-æ±å¹³å
¬è·¯-æ±å¢è·¯", Pair(121.146407,30.864167), Pair(121.153675,30.864075)), |
| | | LocationRoadNearby.BasePlace("åéè·¯-æ±åå
¬è·¯-æ±å¹³å
¬è·¯", Pair(121.136318,30.833325), Pair(121.148624,30.836094)), |
| | | LocationRoadNearby.BasePlace("æ³æ¹¾æ¯è·¯-åéè·¯-æ±å¹³å
¬è·¯", Pair(121.155048,30.835229), Pair(121.148659,30.829861)), |
| | | ) |
| | | locationRoadNearby.searchList(bList, 1000.0) |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.datafetch |
| | | |
| | | import cn.flightfeather.supervision.SupervisionApplication |
| | | import org.junit.Test |
| | | import org.junit.jupiter.api.Assertions.* |
| | | import org.junit.runner.RunWith |
| | | import org.springframework.beans.factory.annotation.Autowired |
| | | import org.springframework.boot.test.context.SpringBootTest |
| | | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner |
| | | |
| | | @RunWith(SpringJUnit4ClassRunner::class) |
| | | @SpringBootTest(classes = [SupervisionApplication::class]) |
| | | class FetchNightConstructionTest { |
| | | |
| | | @Autowired |
| | | lateinit var fetchNightConstruction: FetchNightConstruction |
| | | |
| | | @Test |
| | | fun foo1() { |
| | | fetchNightConstruction.fetch() |
| | | } |
| | | } |
| | |
| | | val sD = Date.from(localTimeS.atZone(ZoneId.systemDefault()).toInstant()) |
| | | val eD = Date.from(localTimeE.atZone(ZoneId.systemDefault()).toInstant()) |
| | | |
| | | val mode = 8 |
| | | val mode = 9 |
| | | //éå±±2022å¹´6æ |
| | | searchService.writeToFile(ExcelConfigVo( |
| | | "udXAWrrRbM2MvZ5u", |
| | | "0kG5dblu1uPqo8qW", |
| | | districtCode = "310106", |
| | | // townCode = "310116113", |
| | | sceneType = 1), mode) |