1. 新增设备信息相关功能
2. 修正自评估中数据自动评分的部分逻辑
已修改26个文件
已删除6个文件
已添加18个文件
| | |
| | | </properties> |
| | | </profile> |
| | | <profile> |
| | | <id>pro-https</id> |
| | | <properties> |
| | | <profileActive>pro-https</profileActive> |
| | | </properties> |
| | | </profile> |
| | | <profile> |
| | | <id>test</id> |
| | | <properties> |
| | | <profileActive>test</profileActive> |
| | |
| | | //è·ååå§çæµæ°æ® |
| | | val dataList = fetchDataResources(evaluationScene) |
| | | //计ç®ç»è®¡ç»æ |
| | | var tempExceedTimes = TempResult() |
| | | var tempAvg = TempResult() |
| | | var tempMax = TempResult() |
| | | var tempMin = TempResult() |
| | | // var tempExceedTimes = TempResult() |
| | | // var tempAvg = TempResult() |
| | | // var tempMax = TempResult() |
| | | // var tempMin = TempResult() |
| | | dataList.forEach { |
| | | // çæµç¹æå¤å°è®¾å¤æ¶ï¼æ¯å°è®¾å¤åç¬ç»è®¡ï¼åå弿é«ç为ç»è®¡ç»æ |
| | | val _tempExceedTimes = TempResult() |
| | | val _tempAvg = TempResult() |
| | | val _tempMax = TempResult() |
| | | val _tempMin = TempResult() |
| | | // çæµç¹æå¤å°è®¾å¤æ¶ï¼æ¯å°è®¾å¤åç¬è®°å½ |
| | | val deviceCode = if (it.isNotEmpty()) { |
| | | getDeviceCode(it[0]) |
| | | } else { |
| | | null |
| | | } |
| | | val tempExceedTimes = TempResult() |
| | | val tempAvg = TempResult() |
| | | val tempMax = TempResult() |
| | | val tempMin = TempResult() |
| | | // val _tempExceedTimes = TempResult() |
| | | // val _tempAvg = TempResult() |
| | | // val _tempMax = TempResult() |
| | | // val _tempMin = TempResult() |
| | | it.forEach { t -> |
| | | t?.let { |
| | | exceedTimes(t, _tempExceedTimes) |
| | | avg(t, _tempAvg) |
| | | max(t, _tempMax) |
| | | min(t, _tempMin) |
| | | exceedTimes(t, tempExceedTimes) |
| | | avg(t, tempAvg) |
| | | max(t, tempMax) |
| | | min(t, tempMin) |
| | | } |
| | | } |
| | | // ä¿çå弿é«çä¸å°è®¾å¤ |
| | | if (_tempAvg.avg > tempAvg.avg) { |
| | | tempExceedTimes = _tempExceedTimes |
| | | tempAvg = _tempAvg |
| | | tempMax = _tempMax |
| | | tempMin = _tempMin |
| | | // if (_tempAvg.avg > tempAvg.avg) { |
| | | // tempExceedTimes = _tempExceedTimes |
| | | // tempAvg = _tempAvg |
| | | // tempMax = _tempMax |
| | | // tempMin = _tempMin |
| | | // } |
| | | val dustDataResult = DustDataResult().apply { |
| | | drSceneId = evaluationScene.scene.value?.guid |
| | | drSceneName = evaluationScene.scene.value?.name |
| | | drDeviceCode = deviceCode |
| | | drTime = source?.config?.startTime |
| | | drExceedTimes = tempExceedTimes.count |
| | | drAvg = tempAvg.avg |
| | | drMax = tempMax.total |
| | | drMin = tempMin.total |
| | | drOverAvgPer = overAvgRate(drAvg, dAvg) |
| | | drDataNum = count(dataList) |
| | | // 彿°æ®é为0æ¶ï¼è¶
æåº¦åºåå¼ç¾åæ¯å为0 |
| | | if (drDataNum == 0) drOverAvgPer = .0 |
| | | drEffectiveRate = effectiveRate(dataList, evaluationScene) |
| | | } |
| | | //æ´æ°å
¥åº |
| | | aopOutput.toDbDataResult(dustDataResult) |
| | | } |
| | | 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) |
| | | // 彿°æ®é为0æ¶ï¼è¶
æåº¦åºåå¼ç¾åæ¯å为0 |
| | | if (drDataNum == 0) drOverAvgPer = .0 |
| | | drEffectiveRate = effectiveRate(dataList, evaluationScene) |
| | | } |
| | | //æ´æ°å
¥åº |
| | | aopOutput.toDbDataResult(dustDataResult) |
| | | } |
| | | } |
| | | |
| | |
| | | abstract fun districtAvg(source: AopDataSource?): Double? |
| | | |
| | | /** |
| | | * è·å设å¤ç¼å· |
| | | */ |
| | | abstract fun getDeviceCode(data: T?): String? |
| | | |
| | | /** |
| | | * è·ååå§çæµæ°æ® |
| | | */ |
| | | abstract fun fetchDataResources(evaluationScene: AopDataSource.EvaluationScene): List<List<T?>> |
| | |
| | | } |
| | | } |
| | | |
| | | override fun getDeviceCode(data: HourDustData?): String? { |
| | | return data?.mncode |
| | | } |
| | | |
| | | 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) |
| | |
| | | } |
| | | } |
| | | |
| | | override fun getDeviceCode(data: JSDustData?): String? { |
| | | return data?.mnCode |
| | | } |
| | | |
| | | override fun fetchDataResources(evaluationScene: AopDataSource.EvaluationScene): List<List<JSDustData?>> { |
| | | val dustSiteMaps = jsDustSiteMapMapper.selectByExample(Example(JSDustSiteMap::class.java).apply { |
| | | createCriteria().andEqualTo("svUserId", evaluationScene.userInfo.value?.guid) |
| | |
| | | return fumeSiteMaps.map { it?.xhDeviceCode } |
| | | } |
| | | |
| | | override fun getDeviceCode(data: FumeDailyAnalysis?): String? { |
| | | return data?.fumeDevId |
| | | } |
| | | |
| | | override fun fetchDataResources(evaluationScene: AopDataSource.EvaluationScene): List<List<FumeDailyAnalysis?>> { |
| | | val deviceCodeList = getDeviceCodes(evaluationScene) |
| | | val map = mutableMapOf<String?, MutableList<FumeDailyAnalysis?>>() |
| | |
| | | whScoreItem1: WhScoreItem1, |
| | | whScoreItem2: WhScoreItem2, |
| | | reScoreItem5: ReScoreItem5, |
| | | // FIXME: 2023/12/29 å å»ç¹æ®è¯ä¼°è§å |
| | | // reScoreItem7: ReScoreItem7, |
| | | reScoreItem8: ReScoreItem8, |
| | | reScoreItem9: ReScoreItem9, |
| | | reScoreItem10: ReScoreItem10, |
| | |
| | | add(whScoreItem1) |
| | | add(whScoreItem2) |
| | | add(reScoreItem5) |
| | | // add(reScoreItem7) |
| | | add(reScoreItem8) |
| | | add(reScoreItem9) |
| | | add(reScoreItem10) |
| | |
| | | val s = lt.withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0) |
| | | val e = s.plusMonths(1) |
| | | |
| | | var i = 1 |
| | | var i = 0 |
| | | when { |
| | | condition3(s, e) -> { |
| | | i = 3 |
| | |
| | | * 2.ç¯å¢ä¿¡ç¨èªè¯æªææ¶èªè¯ææªææ¶æ |
| | | */ |
| | | override fun otherProblem(size: Int): List<Int>? { |
| | | var i = 0 |
| | | var i = -1 |
| | | if (condition1()) { |
| | | i = 1 |
| | | } else if (condition2()) { |
| | | i = 2 |
| | | } |
| | | if (i > size - 1) i = size - 1 |
| | | return listOf(i) |
| | | return if(i == -1) null else listOf(i) |
| | | } |
| | | |
| | | /** |
| | |
| | | import java.time.ZoneId |
| | | import javax.annotation.PostConstruct |
| | | |
| | | @Deprecated(level = DeprecationLevel.HIDDEN, message = "å°è´¦çè¯ä¼°éè¿å·¡æ¥é®é¢èªå¨å¯¹åº") |
| | | @Component |
| | | class ReScoreItem7: ScoreItem() { |
| | | companion object { |
| | | private lateinit var instance: ReScoreItem7 |
| | | } |
| | | |
| | | @PostConstruct |
| | | fun init() { |
| | | instance = this |
| | | } |
| | | |
| | | init { |
| | | exemption = true |
| | | } |
| | |
| | | val id = "${BgTaskType.AUTO_SCORE.name}-${districtCode}-${sceneType}" |
| | | val name = "${districtName}${Constant.SceneType.getDes(sceneType)}èªå¨è¯å" |
| | | val bgTask = backgroundTaskCtrl.startNewTask(BgTaskType.AUTO_SCORE, id, name) { |
| | | // çæµæ°æ®åæå
¥åº |
| | | dataAnalysis(districtCode, sceneType, taskId, year, month) |
| | | |
| | | // èªå¨è¯ä¼°è®¡ç®å
¥åº |
| | | aopEvaluation.executeByTopTask(taskId, sceneType) |
| | | |
| | | // ç¯ä¿¡ç ç»æè½¬æ¢å
¥åº |
| | | aopCreditCode.execute(AopDataConfig( |
| | | year = year, |
| | | month = month, |
| | |
| | | } |
| | | } |
| | | |
| | | //设å¤ç±»å |
| | | enum class DeviceType(val value: Byte, val text: String){ |
| | | MONITOR_DEVICE(0, "çæ§è®¾å¤"), |
| | | TREATMENT_DEVICE(1, "æ²»ç设å¤"), |
| | | PRODUCTION_DEVICE(2, "ç产设å¤"); |
| | | |
| | | companion object { |
| | | fun fromValue(value: Byte) = when (value.toInt()) { |
| | | 0 -> MONITOR_DEVICE |
| | | 1 -> TREATMENT_DEVICE |
| | | 2 -> PRODUCTION_DEVICE |
| | | else -> MONITOR_DEVICE |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | companion object { |
| | | //é®é¢å®¡æ ¸ |
| | | const val PROBLEM_CHECK_PASS = "pass"//é®é¢å®¡æ ¸éè¿ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds1.entity |
| | | |
| | | import io.swagger.annotations.ApiModel |
| | | |
| | | /** |
| | | * åºæ¬åºæ¯è®¾å¤ä¿¡æ¯ï¼ç»§æ¿æ¤æ¥å£ï¼è¡¨ç¤ºè¯¥ç±»ä¸ºåºæ¯è®¾å¤ä¸çåç±» |
| | | * @date 2024/8/6 |
| | | * @author feiyu02 |
| | | */ |
| | | @ApiModel(description = "åºæ¯è®¾å¤ä¿¡æ¯åºç±»æ¥å£") |
| | | interface BaseDevice |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds1.entity; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import javax.persistence.*; |
| | | |
| | | @Table(name = "di_t_device_status") |
| | | public class DeviceStatus { |
| | | @Id |
| | | @Column(name = "DL_ID") |
| | | private Integer dlId; |
| | | |
| | | /** |
| | | * æå±è®¾å¤id |
| | | */ |
| | | @Column(name = "DL_Device_Id") |
| | | private Integer dlDeviceId; |
| | | |
| | | /** |
| | | * 设å¤ç±»åï¼0ï¼çæ§è®¾å¤ï¼1ï¼åå设å¤ï¼2ï¼ä½ä¸è®¾å¤ï¼ |
| | | */ |
| | | @Column(name = "DL_Device_Type") |
| | | private Byte dlDeviceType; |
| | | |
| | | /** |
| | | * æå±åºæ¯id |
| | | */ |
| | | @Column(name = "DL_Scene_GUID") |
| | | private String dlSceneGuid; |
| | | |
| | | /** |
| | | * åºæ¯ç±»åid |
| | | */ |
| | | @Column(name = "DL_Scene_Type_Id") |
| | | private Byte dlSceneTypeId; |
| | | |
| | | /** |
| | | * 设å¤ä½ç½® |
| | | */ |
| | | @Column(name = "DL_Location") |
| | | private String dlLocation; |
| | | |
| | | @Column(name = "DL_Longitude") |
| | | private BigDecimal dlLongitude; |
| | | |
| | | @Column(name = "DL_Latitude") |
| | | private BigDecimal dlLatitude; |
| | | |
| | | /** |
| | | * å®è£
ä½ç½®æ¯å¦è§è |
| | | */ |
| | | @Column(name = "DL_Standard") |
| | | private Boolean dlStandard; |
| | | |
| | | /** |
| | | * å®è£
ä½ç½®ä¸è§èåå |
| | | */ |
| | | @Column(name = "DL_UnStandard_Reason") |
| | | private String dlUnstandardReason; |
| | | |
| | | /** |
| | | * è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | */ |
| | | @Column(name = "DL_Real_Time_Status") |
| | | private Byte dlRealTimeStatus; |
| | | |
| | | /** |
| | | * 设å¤ç°åºå¾ç(å¤å¼ å¾çç¨;åé) |
| | | */ |
| | | @Column(name = "DL_Pic_Url") |
| | | private String dlPicUrl; |
| | | |
| | | /** |
| | | * è§é¢å°å |
| | | */ |
| | | @Column(name = "DL_Video_Url") |
| | | private String dlVideoUrl; |
| | | |
| | | @Column(name = "DL_Create_Time") |
| | | private Date dlCreateTime; |
| | | |
| | | @Column(name = "DL_Update_Time") |
| | | private Date dlUpdateTime; |
| | | |
| | | /** |
| | | * @return DL_ID |
| | | */ |
| | | public Integer getDlId() { |
| | | return dlId; |
| | | } |
| | | |
| | | /** |
| | | * @param dlId |
| | | */ |
| | | public void setDlId(Integer dlId) { |
| | | this.dlId = dlId; |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±è®¾å¤id |
| | | * |
| | | * @return DL_Device_Id - æå±è®¾å¤id |
| | | */ |
| | | public Integer getDlDeviceId() { |
| | | return dlDeviceId; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±è®¾å¤id |
| | | * |
| | | * @param dlDeviceId æå±è®¾å¤id |
| | | */ |
| | | public void setDlDeviceId(Integer dlDeviceId) { |
| | | this.dlDeviceId = dlDeviceId; |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤ç±»åï¼0ï¼çæ§è®¾å¤ï¼1ï¼åå设å¤ï¼2ï¼ä½ä¸è®¾å¤ï¼ |
| | | * |
| | | * @return DL_Device_Type - 设å¤ç±»åï¼0ï¼çæ§è®¾å¤ï¼1ï¼åå设å¤ï¼2ï¼ä½ä¸è®¾å¤ï¼ |
| | | */ |
| | | public Byte getDlDeviceType() { |
| | | return dlDeviceType; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ç±»åï¼0ï¼çæ§è®¾å¤ï¼1ï¼åå设å¤ï¼2ï¼ä½ä¸è®¾å¤ï¼ |
| | | * |
| | | * @param dlDeviceType 设å¤ç±»åï¼0ï¼çæ§è®¾å¤ï¼1ï¼åå设å¤ï¼2ï¼ä½ä¸è®¾å¤ï¼ |
| | | */ |
| | | public void setDlDeviceType(Byte dlDeviceType) { |
| | | this.dlDeviceType = dlDeviceType; |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±åºæ¯id |
| | | * |
| | | * @return DL_Scene_GUID - æå±åºæ¯id |
| | | */ |
| | | public String getDlSceneGuid() { |
| | | return dlSceneGuid; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±åºæ¯id |
| | | * |
| | | * @param dlSceneGuid æå±åºæ¯id |
| | | */ |
| | | public void setDlSceneGuid(String dlSceneGuid) { |
| | | this.dlSceneGuid = dlSceneGuid == null ? null : dlSceneGuid.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·ååºæ¯ç±»åid |
| | | * |
| | | * @return DL_Scene_Type_Id - åºæ¯ç±»åid |
| | | */ |
| | | public Byte getDlSceneTypeId() { |
| | | return dlSceneTypeId; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®åºæ¯ç±»åid |
| | | * |
| | | * @param dlSceneTypeId åºæ¯ç±»åid |
| | | */ |
| | | public void setDlSceneTypeId(Byte dlSceneTypeId) { |
| | | this.dlSceneTypeId = dlSceneTypeId; |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤ä½ç½® |
| | | * |
| | | * @return DL_Location - 设å¤ä½ç½® |
| | | */ |
| | | public String getDlLocation() { |
| | | return dlLocation; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ä½ç½® |
| | | * |
| | | * @param dlLocation 设å¤ä½ç½® |
| | | */ |
| | | public void setDlLocation(String dlLocation) { |
| | | this.dlLocation = dlLocation == null ? null : dlLocation.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return DL_Longitude |
| | | */ |
| | | public BigDecimal getDlLongitude() { |
| | | return dlLongitude; |
| | | } |
| | | |
| | | /** |
| | | * @param dlLongitude |
| | | */ |
| | | public void setDlLongitude(BigDecimal dlLongitude) { |
| | | this.dlLongitude = dlLongitude; |
| | | } |
| | | |
| | | /** |
| | | * @return DL_Latitude |
| | | */ |
| | | public BigDecimal getDlLatitude() { |
| | | return dlLatitude; |
| | | } |
| | | |
| | | /** |
| | | * @param dlLatitude |
| | | */ |
| | | public void setDlLatitude(BigDecimal dlLatitude) { |
| | | this.dlLatitude = dlLatitude; |
| | | } |
| | | |
| | | /** |
| | | * è·åå®è£
ä½ç½®æ¯å¦è§è |
| | | * |
| | | * @return DL_Standard - å®è£
ä½ç½®æ¯å¦è§è |
| | | */ |
| | | public Boolean getDlStandard() { |
| | | return dlStandard; |
| | | } |
| | | |
| | | /** |
| | | * 设置å®è£
ä½ç½®æ¯å¦è§è |
| | | * |
| | | * @param dlStandard å®è£
ä½ç½®æ¯å¦è§è |
| | | */ |
| | | public void setDlStandard(Boolean dlStandard) { |
| | | this.dlStandard = dlStandard; |
| | | } |
| | | |
| | | /** |
| | | * è·åå®è£
ä½ç½®ä¸è§èåå |
| | | * |
| | | * @return DL_UnStandard_Reason - å®è£
ä½ç½®ä¸è§èåå |
| | | */ |
| | | public String getDlUnstandardReason() { |
| | | return dlUnstandardReason; |
| | | } |
| | | |
| | | /** |
| | | * 设置å®è£
ä½ç½®ä¸è§èåå |
| | | * |
| | | * @param dlUnstandardReason å®è£
ä½ç½®ä¸è§èåå |
| | | */ |
| | | public void setDlUnstandardReason(String dlUnstandardReason) { |
| | | this.dlUnstandardReason = dlUnstandardReason == null ? null : dlUnstandardReason.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | * |
| | | * @return DL_Real_Time_Status - è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | */ |
| | | public Byte getDlRealTimeStatus() { |
| | | return dlRealTimeStatus; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | * |
| | | * @param dlRealTimeStatus è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | */ |
| | | public void setDlRealTimeStatus(Byte dlRealTimeStatus) { |
| | | this.dlRealTimeStatus = dlRealTimeStatus; |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤ç°åºå¾ç(å¤å¼ å¾çç¨;åé) |
| | | * |
| | | * @return DL_Pic_Url - 设å¤ç°åºå¾ç(å¤å¼ å¾çç¨;åé) |
| | | */ |
| | | public String getDlPicUrl() { |
| | | return dlPicUrl; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ç°åºå¾ç(å¤å¼ å¾çç¨;åé) |
| | | * |
| | | * @param dlPicUrl 设å¤ç°åºå¾ç(å¤å¼ å¾çç¨;åé) |
| | | */ |
| | | public void setDlPicUrl(String dlPicUrl) { |
| | | this.dlPicUrl = dlPicUrl == null ? null : dlPicUrl.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè§é¢å°å |
| | | * |
| | | * @return DL_Video_Url - è§é¢å°å |
| | | */ |
| | | public String getDlVideoUrl() { |
| | | return dlVideoUrl; |
| | | } |
| | | |
| | | /** |
| | | * 设置è§é¢å°å |
| | | * |
| | | * @param dlVideoUrl è§é¢å°å |
| | | */ |
| | | public void setDlVideoUrl(String dlVideoUrl) { |
| | | this.dlVideoUrl = dlVideoUrl == null ? null : dlVideoUrl.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return DL_Create_Time |
| | | */ |
| | | public Date getDlCreateTime() { |
| | | return dlCreateTime; |
| | | } |
| | | |
| | | /** |
| | | * @param dlCreateTime |
| | | */ |
| | | public void setDlCreateTime(Date dlCreateTime) { |
| | | this.dlCreateTime = dlCreateTime; |
| | | } |
| | | |
| | | /** |
| | | * @return DL_Update_Time |
| | | */ |
| | | public Date getDlUpdateTime() { |
| | | return dlUpdateTime; |
| | | } |
| | | |
| | | /** |
| | | * @param dlUpdateTime |
| | | */ |
| | | public void setDlUpdateTime(Date dlUpdateTime) { |
| | | this.dlUpdateTime = dlUpdateTime; |
| | | } |
| | | } |
| | |
| | | private String drSceneName; |
| | | |
| | | /** |
| | | * 设å¤ç¼å· |
| | | */ |
| | | @Column(name = "DR_Device_Code") |
| | | private String drDeviceCode; |
| | | |
| | | /** |
| | | * è®°å½æä»½ |
| | | */ |
| | | @Column(name = "DR_Time") |
| | |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤ç¼å· |
| | | * |
| | | * @return DR_Device_Code - 设å¤ç¼å· |
| | | */ |
| | | public String getDrDeviceCode() { |
| | | return drDeviceCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ç¼å· |
| | | * |
| | | * @param drDeviceCode 设å¤ç¼å· |
| | | */ |
| | | public void setDrDeviceCode(String drDeviceCode) { |
| | | this.drDeviceCode = drDeviceCode == null ? null : drDeviceCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè®°å½æä»½ |
| | | * |
| | | * @return DR_Time - è®°å½æä»½ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds1.entity; |
| | | |
| | | import java.util.Date; |
| | | import javax.persistence.*; |
| | | |
| | | @Table(name = "di_t_monitor_device_info") |
| | | public class MonitorDeviceInfo implements BaseDevice { |
| | | @Id |
| | | @Column(name = "DI_ID") |
| | | private Integer diId; |
| | | |
| | | /** |
| | | * çæµè®¾å¤ç¼å· |
| | | */ |
| | | @Column(name = "DI_Device_Code") |
| | | private String diDeviceCode; |
| | | |
| | | /** |
| | | * ç«ç¹åç§° |
| | | */ |
| | | @Column(name = "DI_Name") |
| | | private String diName; |
| | | |
| | | /** |
| | | * æå±åºæ¯id |
| | | */ |
| | | @Column(name = "DI_Scene_GUID") |
| | | private String diSceneGuid; |
| | | |
| | | /** |
| | | * åºæ¯ç±»åid |
| | | */ |
| | | @Column(name = "DI_Scene_Type_Id") |
| | | private Byte diSceneTypeId; |
| | | |
| | | /** |
| | | * 设å¤ç±»å(0:æ¬å°çæµï¼1:æ²¹ççæµ;2:VOCçæµ) |
| | | */ |
| | | @Column(name = "DI_Type_Id") |
| | | private Byte diTypeId; |
| | | |
| | | /** |
| | | * 设å¤åç±»å |
| | | */ |
| | | @Column(name = "DI_Subtype_Id") |
| | | private Byte diSubtypeId; |
| | | |
| | | /** |
| | | * 设å¤ä¾åºå |
| | | */ |
| | | @Column(name = "DI_Supplier") |
| | | private String diSupplier; |
| | | |
| | | /** |
| | | * è¿ç»´å |
| | | */ |
| | | @Column(name = "DI_Maintainer") |
| | | private String diMaintainer; |
| | | |
| | | /** |
| | | * è¿ç»´é¢æ¬¡(0:æ¯å¨ä¸æ¬¡;1:æ¯æä¸æ¬¡;2:æ¯å£åº¦ä¸æ¬¡;3:å年䏿¬¡) |
| | | */ |
| | | @Column(name = "DI_Maintain_Frequency") |
| | | private Byte diMaintainFrequency; |
| | | |
| | | /** |
| | | * è¿ç»´äººå |
| | | */ |
| | | @Column(name = "DI_Maintain_Staff") |
| | | private String diMaintainStaff; |
| | | |
| | | /** |
| | | * è¿ç»´èç³»æ¹å¼ |
| | | */ |
| | | @Column(name = "DI_Maintain_Tel") |
| | | private String diMaintainTel; |
| | | |
| | | /** |
| | | * è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | */ |
| | | @Column(name = "DI_Running_Status") |
| | | private Byte diRunningStatus; |
| | | |
| | | /** |
| | | * åçåå· |
| | | */ |
| | | @Column(name = "DI_Brand_Model") |
| | | private String diBrandModel; |
| | | |
| | | /** |
| | | * 设å¤åæ° |
| | | */ |
| | | @Column(name = "DI_Device_Param") |
| | | private String diDeviceParam; |
| | | |
| | | /** |
| | | * æææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | */ |
| | | @Column(name = "DI_Ownership") |
| | | private Byte diOwnership; |
| | | |
| | | /** |
| | | * æ è¯äºç»´ç |
| | | */ |
| | | @Column(name = "DI_QR_Code") |
| | | private String diQrCode; |
| | | |
| | | /** |
| | | * å
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | */ |
| | | @Column(name = "DI_Other_QR_Code") |
| | | private String diOtherQrCode; |
| | | |
| | | @Column(name = "DI_Create_Time") |
| | | private Date diCreateTime; |
| | | |
| | | @Column(name = "DI_Update_Time") |
| | | private Date diUpdateTime; |
| | | |
| | | /** |
| | | * @return DI_ID |
| | | */ |
| | | public Integer getDiId() { |
| | | return diId; |
| | | } |
| | | |
| | | /** |
| | | * @param diId |
| | | */ |
| | | public void setDiId(Integer diId) { |
| | | this.diId = diId; |
| | | } |
| | | |
| | | /** |
| | | * è·åçæµè®¾å¤ç¼å· |
| | | * |
| | | * @return DI_Device_Code - çæµè®¾å¤ç¼å· |
| | | */ |
| | | public String getDiDeviceCode() { |
| | | return diDeviceCode; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®çæµè®¾å¤ç¼å· |
| | | * |
| | | * @param diDeviceCode çæµè®¾å¤ç¼å· |
| | | */ |
| | | public void setDiDeviceCode(String diDeviceCode) { |
| | | this.diDeviceCode = diDeviceCode == null ? null : diDeviceCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç«ç¹åç§° |
| | | * |
| | | * @return DI_Name - ç«ç¹åç§° |
| | | */ |
| | | public String getDiName() { |
| | | return diName; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç«ç¹åç§° |
| | | * |
| | | * @param diName ç«ç¹åç§° |
| | | */ |
| | | public void setDiName(String diName) { |
| | | this.diName = diName == null ? null : diName.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±åºæ¯id |
| | | * |
| | | * @return DI_Scene_GUID - æå±åºæ¯id |
| | | */ |
| | | public String getDiSceneGuid() { |
| | | return diSceneGuid; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±åºæ¯id |
| | | * |
| | | * @param diSceneGuid æå±åºæ¯id |
| | | */ |
| | | public void setDiSceneGuid(String diSceneGuid) { |
| | | this.diSceneGuid = diSceneGuid == null ? null : diSceneGuid.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·ååºæ¯ç±»åid |
| | | * |
| | | * @return PI_Scene_Type_Id - åºæ¯ç±»åid |
| | | */ |
| | | public Byte getDiSceneTypeId() { |
| | | return diSceneTypeId; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®åºæ¯ç±»åid |
| | | * |
| | | * @param diSceneTypeId åºæ¯ç±»åid |
| | | */ |
| | | public void setDiSceneTypeId(Byte diSceneTypeId) { |
| | | this.diSceneTypeId = diSceneTypeId; |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤ç±»å(0:æ¬å°çæµï¼1:æ²¹ççæµ;2:VOCçæµ) |
| | | * |
| | | * @return DI_Type_Id - 设å¤ç±»å(0:æ¬å°çæµï¼1:æ²¹ççæµ;2:VOCçæµ) |
| | | */ |
| | | public Byte getDiTypeId() { |
| | | return diTypeId; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ç±»å(0:æ¬å°çæµï¼1:æ²¹ççæµ;2:VOCçæµ) |
| | | * |
| | | * @param diTypeId 设å¤ç±»å(0:æ¬å°çæµï¼1:æ²¹ççæµ;2:VOCçæµ) |
| | | */ |
| | | public void setDiTypeId(Byte diTypeId) { |
| | | this.diTypeId = diTypeId; |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤åç±»å |
| | | * |
| | | * @return DI_Subtype_Id - 设å¤åç±»å |
| | | */ |
| | | public Byte getDiSubtypeId() { |
| | | return diSubtypeId; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤åç±»å |
| | | * |
| | | * @param diSubtypeId 设å¤åç±»å |
| | | */ |
| | | public void setDiSubtypeId(Byte diSubtypeId) { |
| | | this.diSubtypeId = diSubtypeId; |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤ä¾åºå |
| | | * |
| | | * @return DI_Supplier - 设å¤ä¾åºå |
| | | */ |
| | | public String getDiSupplier() { |
| | | return diSupplier; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ä¾åºå |
| | | * |
| | | * @param diSupplier 设å¤ä¾åºå |
| | | */ |
| | | public void setDiSupplier(String diSupplier) { |
| | | this.diSupplier = diSupplier == null ? null : diSupplier.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿ç»´å |
| | | * |
| | | * @return DI_Maintainer - è¿ç»´å |
| | | */ |
| | | public String getDiMaintainer() { |
| | | return diMaintainer; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿ç»´å |
| | | * |
| | | * @param diMaintainer è¿ç»´å |
| | | */ |
| | | public void setDiMaintainer(String diMaintainer) { |
| | | this.diMaintainer = diMaintainer == null ? null : diMaintainer.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿ç»´é¢æ¬¡(0:æ¯å¨ä¸æ¬¡;1:æ¯æä¸æ¬¡;2:æ¯å£åº¦ä¸æ¬¡;3:å年䏿¬¡) |
| | | * |
| | | * @return DI_Maintain_Frequency - è¿ç»´é¢æ¬¡(0:æ¯å¨ä¸æ¬¡;1:æ¯æä¸æ¬¡;2:æ¯å£åº¦ä¸æ¬¡;3:å年䏿¬¡) |
| | | */ |
| | | public Byte getDiMaintainFrequency() { |
| | | return diMaintainFrequency; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿ç»´é¢æ¬¡(0:æ¯å¨ä¸æ¬¡;1:æ¯æä¸æ¬¡;2:æ¯å£åº¦ä¸æ¬¡;3:å年䏿¬¡) |
| | | * |
| | | * @param diMaintainFrequency è¿ç»´é¢æ¬¡(0:æ¯å¨ä¸æ¬¡;1:æ¯æä¸æ¬¡;2:æ¯å£åº¦ä¸æ¬¡;3:å年䏿¬¡) |
| | | */ |
| | | public void setDiMaintainFrequency(Byte diMaintainFrequency) { |
| | | this.diMaintainFrequency = diMaintainFrequency; |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿ç»´äººå |
| | | * |
| | | * @return DI_Maintain_Staff - è¿ç»´äººå |
| | | */ |
| | | public String getDiMaintainStaff() { |
| | | return diMaintainStaff; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿ç»´äººå |
| | | * |
| | | * @param diMaintainStaff è¿ç»´äººå |
| | | */ |
| | | public void setDiMaintainStaff(String diMaintainStaff) { |
| | | this.diMaintainStaff = diMaintainStaff == null ? null : diMaintainStaff.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿ç»´èç³»æ¹å¼ |
| | | * |
| | | * @return DI_Maintain_Tel - è¿ç»´èç³»æ¹å¼ |
| | | */ |
| | | public String getDiMaintainTel() { |
| | | return diMaintainTel; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿ç»´èç³»æ¹å¼ |
| | | * |
| | | * @param diMaintainTel è¿ç»´èç³»æ¹å¼ |
| | | */ |
| | | public void setDiMaintainTel(String diMaintainTel) { |
| | | this.diMaintainTel = diMaintainTel == null ? null : diMaintainTel.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | * |
| | | * @return DI_Running_Status - è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | */ |
| | | public Byte getDiRunningStatus() { |
| | | return diRunningStatus; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | * |
| | | * @param diRunningStatus è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | */ |
| | | public void setDiRunningStatus(Byte diRunningStatus) { |
| | | this.diRunningStatus = diRunningStatus; |
| | | } |
| | | |
| | | /** |
| | | * è·ååçåå· |
| | | * |
| | | * @return DI_Brand_Model - åçåå· |
| | | */ |
| | | public String getDiBrandModel() { |
| | | return diBrandModel; |
| | | } |
| | | |
| | | /** |
| | | * 设置åçåå· |
| | | * |
| | | * @param diBrandModel åçåå· |
| | | */ |
| | | public void setDiBrandModel(String diBrandModel) { |
| | | this.diBrandModel = diBrandModel == null ? null : diBrandModel.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤åæ° |
| | | * |
| | | * @return DI_Device_Param - 设å¤åæ° |
| | | */ |
| | | public String getDiDeviceParam() { |
| | | return diDeviceParam; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤åæ° |
| | | * |
| | | * @param diDeviceParam 设å¤åæ° |
| | | */ |
| | | public void setDiDeviceParam(String diDeviceParam) { |
| | | this.diDeviceParam = diDeviceParam == null ? null : diDeviceParam.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | * |
| | | * @return DI_Ownership - æææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | */ |
| | | public Byte getDiOwnership() { |
| | | return diOwnership; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®æææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | * |
| | | * @param diOwnership æææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | */ |
| | | public void setDiOwnership(Byte diOwnership) { |
| | | this.diOwnership = diOwnership; |
| | | } |
| | | |
| | | /** |
| | | * è·åæ è¯äºç»´ç |
| | | * |
| | | * @return DI_QR_Code - æ è¯äºç»´ç |
| | | */ |
| | | public String getDiQrCode() { |
| | | return diQrCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置æ è¯äºç»´ç |
| | | * |
| | | * @param diQrCode æ è¯äºç»´ç |
| | | */ |
| | | public void setDiQrCode(String diQrCode) { |
| | | this.diQrCode = diQrCode == null ? null : diQrCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | * |
| | | * @return DI_Other_QR_Code - å
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | */ |
| | | public String getDiOtherQrCode() { |
| | | return diOtherQrCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置å
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | * |
| | | * @param diOtherQrCode å
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | */ |
| | | public void setDiOtherQrCode(String diOtherQrCode) { |
| | | this.diOtherQrCode = diOtherQrCode == null ? null : diOtherQrCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return DI_Create_Time |
| | | */ |
| | | public Date getDiCreateTime() { |
| | | return diCreateTime; |
| | | } |
| | | |
| | | /** |
| | | * @param diCreateTime |
| | | */ |
| | | public void setDiCreateTime(Date diCreateTime) { |
| | | this.diCreateTime = diCreateTime; |
| | | } |
| | | |
| | | /** |
| | | * @return DI_Update_Time |
| | | */ |
| | | public Date getDiUpdateTime() { |
| | | return diUpdateTime; |
| | | } |
| | | |
| | | /** |
| | | * @param diUpdateTime |
| | | */ |
| | | public void setDiUpdateTime(Date diUpdateTime) { |
| | | this.diUpdateTime = diUpdateTime; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds1.entity; |
| | | |
| | | import java.util.Date; |
| | | import javax.persistence.*; |
| | | |
| | | @Table(name = "di_t_production_device_info") |
| | | public class ProductionDeviceInfo implements BaseDevice { |
| | | @Id |
| | | @Column(name = "WI_ID") |
| | | private Integer wiId; |
| | | |
| | | /** |
| | | * ç产设å¤ç¼å· |
| | | */ |
| | | @Column(name = "WI_Device_Code") |
| | | private String wiDeviceCode; |
| | | |
| | | /** |
| | | * ä½ä¸è®¾æ½åç§° |
| | | */ |
| | | @Column(name = "WI_Name") |
| | | private String wiName; |
| | | |
| | | /** |
| | | * æå±åºæ¯id |
| | | */ |
| | | @Column(name = "WI_Scene_GUID") |
| | | private String wiSceneGuid; |
| | | |
| | | /** |
| | | * åºæ¯ç±»åid |
| | | */ |
| | | @Column(name = "WI_Scene_Type_Id") |
| | | private Byte wiSceneTypeId; |
| | | |
| | | /** |
| | | * 设å¤ç±»åid |
| | | */ |
| | | @Column(name = "WI_Type_Id") |
| | | private Byte wiTypeId; |
| | | |
| | | /** |
| | | * 设å¤åç±»å |
| | | */ |
| | | @Column(name = "WI_Subtype_Id") |
| | | private Byte wiSubtypeId; |
| | | |
| | | /** |
| | | * 设å¤ä¾åºå |
| | | */ |
| | | @Column(name = "WI_Supplier") |
| | | private String wiSupplier; |
| | | |
| | | /** |
| | | * æå¡åä½ |
| | | */ |
| | | @Column(name = "WI_Servicer") |
| | | private String wiServicer; |
| | | |
| | | /** |
| | | * è¿ç»´äººå |
| | | */ |
| | | @Column(name = "WI_Maintain_Staff") |
| | | private String wiMaintainStaff; |
| | | |
| | | /** |
| | | * è¿ç»´èç³»æ¹å¼ |
| | | */ |
| | | @Column(name = "WI_Maintain_Tel") |
| | | private String wiMaintainTel; |
| | | |
| | | /** |
| | | * è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | */ |
| | | @Column(name = "WI_Running_Status") |
| | | private Byte wiRunningStatus; |
| | | |
| | | /** |
| | | * åçåå· |
| | | */ |
| | | @Column(name = "WI_Brand_Model") |
| | | private String wiBrandModel; |
| | | |
| | | /** |
| | | * 设å¤åæ° |
| | | */ |
| | | @Column(name = "WI_Device_Param") |
| | | private String wiDeviceParam; |
| | | |
| | | /** |
| | | * æææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | */ |
| | | @Column(name = "WI_Ownership") |
| | | private Byte wiOwnership; |
| | | |
| | | @Column(name = "WI_QR_Code") |
| | | private String wiQrCode; |
| | | |
| | | /** |
| | | * å
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | */ |
| | | @Column(name = "WI_Other_QR_Code") |
| | | private String wiOtherQrCode; |
| | | |
| | | @Column(name = "WI_Create_Time") |
| | | private Date wiCreateTime; |
| | | |
| | | @Column(name = "WI_Update_Time") |
| | | private Date wiUpdateTime; |
| | | |
| | | /** |
| | | * @return WI_ID |
| | | */ |
| | | public Integer getWiId() { |
| | | return wiId; |
| | | } |
| | | |
| | | /** |
| | | * @param wiId |
| | | */ |
| | | public void setWiId(Integer wiId) { |
| | | this.wiId = wiId; |
| | | } |
| | | |
| | | /** |
| | | * è·åç产设å¤ç¼å· |
| | | * |
| | | * @return WI_Device_Code - ç产设å¤ç¼å· |
| | | */ |
| | | public String getWiDeviceCode() { |
| | | return wiDeviceCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置ç产设å¤ç¼å· |
| | | * |
| | | * @param wiDeviceCode ç产设å¤ç¼å· |
| | | */ |
| | | public void setWiDeviceCode(String wiDeviceCode) { |
| | | this.wiDeviceCode = wiDeviceCode == null ? null : wiDeviceCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åä½ä¸è®¾æ½åç§° |
| | | * |
| | | * @return WI_Name - ä½ä¸è®¾æ½åç§° |
| | | */ |
| | | public String getWiName() { |
| | | return wiName; |
| | | } |
| | | |
| | | /** |
| | | * 设置ä½ä¸è®¾æ½åç§° |
| | | * |
| | | * @param wiName ä½ä¸è®¾æ½åç§° |
| | | */ |
| | | public void setWiName(String wiName) { |
| | | this.wiName = wiName == null ? null : wiName.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±åºæ¯id |
| | | * |
| | | * @return WI_Scene_GUID - æå±åºæ¯id |
| | | */ |
| | | public String getWiSceneGuid() { |
| | | return wiSceneGuid; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±åºæ¯id |
| | | * |
| | | * @param wiSceneGuid æå±åºæ¯id |
| | | */ |
| | | public void setWiSceneGuid(String wiSceneGuid) { |
| | | this.wiSceneGuid = wiSceneGuid == null ? null : wiSceneGuid.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·ååºæ¯ç±»åid |
| | | * |
| | | * @return WI_Scene_Type_Id - åºæ¯ç±»åid |
| | | */ |
| | | public Byte getWiSceneTypeId() { |
| | | return wiSceneTypeId; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®åºæ¯ç±»åid |
| | | * |
| | | * @param wiSceneTypeId åºæ¯ç±»åid |
| | | */ |
| | | public void setWiSceneTypeId(Byte wiSceneTypeId) { |
| | | this.wiSceneTypeId = wiSceneTypeId; |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤ç±»åid |
| | | * |
| | | * @return WI_Type_Id - 设å¤ç±»åid |
| | | */ |
| | | public Byte getWiTypeId() { |
| | | return wiTypeId; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ç±»åid |
| | | * |
| | | * @param wiTypeId 设å¤ç±»åid |
| | | */ |
| | | public void setWiTypeId(Byte wiTypeId) { |
| | | this.wiTypeId = wiTypeId; |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤åç±»å |
| | | * |
| | | * @return WI_Subtype_Id - 设å¤åç±»å |
| | | */ |
| | | public Byte getWiSubtypeId() { |
| | | return wiSubtypeId; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤åç±»å |
| | | * |
| | | * @param wiSubtypeId 设å¤åç±»å |
| | | */ |
| | | public void setWiSubtypeId(Byte wiSubtypeId) { |
| | | this.wiSubtypeId = wiSubtypeId; |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤ä¾åºå |
| | | * |
| | | * @return WI_Supplier - 设å¤ä¾åºå |
| | | */ |
| | | public String getWiSupplier() { |
| | | return wiSupplier; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ä¾åºå |
| | | * |
| | | * @param wiSupplier 设å¤ä¾åºå |
| | | */ |
| | | public void setWiSupplier(String wiSupplier) { |
| | | this.wiSupplier = wiSupplier == null ? null : wiSupplier.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæå¡åä½ |
| | | * |
| | | * @return WI_Servicer - æå¡åä½ |
| | | */ |
| | | public String getWiServicer() { |
| | | return wiServicer; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå¡åä½ |
| | | * |
| | | * @param wiServicer æå¡åä½ |
| | | */ |
| | | public void setWiServicer(String wiServicer) { |
| | | this.wiServicer = wiServicer == null ? null : wiServicer.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿ç»´äººå |
| | | * |
| | | * @return WI_Maintain_Staff - è¿ç»´äººå |
| | | */ |
| | | public String getWiMaintainStaff() { |
| | | return wiMaintainStaff; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿ç»´äººå |
| | | * |
| | | * @param wiMaintainStaff è¿ç»´äººå |
| | | */ |
| | | public void setWiMaintainStaff(String wiMaintainStaff) { |
| | | this.wiMaintainStaff = wiMaintainStaff == null ? null : wiMaintainStaff.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿ç»´èç³»æ¹å¼ |
| | | * |
| | | * @return WI_Maintain_Tel - è¿ç»´èç³»æ¹å¼ |
| | | */ |
| | | public String getWiMaintainTel() { |
| | | return wiMaintainTel; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿ç»´èç³»æ¹å¼ |
| | | * |
| | | * @param wiMaintainTel è¿ç»´èç³»æ¹å¼ |
| | | */ |
| | | public void setWiMaintainTel(String wiMaintainTel) { |
| | | this.wiMaintainTel = wiMaintainTel == null ? null : wiMaintainTel.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | * |
| | | * @return WI_Running_Status - è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | */ |
| | | public Byte getWiRunningStatus() { |
| | | return wiRunningStatus; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | * |
| | | * @param wiRunningStatus è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | */ |
| | | public void setWiRunningStatus(Byte wiRunningStatus) { |
| | | this.wiRunningStatus = wiRunningStatus; |
| | | } |
| | | |
| | | /** |
| | | * è·ååçåå· |
| | | * |
| | | * @return WI_Brand_Model - åçåå· |
| | | */ |
| | | public String getWiBrandModel() { |
| | | return wiBrandModel; |
| | | } |
| | | |
| | | /** |
| | | * 设置åçåå· |
| | | * |
| | | * @param wiBrandModel åçåå· |
| | | */ |
| | | public void setWiBrandModel(String wiBrandModel) { |
| | | this.wiBrandModel = wiBrandModel == null ? null : wiBrandModel.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤åæ° |
| | | * |
| | | * @return WI_Device_Param - 设å¤åæ° |
| | | */ |
| | | public String getWiDeviceParam() { |
| | | return wiDeviceParam; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤åæ° |
| | | * |
| | | * @param wiDeviceParam 设å¤åæ° |
| | | */ |
| | | public void setWiDeviceParam(String wiDeviceParam) { |
| | | this.wiDeviceParam = wiDeviceParam == null ? null : wiDeviceParam.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | * |
| | | * @return WI_Ownership - æææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | */ |
| | | public Byte getWiOwnership() { |
| | | return wiOwnership; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®æææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | * |
| | | * @param wiOwnership æææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | */ |
| | | public void setWiOwnership(Byte wiOwnership) { |
| | | this.wiOwnership = wiOwnership; |
| | | } |
| | | |
| | | /** |
| | | * @return WI_QR_Code |
| | | */ |
| | | public String getWiQrCode() { |
| | | return wiQrCode; |
| | | } |
| | | |
| | | /** |
| | | * @param wiQrCode |
| | | */ |
| | | public void setWiQrCode(String wiQrCode) { |
| | | this.wiQrCode = wiQrCode == null ? null : wiQrCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | * |
| | | * @return WI_Other_QR_Code - å
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | */ |
| | | public String getWiOtherQrCode() { |
| | | return wiOtherQrCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置å
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | * |
| | | * @param wiOtherQrCode å
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | */ |
| | | public void setWiOtherQrCode(String wiOtherQrCode) { |
| | | this.wiOtherQrCode = wiOtherQrCode == null ? null : wiOtherQrCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return WI_Create_Time |
| | | */ |
| | | public Date getWiCreateTime() { |
| | | return wiCreateTime; |
| | | } |
| | | |
| | | /** |
| | | * @param wiCreateTime |
| | | */ |
| | | public void setWiCreateTime(Date wiCreateTime) { |
| | | this.wiCreateTime = wiCreateTime; |
| | | } |
| | | |
| | | /** |
| | | * @return WI_Update_Time |
| | | */ |
| | | public Date getWiUpdateTime() { |
| | | return wiUpdateTime; |
| | | } |
| | | |
| | | /** |
| | | * @param wiUpdateTime |
| | | */ |
| | | public void setWiUpdateTime(Date wiUpdateTime) { |
| | | this.wiUpdateTime = wiUpdateTime; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds1.entity; |
| | | |
| | | import java.util.Date; |
| | | import javax.persistence.*; |
| | | |
| | | @Table(name = "di_t_treatment_device_info") |
| | | public class TreatmentDeviceInfo implements BaseDevice { |
| | | @Id |
| | | @Column(name = "PI_ID") |
| | | private Integer piId; |
| | | |
| | | /** |
| | | * æ²»ç设å¤ç¼å· |
| | | */ |
| | | @Column(name = "PI_Device_Code") |
| | | private String piDeviceCode; |
| | | |
| | | /** |
| | | * åå设æ½åç§° |
| | | */ |
| | | @Column(name = "PI_Name") |
| | | private String piName; |
| | | |
| | | /** |
| | | * æå±åºæ¯id |
| | | */ |
| | | @Column(name = "PI_Scene_GUID") |
| | | private String piSceneGuid; |
| | | |
| | | /** |
| | | * åºæ¯ç±»åid |
| | | */ |
| | | @Column(name = "PI_Scene_Type_Id") |
| | | private Byte piSceneTypeId; |
| | | |
| | | /** |
| | | * 设æ½ç±»åidï¼æ ¹æ®åºæ¯ç±»åä¸åé项ä¸å |
| | | */ |
| | | @Column(name = "PI_Type_Id") |
| | | private Byte piTypeId; |
| | | |
| | | /** |
| | | * 设å¤åç±»å |
| | | */ |
| | | @Column(name = "PI_Subtype_Id") |
| | | private Byte piSubtypeId; |
| | | |
| | | /** |
| | | * 设å¤ä¾åºå |
| | | */ |
| | | @Column(name = "PI_Supplier") |
| | | private String piSupplier; |
| | | |
| | | /** |
| | | * è¿ç»´å |
| | | */ |
| | | @Column(name = "PI_Maintainer") |
| | | private String piMaintainer; |
| | | |
| | | /** |
| | | * è¿ç»´é¢æ¬¡(0:æ¯å¨ä¸æ¬¡;1:æ¯æä¸æ¬¡;2:æ¯å£åº¦ä¸æ¬¡;3:å年䏿¬¡) |
| | | */ |
| | | @Column(name = "PI_Maintain_Frequency") |
| | | private Byte piMaintainFrequency; |
| | | |
| | | /** |
| | | * è¿ç»´äººå |
| | | */ |
| | | @Column(name = "PI_Maintain_Staff") |
| | | private String piMaintainStaff; |
| | | |
| | | /** |
| | | * è¿ç»´èç³»æ¹å¼ |
| | | */ |
| | | @Column(name = "PI_Maintain_Tel") |
| | | private String piMaintainTel; |
| | | |
| | | /** |
| | | * è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | */ |
| | | @Column(name = "PI_Running_Status") |
| | | private Byte piRunningStatus; |
| | | |
| | | /** |
| | | * åçåå· |
| | | */ |
| | | @Column(name = "PI_Brand_Model") |
| | | private String piBrandModel; |
| | | |
| | | /** |
| | | * 设å¤åæ° |
| | | */ |
| | | @Column(name = "PI_Device_Param") |
| | | private String piDeviceParam; |
| | | |
| | | /** |
| | | * æææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | */ |
| | | @Column(name = "PI_Ownership") |
| | | private Byte piOwnership; |
| | | |
| | | @Column(name = "PI_QR_Code") |
| | | private String piQrCode; |
| | | |
| | | /** |
| | | * å
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | */ |
| | | @Column(name = "PI_Other_QR_Code") |
| | | private String piOtherQrCode; |
| | | |
| | | @Column(name = "PI_Create_Time") |
| | | private Date piCreateTime; |
| | | |
| | | @Column(name = "PI_Update_Time") |
| | | private Date piUpdateTime; |
| | | |
| | | /** |
| | | * @return PI_ID |
| | | */ |
| | | public Integer getPiId() { |
| | | return piId; |
| | | } |
| | | |
| | | /** |
| | | * @param piId |
| | | */ |
| | | public void setPiId(Integer piId) { |
| | | this.piId = piId; |
| | | } |
| | | |
| | | /** |
| | | * è·åæ²»ç设å¤ç¼å· |
| | | * |
| | | * @return PI_Device_Code - æ²»ç设å¤ç¼å· |
| | | */ |
| | | public String getPiDeviceCode() { |
| | | return piDeviceCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置治ç设å¤ç¼å· |
| | | * |
| | | * @param piDeviceCode æ²»ç设å¤ç¼å· |
| | | */ |
| | | public void setPiDeviceCode(String piDeviceCode) { |
| | | this.piDeviceCode = piDeviceCode == null ? null : piDeviceCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·ååå设æ½åç§° |
| | | * |
| | | * @return PI_Name - åå设æ½åç§° |
| | | */ |
| | | public String getPiName() { |
| | | return piName; |
| | | } |
| | | |
| | | /** |
| | | * 设置åå设æ½åç§° |
| | | * |
| | | * @param piName åå设æ½åç§° |
| | | */ |
| | | public void setPiName(String piName) { |
| | | this.piName = piName == null ? null : piName.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæå±åºæ¯id |
| | | * |
| | | * @return PI_Scene_GUID - æå±åºæ¯id |
| | | */ |
| | | public String getPiSceneGuid() { |
| | | return piSceneGuid; |
| | | } |
| | | |
| | | /** |
| | | * 设置æå±åºæ¯id |
| | | * |
| | | * @param piSceneGuid æå±åºæ¯id |
| | | */ |
| | | public void setPiSceneGuid(String piSceneGuid) { |
| | | this.piSceneGuid = piSceneGuid == null ? null : piSceneGuid.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·ååºæ¯ç±»åid |
| | | * |
| | | * @return PI_Scene_Type_Id - åºæ¯ç±»åid |
| | | */ |
| | | public Byte getPiSceneTypeId() { |
| | | return piSceneTypeId; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®åºæ¯ç±»åid |
| | | * |
| | | * @param piSceneTypeId åºæ¯ç±»åid |
| | | */ |
| | | public void setPiSceneTypeId(Byte piSceneTypeId) { |
| | | this.piSceneTypeId = piSceneTypeId; |
| | | } |
| | | |
| | | /** |
| | | * è·å设æ½ç±»åidï¼æ ¹æ®åºæ¯ç±»åä¸åé项ä¸å |
| | | * |
| | | * @return PI_Type_Id - 设æ½ç±»åidï¼æ ¹æ®åºæ¯ç±»åä¸åé项ä¸å |
| | | */ |
| | | public Byte getPiTypeId() { |
| | | return piTypeId; |
| | | } |
| | | |
| | | /** |
| | | * 设置设æ½ç±»åidï¼æ ¹æ®åºæ¯ç±»åä¸åé项ä¸å |
| | | * |
| | | * @param piTypeId 设æ½ç±»åidï¼æ ¹æ®åºæ¯ç±»åä¸åé项ä¸å |
| | | */ |
| | | public void setPiTypeId(Byte piTypeId) { |
| | | this.piTypeId = piTypeId; |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤åç±»å |
| | | * |
| | | * @return PI_Subtype_Id - 设å¤åç±»å |
| | | */ |
| | | public Byte getPiSubtypeId() { |
| | | return piSubtypeId; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤åç±»å |
| | | * |
| | | * @param piSubtypeId 设å¤åç±»å |
| | | */ |
| | | public void setPiSubtypeId(Byte piSubtypeId) { |
| | | this.piSubtypeId = piSubtypeId; |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤ä¾åºå |
| | | * |
| | | * @return PI_Supplier - 设å¤ä¾åºå |
| | | */ |
| | | public String getPiSupplier() { |
| | | return piSupplier; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤ä¾åºå |
| | | * |
| | | * @param piSupplier 设å¤ä¾åºå |
| | | */ |
| | | public void setPiSupplier(String piSupplier) { |
| | | this.piSupplier = piSupplier == null ? null : piSupplier.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿ç»´å |
| | | * |
| | | * @return PI_Maintainer - è¿ç»´å |
| | | */ |
| | | public String getPiMaintainer() { |
| | | return piMaintainer; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿ç»´å |
| | | * |
| | | * @param piMaintainer è¿ç»´å |
| | | */ |
| | | public void setPiMaintainer(String piMaintainer) { |
| | | this.piMaintainer = piMaintainer == null ? null : piMaintainer.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿ç»´é¢æ¬¡(0:æ¯å¨ä¸æ¬¡;1:æ¯æä¸æ¬¡;2:æ¯å£åº¦ä¸æ¬¡;3:å年䏿¬¡) |
| | | * |
| | | * @return PI_Maintain_Frequency - è¿ç»´é¢æ¬¡(0:æ¯å¨ä¸æ¬¡;1:æ¯æä¸æ¬¡;2:æ¯å£åº¦ä¸æ¬¡;3:å年䏿¬¡) |
| | | */ |
| | | public Byte getPiMaintainFrequency() { |
| | | return piMaintainFrequency; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿ç»´é¢æ¬¡(0:æ¯å¨ä¸æ¬¡;1:æ¯æä¸æ¬¡;2:æ¯å£åº¦ä¸æ¬¡;3:å年䏿¬¡) |
| | | * |
| | | * @param piMaintainFrequency è¿ç»´é¢æ¬¡(0:æ¯å¨ä¸æ¬¡;1:æ¯æä¸æ¬¡;2:æ¯å£åº¦ä¸æ¬¡;3:å年䏿¬¡) |
| | | */ |
| | | public void setPiMaintainFrequency(Byte piMaintainFrequency) { |
| | | this.piMaintainFrequency = piMaintainFrequency; |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿ç»´äººå |
| | | * |
| | | * @return PI_Maintain_Staff - è¿ç»´äººå |
| | | */ |
| | | public String getPiMaintainStaff() { |
| | | return piMaintainStaff; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿ç»´äººå |
| | | * |
| | | * @param piMaintainStaff è¿ç»´äººå |
| | | */ |
| | | public void setPiMaintainStaff(String piMaintainStaff) { |
| | | this.piMaintainStaff = piMaintainStaff == null ? null : piMaintainStaff.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿ç»´èç³»æ¹å¼ |
| | | * |
| | | * @return PI_Maintain_Tel - è¿ç»´èç³»æ¹å¼ |
| | | */ |
| | | public String getPiMaintainTel() { |
| | | return piMaintainTel; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿ç»´èç³»æ¹å¼ |
| | | * |
| | | * @param piMaintainTel è¿ç»´èç³»æ¹å¼ |
| | | */ |
| | | public void setPiMaintainTel(String piMaintainTel) { |
| | | this.piMaintainTel = piMaintainTel == null ? null : piMaintainTel.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | * |
| | | * @return PI_Running_Status - è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | */ |
| | | public Byte getPiRunningStatus() { |
| | | return piRunningStatus; |
| | | } |
| | | |
| | | /** |
| | | * 设置è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | * |
| | | * @param piRunningStatus è¿è¡ç¶æ(0:æªèç½;1:ä¸çº¿ä¸;2:ä¸çº¿;3:æé¤) |
| | | */ |
| | | public void setPiRunningStatus(Byte piRunningStatus) { |
| | | this.piRunningStatus = piRunningStatus; |
| | | } |
| | | |
| | | /** |
| | | * è·ååçåå· |
| | | * |
| | | * @return PI_Brand_Model - åçåå· |
| | | */ |
| | | public String getPiBrandModel() { |
| | | return piBrandModel; |
| | | } |
| | | |
| | | /** |
| | | * 设置åçåå· |
| | | * |
| | | * @param piBrandModel åçåå· |
| | | */ |
| | | public void setPiBrandModel(String piBrandModel) { |
| | | this.piBrandModel = piBrandModel == null ? null : piBrandModel.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·å设å¤åæ° |
| | | * |
| | | * @return PI_Device_Param - 设å¤åæ° |
| | | */ |
| | | public String getPiDeviceParam() { |
| | | return piDeviceParam; |
| | | } |
| | | |
| | | /** |
| | | * 设置设å¤åæ° |
| | | * |
| | | * @param piDeviceParam 设å¤åæ° |
| | | */ |
| | | public void setPiDeviceParam(String piDeviceParam) { |
| | | this.piDeviceParam = piDeviceParam == null ? null : piDeviceParam.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åæææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | * |
| | | * @return PI_Ownership - æææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | */ |
| | | public Byte getPiOwnership() { |
| | | return piOwnership; |
| | | } |
| | | |
| | | /** |
| | | * è®¾ç½®æææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | * |
| | | * @param piOwnership æææï¼0:è´ä¹°;1:ç§èµï¼ |
| | | */ |
| | | public void setPiOwnership(Byte piOwnership) { |
| | | this.piOwnership = piOwnership; |
| | | } |
| | | |
| | | /** |
| | | * @return PI_QR_Code |
| | | */ |
| | | public String getPiQrCode() { |
| | | return piQrCode; |
| | | } |
| | | |
| | | /** |
| | | * @param piQrCode |
| | | */ |
| | | public void setPiQrCode(String piQrCode) { |
| | | this.piQrCode = piQrCode == null ? null : piQrCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * è·åå
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | * |
| | | * @return PI_Other_QR_Code - å
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | */ |
| | | public String getPiOtherQrCode() { |
| | | return piOtherQrCode; |
| | | } |
| | | |
| | | /** |
| | | * 设置å
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | * |
| | | * @param piOtherQrCode å
¶ä»ç¬¬ä¸æ¹æè®¾å¤èªå¸¦äºç»´ç |
| | | */ |
| | | public void setPiOtherQrCode(String piOtherQrCode) { |
| | | this.piOtherQrCode = piOtherQrCode == null ? null : piOtherQrCode.trim(); |
| | | } |
| | | |
| | | /** |
| | | * @return PI_Create_Time |
| | | */ |
| | | public Date getPiCreateTime() { |
| | | return piCreateTime; |
| | | } |
| | | |
| | | /** |
| | | * @param piCreateTime |
| | | */ |
| | | public void setPiCreateTime(Date piCreateTime) { |
| | | this.piCreateTime = piCreateTime; |
| | | } |
| | | |
| | | /** |
| | | * @return PI_Update_Time |
| | | */ |
| | | public Date getPiUpdateTime() { |
| | | return piUpdateTime; |
| | | } |
| | | |
| | | /** |
| | | * @param piUpdateTime |
| | | */ |
| | | public void setPiUpdateTime(Date piUpdateTime) { |
| | | this.piUpdateTime = piUpdateTime; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds1.mapper; |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DeviceStatus; |
| | | import cn.flightfeather.supervision.domain.util.MyMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | @Mapper |
| | | public interface DeviceStatusMapper extends MyMapper<DeviceStatus> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds1.mapper; |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.MonitorDeviceInfo; |
| | | import cn.flightfeather.supervision.domain.util.MyMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | @Mapper |
| | | public interface MonitorDeviceInfoMapper extends MyMapper<MonitorDeviceInfo> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds1.mapper; |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.ProductionDeviceInfo; |
| | | import cn.flightfeather.supervision.domain.util.MyMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | @Mapper |
| | | public interface ProductionDeviceInfoMapper extends MyMapper<ProductionDeviceInfo> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.domain.ds1.mapper; |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.TreatmentDeviceInfo; |
| | | import cn.flightfeather.supervision.domain.util.MyMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | @Mapper |
| | | public interface TreatmentDeviceInfoMapper extends MyMapper<TreatmentDeviceInfo> { |
| | | } |
| | |
| | | package cn.flightfeather.supervision.domain.ds1.repository |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DeviceInfo |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DeviceLocation |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.DeviceInfoMapper |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.DeviceLocationMapper |
| | | import cn.flightfeather.supervision.common.utils.Constant |
| | | import cn.flightfeather.supervision.domain.ds1.entity.* |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.DeviceStatusMapper |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.MonitorDeviceInfoMapper |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.TreatmentDeviceInfoMapper |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.ProductionDeviceInfoMapper |
| | | import org.springframework.stereotype.Repository |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Repository |
| | | class DeviceRep( |
| | | private val deviceInfoMapper: DeviceInfoMapper, |
| | | private val deviceLocationMapper: DeviceLocationMapper, |
| | | private val monitorDeviceInfoMapper: MonitorDeviceInfoMapper, |
| | | private val treatmentDeviceInfoMapper: TreatmentDeviceInfoMapper, |
| | | private val productionDeviceInfoMapper: ProductionDeviceInfoMapper, |
| | | private val deviceStatusMapper: DeviceStatusMapper, |
| | | ) { |
| | | /***--DeviceInfo--***/ |
| | | fun findDevice(sceneId: String): DeviceInfo? { |
| | | return deviceInfoMapper.selectByPrimaryKey(sceneId) |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤ä¿¡æ¯ |
| | | * @param deviceId 设å¤ä¸»é®id |
| | | * @param type 设å¤ç±»å |
| | | * @return 设å¤ä¿¡æ¯ |
| | | */ |
| | | fun findDevice(deviceId: Int, type: Constant.DeviceType): BaseDevice? { |
| | | return when (type) { |
| | | Constant.DeviceType.MONITOR_DEVICE -> monitorDeviceInfoMapper.selectByPrimaryKey(deviceId) |
| | | Constant.DeviceType.TREATMENT_DEVICE -> treatmentDeviceInfoMapper.selectByPrimaryKey(deviceId) |
| | | Constant.DeviceType.PRODUCTION_DEVICE -> productionDeviceInfoMapper.selectByPrimaryKey(deviceId) |
| | | } |
| | | } |
| | | |
| | | fun findDeviceList(sceneId: String): List<DeviceInfo> { |
| | | return findDeviceList(DeviceInfo().apply { diSceneGuid = sceneId }) |
| | | /** |
| | | * æ¥è¯¢è®¾å¤ä¿¡æ¯ |
| | | * @param sceneId åºæ¯ä¸»é®id |
| | | * @param type 设å¤ç±»å |
| | | * @return 设å¤ä¿¡æ¯ |
| | | */ |
| | | fun findDeviceList(sceneId: String, type: Constant.DeviceType): List<BaseDevice> { |
| | | return when (type) { |
| | | Constant.DeviceType.MONITOR_DEVICE -> findDeviceList(MonitorDeviceInfo().apply { diSceneGuid = sceneId }) |
| | | Constant.DeviceType.TREATMENT_DEVICE -> findDeviceList(TreatmentDeviceInfo() |
| | | .apply { piSceneGuid = sceneId }) |
| | | Constant.DeviceType.PRODUCTION_DEVICE -> findDeviceList(ProductionDeviceInfo() |
| | | .apply { wiSceneGuid = sceneId }) |
| | | } |
| | | } |
| | | fun findDeviceList(monitorDeviceInfo: MonitorDeviceInfo): List<MonitorDeviceInfo> { |
| | | return monitorDeviceInfoMapper.select(monitorDeviceInfo) |
| | | } |
| | | fun findDeviceList(treatmentDeviceInfo: TreatmentDeviceInfo): List<TreatmentDeviceInfo> { |
| | | return treatmentDeviceInfoMapper.select(treatmentDeviceInfo) |
| | | } |
| | | fun findDeviceList(productionDeviceInfo: ProductionDeviceInfo): List<ProductionDeviceInfo> { |
| | | return productionDeviceInfoMapper.select(productionDeviceInfo) |
| | | } |
| | | |
| | | fun findDeviceList(deviceInfo: DeviceInfo): List<DeviceInfo> { |
| | | return deviceInfoMapper.select(deviceInfo) |
| | | /** |
| | | * æå
¥è®¾å¤ä¿¡æ¯ |
| | | */ |
| | | fun insertDevice(monitorDeviceInfo: MonitorDeviceInfo): Int { |
| | | return monitorDeviceInfoMapper.insert(monitorDeviceInfo) |
| | | } |
| | | fun insertDevice(treatmentDeviceInfo: TreatmentDeviceInfo): Int { |
| | | return treatmentDeviceInfoMapper.insert(treatmentDeviceInfo) |
| | | } |
| | | fun insertDevice(productionDeviceInfo: ProductionDeviceInfo): Int { |
| | | return productionDeviceInfoMapper.insert(productionDeviceInfo) |
| | | } |
| | | |
| | | fun insertDevice(deviceInfo: DeviceInfo): Int { |
| | | return deviceInfoMapper.insert(deviceInfo) |
| | | /** |
| | | * æ´æ°è®¾å¤ä¿¡æ¯ |
| | | */ |
| | | fun updateDevice(monitorDeviceInfo: MonitorDeviceInfo): Int { |
| | | return monitorDeviceInfoMapper.updateByPrimaryKey(monitorDeviceInfo) |
| | | } |
| | | fun updateDevice(treatmentDeviceInfo: TreatmentDeviceInfo): Int { |
| | | return treatmentDeviceInfoMapper.updateByPrimaryKey(treatmentDeviceInfo) |
| | | } |
| | | fun updateDevice(productionDeviceInfo: ProductionDeviceInfo): Int { |
| | | return productionDeviceInfoMapper.updateByPrimaryKey(productionDeviceInfo) |
| | | } |
| | | |
| | | fun updateDevice(deviceInfo: DeviceInfo): Int { |
| | | return deviceInfoMapper.updateByPrimaryKey(deviceInfo) |
| | | /***--DeviceStatus--***/ |
| | | fun findStatus(id: Int): DeviceStatus? { |
| | | return deviceStatusMapper.selectByPrimaryKey(id) |
| | | } |
| | | |
| | | /***--DeviceLocation--***/ |
| | | fun findLocation(id: Int): DeviceLocation? { |
| | | return deviceLocationMapper.selectByPrimaryKey(id) |
| | | fun findStatuses(deviceId: Int): List<DeviceStatus> { |
| | | return findStatuses(DeviceStatus() |
| | | .apply { dlDeviceId = deviceId }) |
| | | } |
| | | |
| | | fun findLocations(deviceId: Int): List<DeviceLocation> { |
| | | return findLocations(DeviceLocation().apply { dlDeviceId = deviceId }) |
| | | fun findStatuses(location: DeviceStatus): List<DeviceStatus> { |
| | | return deviceStatusMapper.select(location) |
| | | } |
| | | |
| | | fun findLocations(location: DeviceLocation): List<DeviceLocation> { |
| | | return deviceLocationMapper.select(location) |
| | | fun insertStatus(location: DeviceStatus): Int { |
| | | return deviceStatusMapper.insert(location) |
| | | } |
| | | |
| | | fun insertLocation(location: DeviceLocation): Int { |
| | | return deviceLocationMapper.insert(location) |
| | | } |
| | | |
| | | fun updateLocation(location: DeviceLocation): Int { |
| | | return deviceLocationMapper.updateByPrimaryKey(location) |
| | | fun updateStatus(location: DeviceStatus): Int { |
| | | return deviceStatusMapper.updateByPrimaryKey(location) |
| | | } |
| | | } |
| | |
| | | package cn.flightfeather.supervision.lightshare.service |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DeviceInfo |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DeviceLocation |
| | | import cn.flightfeather.supervision.common.utils.Constant |
| | | import cn.flightfeather.supervision.domain.ds1.entity.BaseDevice |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DeviceStatus |
| | | import org.springframework.web.multipart.MultipartFile |
| | | |
| | | interface DeviceService { |
| | | |
| | | fun findDevices(sceneId: String): List<DeviceInfo> |
| | | /** |
| | | * æ¥è¯¢åºæ¯è®¾å¤ |
| | | * @param sceneId åºæ¯id |
| | | * @param deviceType 设å¤ç±»å |
| | | * @return 设å¤ä¿¡æ¯ |
| | | */ |
| | | fun findDevices(sceneId: String, deviceType: Constant.DeviceType): List<BaseDevice> |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤ä¿¡æ¯ |
| | | */ |
| | | fun insertDevice(deviceInfo: DeviceInfo): Int |
| | | fun insertDevice(deviceInfo: String, deviceType: Constant.DeviceType): Int |
| | | |
| | | /** |
| | | * æ´æ°è®¾å¤ä¿¡æ¯ |
| | | */ |
| | | fun updateDevice(deviceInfo: DeviceInfo): Int |
| | | fun updateDevice(deviceInfo: String, deviceType: Constant.DeviceType): Int |
| | | |
| | | fun findDeviceLocations(deviceId: Int): List<DeviceLocation> |
| | | /** |
| | | * æ¥è¯¢è®¾å¤ç¶æåæ´ä¿¡æ¯ |
| | | */ |
| | | fun findDeviceLocations(sceneId: String?, deviceId: Int, deviceType: Constant.DeviceType): List<DeviceStatus> |
| | | |
| | | /** |
| | | *æ°å¢è®¾å¤ä½ç½®åæ´ä¿¡æ¯ |
| | |
| | | package cn.flightfeather.supervision.lightshare.service |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Scense |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Userinfo |
| | | import cn.flightfeather.supervision.domain.ds2.entity.UserMap |
| | | import cn.flightfeather.supervision.lightshare.vo.AreaVo |
| | | import cn.flightfeather.supervision.lightshare.vo.DeviceMapVo |
| | |
| | | */ |
| | | fun getSceneByTZId(tzUserId: String): Scense? |
| | | |
| | | fun autoCreateMap() |
| | | fun autoCreateMap(userList: List<Userinfo?>) |
| | | |
| | | fun fetchDeviceMap(areaVo: AreaVo): List<DeviceMapVo?> |
| | | } |
| | |
| | | import cn.flightfeather.supervision.common.utils.DateUtil |
| | | import cn.flightfeather.supervision.common.utils.FileUtil |
| | | import cn.flightfeather.supervision.common.utils.JsonUtil |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DeviceInfo |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DeviceLocation |
| | | import cn.flightfeather.supervision.domain.ds1.entity.* |
| | | import cn.flightfeather.supervision.domain.ds1.repository.DeviceRep |
| | | import cn.flightfeather.supervision.lightshare.service.DeviceService |
| | | import com.google.gson.Gson |
| | | import org.springframework.beans.factory.annotation.Value |
| | | import org.springframework.stereotype.Service |
| | | import org.springframework.web.multipart.MultipartFile |
| | | import java.util.* |
| | |
| | | * @author feiyu02 |
| | | */ |
| | | @Service |
| | | class DeviceServiceImpl(private val deviceRep: DeviceRep) : DeviceService { |
| | | class DeviceServiceImpl( |
| | | private val deviceRep: DeviceRep, |
| | | @Value("\${filePath}") var filePath: String, |
| | | @Value("\${imgPath}") var imgPath: String, |
| | | ) : DeviceService { |
| | | |
| | | companion object{ |
| | | private const val BASE_IMG_PATH = "${Constant.DEFAULT_FILE_PATH}/images/" |
| | | override fun findDevices(sceneId: String, deviceType: Constant.DeviceType): List<BaseDevice> { |
| | | return deviceRep.findDeviceList(sceneId, deviceType) |
| | | } |
| | | |
| | | override fun findDevices(sceneId: String): List<DeviceInfo> { |
| | | return deviceRep.findDeviceList(sceneId) |
| | | override fun insertDevice(deviceInfo: String, deviceType: Constant.DeviceType): Int { |
| | | return when (deviceType) { |
| | | Constant.DeviceType.MONITOR_DEVICE -> { |
| | | val info = Gson().fromJson(deviceInfo, MonitorDeviceInfo::class.java) |
| | | info.diCreateTime = Date() |
| | | deviceRep.insertDevice(info) |
| | | } |
| | | Constant.DeviceType.TREATMENT_DEVICE -> { |
| | | val info = Gson().fromJson(deviceInfo, TreatmentDeviceInfo::class.java) |
| | | info.piCreateTime = Date() |
| | | deviceRep.insertDevice(info) |
| | | } |
| | | Constant.DeviceType.PRODUCTION_DEVICE -> { |
| | | val info = Gson().fromJson(deviceInfo, ProductionDeviceInfo::class.java) |
| | | info.wiCreateTime = Date() |
| | | deviceRep.insertDevice(info) |
| | | } |
| | | } |
| | | } |
| | | |
| | | override fun insertDevice(deviceInfo: DeviceInfo): Int { |
| | | return deviceRep.insertDevice(deviceInfo) |
| | | override fun updateDevice(deviceInfo: String, deviceType: Constant.DeviceType): Int { |
| | | return when (deviceType) { |
| | | Constant.DeviceType.MONITOR_DEVICE -> { |
| | | val info = Gson().fromJson(deviceInfo, MonitorDeviceInfo::class.java) |
| | | deviceRep.updateDevice(info) |
| | | } |
| | | Constant.DeviceType.TREATMENT_DEVICE -> { |
| | | val info = Gson().fromJson(deviceInfo, TreatmentDeviceInfo::class.java) |
| | | deviceRep.updateDevice(info) |
| | | } |
| | | Constant.DeviceType.PRODUCTION_DEVICE -> { |
| | | val info = Gson().fromJson(deviceInfo, ProductionDeviceInfo::class.java) |
| | | deviceRep.updateDevice(info) |
| | | } |
| | | } |
| | | } |
| | | |
| | | override fun updateDevice(deviceInfo: DeviceInfo): Int { |
| | | return deviceRep.updateDevice(deviceInfo) |
| | | } |
| | | |
| | | override fun findDeviceLocations(deviceId: Int): List<DeviceLocation> { |
| | | return deviceRep.findLocations(deviceId) |
| | | override fun findDeviceLocations( |
| | | sceneId: String?, |
| | | deviceId: Int, |
| | | deviceType: Constant.DeviceType, |
| | | ): List<DeviceStatus> { |
| | | return emptyList() |
| | | } |
| | | |
| | | override fun insertDeviceLocation(deviceLocation: String, files: Array<MultipartFile>): Int { |
| | | val obj = JsonUtil.gson.fromJson(deviceLocation, DeviceLocation::class.java) |
| | | val obj = JsonUtil.gson.fromJson(deviceLocation, DeviceStatus::class.java) |
| | | val time = DateUtil.DateToString(obj.dlCreateTime, DateUtil.DateStyle.YYYY_MM_DD) |
| | | val picPath = FileUtil.saveFiles(files, BASE_IMG_PATH, "device/${obj.dlId}/${time}") |
| | | val picPath = FileUtil.saveFiles(files, imgPath, "device/${obj.dlId}/${time}") |
| | | obj.dlPicUrl = picPath.joinToString(";") |
| | | return deviceRep.insertLocation(obj) |
| | | obj.dlCreateTime = Date() |
| | | return deviceRep.insertStatus(obj) |
| | | } |
| | | |
| | | override fun updateDeviceLocation( |
| | |
| | | files: Array<MultipartFile>, |
| | | ): Int { |
| | | // è·åæ´æ°ä¿¡æ¯ |
| | | val obj = JsonUtil.gson.fromJson(deviceLocation, DeviceLocation::class.java) |
| | | val obj = JsonUtil.gson.fromJson(deviceLocation, DeviceStatus::class.java) |
| | | |
| | | // è·ååä½ç½®ä¿¡æ¯ï¼å é¤å¾çè·¯å¾å对åºå¾ç |
| | | val dL = deviceRep.findLocation(obj.dlId) ?: throw BizException("该设å¤ä½ç½®ä¿¡æ¯ä¸åå¨ï¼æ æ³ä¿®æ¹") |
| | | val dL = deviceRep.findStatus(obj.dlId) ?: throw BizException("该设å¤ä½ç½®ä¿¡æ¯ä¸åå¨ï¼æ æ³ä¿®æ¹") |
| | | val oldImg = dL.dlPicUrl.split(";").toMutableList() |
| | | deleteImg.forEach { |
| | | if (oldImg.contains(it)) { |
| | | if (FileUtil.delFile(BASE_IMG_PATH + it)) { |
| | | if (FileUtil.delFile(imgPath + it)) { |
| | | oldImg.remove(it) |
| | | } |
| | | } |
| | |
| | | |
| | | // ä¿åæ°å¢å¾ç |
| | | val time = DateUtil.DateToString(obj.dlCreateTime, DateUtil.DateStyle.YYYY_MM_DD) |
| | | val picPath = FileUtil.saveFiles(files, BASE_IMG_PATH, "device/${obj.dlId}/${time}") |
| | | val picPath = FileUtil.saveFiles(files, imgPath, "device/${obj.dlId}/${time}") |
| | | |
| | | oldImg.addAll(picPath) |
| | | obj.dlPicUrl = oldImg.joinToString(";") |
| | | return deviceRep.updateLocation(obj) |
| | | return deviceRep.updateStatus(obj) |
| | | } |
| | | } |
| | |
| | | import com.fasterxml.jackson.databind.ObjectMapper |
| | | import org.slf4j.Logger |
| | | import org.slf4j.LoggerFactory |
| | | import org.springframework.beans.factory.annotation.Value |
| | | import java.io.File |
| | | |
| | | |
| | | @Service |
| | | class MediafileServiceImpl(val mediafileMapper: MediafileMapper) : MediafileService { |
| | | class MediafileServiceImpl( |
| | | val mediafileMapper: MediafileMapper, |
| | | @Value("\${filePath}") var filePath: String, |
| | | @Value("\${imgPath}") var imgPath: String, |
| | | ) : MediafileService { |
| | | |
| | | private val logging: Logger = LoggerFactory.getLogger(MediafileServiceImpl::class.java) |
| | | |
| | |
| | | val path = mediafile.extension1 |
| | | //File("/Users/liwei/images/${path}/${id}.jpg").delete() |
| | | //å
å å¾ç |
| | | val f = File("${Constant.DEFAULT_FILE_PATH}/images/$path/$id.jpg") |
| | | val f = File("${Constant.DEFAULT_FILE_PATH}/images/$path/$id.jpg") |
| | | if (f.exists()) { |
| | | f.delete() |
| | | } |
| | |
| | | return userMapRep.findFromSupervision(tzUserId) |
| | | } |
| | | |
| | | override fun autoCreateMap() { |
| | | override fun autoCreateMap(userList: List<Userinfo?>) { |
| | | // éæ©éè¦å¤ççè´¦æ· |
| | | val userList = userinfoMapper.selectByExample(Example(Userinfo::class.java).apply { |
| | | createCriteria().andEqualTo("remark", "徿±åº") |
| | | }) |
| | | // val userList = userinfoMapper.selectByExample(Example(Userinfo::class.java).apply { |
| | | // createCriteria().andEqualTo("remark", "徿±åº") |
| | | // }) |
| | | userList.forEach { |
| | | it ?: return@forEach |
| | | // æ¥æ¾æ¯å¦å·²ç»æè´¦æ·å¹é
è®°å½ |
| | | val records = userMapMapper.selectByExample(Example(UserMap::class.java).apply { |
| | | createCriteria().andEqualTo("svUserId", it.guid) |
| | |
| | | tzUserName = tzU.realname |
| | | svUserId = it.guid |
| | | svUserName = it.realname |
| | | umCreateTime = Date() |
| | | }) |
| | | } |
| | | } |
| | |
| | | svUserName = it.svUserName |
| | | tzUserId = it.tzUserId |
| | | tzUserName = it.tzUserName |
| | | createTime = it.createTime |
| | | }) |
| | | } |
| | | return res |
| | |
| | | svUserName = it.svUserName |
| | | tzUserId = it.tzUserId |
| | | tzUserName = it.tzUserName |
| | | createTime = it.createTime |
| | | }) |
| | | } |
| | | return res |
| | |
| | | svUserName = it.svUserName |
| | | tzUserId = it.tzUserId |
| | | tzUserName = it.tzUserName |
| | | createTime = it.createTime |
| | | }) |
| | | } |
| | | return res |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.lightshare.vo |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DeviceStatus |
| | | |
| | | /** |
| | | * |
| | | * @date 2024/8/13 |
| | | * @author feiyu02 |
| | | */ |
| | | class DeviceStatusVo : DeviceStatus() { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.lightshare.vo |
| | | |
| | | import cn.flightfeather.supervision.common.utils.Constant |
| | | import cn.flightfeather.supervision.domain.ds1.entity.MonitorDeviceInfo |
| | | import org.springframework.beans.BeanUtils |
| | | |
| | | /** |
| | | * |
| | | * @date 2024/8/13 |
| | | * @author feiyu02 |
| | | */ |
| | | class MonitorDeviceInfoVo : MonitorDeviceInfo { |
| | | constructor():super() |
| | | constructor(obj: MonitorDeviceInfo){ |
| | | BeanUtils.copyProperties(obj, this) |
| | | this.sceneType = Constant.SceneType.getByValue(this.diSceneTypeId.toString()).text |
| | | this.type |
| | | } |
| | | |
| | | // åºæ¯ç±»å |
| | | var sceneType: String? = null |
| | | // 设å¤ç±»å |
| | | var type: String? = null |
| | | // 设å¤åç±»å |
| | | var subType: String? = null |
| | | // è¿ç»´é¢æ¬¡ |
| | | var maintainFrequency: String? = null |
| | | // è¿è¡ç¶æ |
| | | var runningStatus: String? = null |
| | | // æææ |
| | | var ownership: String? = null |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.lightshare.vo |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.ProductionDeviceInfo |
| | | |
| | | /** |
| | | * |
| | | * @date 2024/8/13 |
| | | * @author feiyu02 |
| | | */ |
| | | class ProductionDeviceInfoVo: ProductionDeviceInfo() { |
| | | // åºæ¯ç±»å |
| | | var sceneType: String? = null |
| | | // 设å¤ç±»å |
| | | var type: String? = null |
| | | // 设å¤åç±»å |
| | | var subType: String? = null |
| | | // è¿è¡ç¶æ |
| | | var runningStatus: String? = null |
| | | // æææ |
| | | var ownership: String? = null |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.lightshare.vo |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.TreatmentDeviceInfo |
| | | |
| | | /** |
| | | * |
| | | * @date 2024/8/13 |
| | | * @author feiyu02 |
| | | */ |
| | | class TreatmentDeviceInfoVo : TreatmentDeviceInfo() { |
| | | // åºæ¯ç±»å |
| | | var sceneType: String? = null |
| | | // 设å¤ç±»å |
| | | var type: String? = null |
| | | // 设å¤åç±»å |
| | | var subType: String? = null |
| | | // è¿ç»´é¢æ¬¡ |
| | | var maintainFrequency: String? = null |
| | | // è¿è¡ç¶æ |
| | | var runningStatus: String? = null |
| | | // æææ |
| | | var ownership: String? = null |
| | | } |
| | |
| | | package cn.flightfeather.supervision.lightshare.web |
| | | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.DeviceInfo |
| | | import cn.flightfeather.supervision.common.utils.Constant |
| | | import cn.flightfeather.supervision.domain.ds1.entity.MonitorDeviceInfo |
| | | import cn.flightfeather.supervision.lightshare.service.DeviceService |
| | | import io.swagger.annotations.Api |
| | | import io.swagger.annotations.ApiOperation |
| | |
| | | @ApiOperation("è·ååºæ¯è®¾å¤ä¿¡æ¯") |
| | | @GetMapping |
| | | fun fetchDevice( |
| | | @ApiParam("åºæ¯id") sceneId: String, |
| | | ) = resPack { deviceService.findDevices(sceneId) } |
| | | @ApiParam("åºæ¯id") @RequestParam sceneId: String, |
| | | @ApiParam("设å¤ç±»åid") @RequestParam deviceTypeId: Byte, |
| | | ) = resPack { deviceService.findDevices(sceneId, Constant.DeviceType.fromValue(deviceTypeId)) } |
| | | |
| | | @ApiOperation("æ°å¢åºæ¯è®¾å¤ä¿¡æ¯") |
| | | @PutMapping("/upload") |
| | | fun uploadDevice( |
| | | @ApiParam("设å¤ä¿¡æ¯") deviceInfo: DeviceInfo, |
| | | ) = resPack { deviceService.insertDevice(deviceInfo) } |
| | | @ApiParam("设å¤ä¿¡æ¯") @RequestBody deviceInfo: String, |
| | | @ApiParam("设å¤ç±»åid") @RequestParam deviceTypeId: Byte, |
| | | ) = resPack { deviceService.insertDevice(deviceInfo, Constant.DeviceType.fromValue(deviceTypeId)) } |
| | | |
| | | @ApiOperation("æ´æ°åºæ¯è®¾å¤ä¿¡æ¯") |
| | | @PostMapping("/update") |
| | | fun updateDevice( |
| | | @ApiParam("设å¤ä¿¡æ¯") deviceInfo: DeviceInfo, |
| | | ) = resPack { deviceService.updateDevice(deviceInfo) } |
| | | @ApiParam("设å¤ä¿¡æ¯") @RequestBody deviceInfo: String, |
| | | @ApiParam("设å¤ç±»åid") @RequestParam deviceTypeId: Byte, |
| | | ) = resPack { deviceService.updateDevice(deviceInfo, Constant.DeviceType.fromValue(deviceTypeId)) } |
| | | |
| | | @ApiOperation("è·ååºæ¯è®¾å¤ä½ç½®åæ´ä¿¡æ¯") |
| | | @GetMapping("/status") |
| | | fun fetchDeviceLocation( |
| | | @ApiParam("åºæ¯id") @RequestParam(required = false) sceneId: String?, |
| | | @ApiParam("设å¤id") @RequestParam deviceId: Int, |
| | | @ApiParam("设å¤ç±»åid") @RequestParam deviceTypeId: Byte, |
| | | ) = resPack { deviceService.findDeviceLocations(sceneId, deviceId, Constant.DeviceType.fromValue(deviceTypeId)) } |
| | | |
| | | @ApiOperation("æ°å¢åºæ¯è®¾å¤ä½ç½®åæ´ä¿¡æ¯") |
| | | @PutMapping("/location/upload") |
| | | @PutMapping("/status/upload") |
| | | fun uploadDeviceLocation( |
| | | @ApiParam("设å¤ä½ç½®ä¿¡æ¯json") @RequestParam("location") location: String, |
| | | @ApiParam("设å¤ä½ç½®ä¿¡æ¯json") @RequestParam("status") status: String, |
| | | @ApiParam("设å¤å¾ç") @RequestPart("images") images: Array<MultipartFile>, |
| | | ) = resPack { deviceService.insertDeviceLocation(location, images) } |
| | | ) = resPack { deviceService.insertDeviceLocation(status, images) } |
| | | |
| | | @ApiOperation("æ´æ°åºæ¯è®¾å¤ä½ç½®åæ´ä¿¡æ¯") |
| | | @PutMapping("/location/update") |
| | | @PutMapping("/status/update") |
| | | fun updateDeviceLocation( |
| | | @ApiParam("设å¤ä½ç½®ä¿¡æ¯json") @RequestParam("location") location: String, |
| | | @ApiParam("å é¤ç设å¤å¾çè·¯å¾") @RequestPart("deleteImg") deleteImg: List<String>, |
| | | @ApiParam("设å¤ä½ç½®ä¿¡æ¯json") @RequestParam("status") status: String, |
| | | @ApiParam("å é¤ç设å¤å¾çè·¯å¾") @RequestParam("deleteImg") deleteImg: List<String>, |
| | | @ApiParam("设å¤å¾ç") @RequestPart("images") images: Array<MultipartFile>, |
| | | ) = resPack { deviceService.updateDeviceLocation(location, deleteImg, images) } |
| | | ) = resPack { deviceService.updateDeviceLocation(status, deleteImg, images) } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | spring: |
| | | datasource: |
| | | ds1: |
| | | #-å叿å¡å¨- |
| | | 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 |
| | | ds2: |
| | | #-å叿å¡å¨- |
| | | url: jdbc:mysql://localhost:3306/ledger?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false |
| | | username: ledger |
| | | password: ledger_fxxchackxr |
| | | |
| | | mybatis: |
| | | configuration: |
| | | log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl |
| | | |
| | | imgPath: D:/02product/04supervision/images/ |
| | | filePath: D:/02product/04supervision/files/ |
| | | mode: prohttps |
| | |
| | | username: ledger |
| | | password: ledger_fxxchackxr |
| | | |
| | | mybatis: |
| | | configuration: |
| | | log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl |
| | | |
| | | imgPath: D:/02product/04supervision/images/ |
| | | filePath: D:/02product/04supervision/files/ |
| | | mode: pro |
| | |
| | | <!-- enableSelectByExample="false" selectByExampleQueryId="false"/>--> |
| | | <!-- <table tableName="ea_t_evaluation" domainObjectName="Evaluation" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"--> |
| | | <!-- enableSelectByExample="false" selectByExampleQueryId="false"/>--> |
| | | <!-- <table tableName="sm_t_device_info" domainObjectName="DeviceInfo" enableCountByExample="false"--> |
| | | <!-- enableUpdateByExample="false" enableDeleteByExample="false"--> |
| | | <!-- enableSelectByExample="false" selectByExampleQueryId="false"/>--> |
| | | <table tableName="sm_t_device_location" domainObjectName="DeviceLocation" enableCountByExample="false" |
| | | <table tableName="di_t_monitor_device_info" domainObjectName="MonitorDeviceInfo" enableCountByExample="false" |
| | | enableUpdateByExample="false" enableDeleteByExample="false" |
| | | enableSelectByExample="false" selectByExampleQueryId="false"/> |
| | | <table tableName="di_t_treatment_device_info" domainObjectName="TreatmentDeviceInfo" |
| | | enableCountByExample="false" |
| | | enableUpdateByExample="false" enableDeleteByExample="false" |
| | | enableSelectByExample="false" selectByExampleQueryId="false"/> |
| | | <table tableName="di_t_production_device_info" domainObjectName="ProductionDeviceInfo" |
| | | enableCountByExample="false" |
| | | enableUpdateByExample="false" enableDeleteByExample="false" |
| | | enableSelectByExample="false" selectByExampleQueryId="false"/> |
| | | <table tableName="di_t_device_status" domainObjectName="DeviceStatus" enableCountByExample="false" |
| | | enableUpdateByExample="false" enableDeleteByExample="false" |
| | | enableSelectByExample="false" selectByExampleQueryId="false"/> |
| | | </context> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.DeviceStatusMapper" > |
| | | <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds1.entity.DeviceStatus" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | <id column="DL_ID" property="dlId" jdbcType="INTEGER" /> |
| | | <result column="DL_Device_Id" property="dlDeviceId" jdbcType="INTEGER" /> |
| | | <result column="DL_Device_Type" property="dlDeviceType" jdbcType="TINYINT" /> |
| | | <result column="DL_Scene_GUID" property="dlSceneGuid" jdbcType="VARCHAR" /> |
| | | <result column="DL_Scene_Type_Id" property="dlSceneTypeId" jdbcType="TINYINT" /> |
| | | <result column="DL_Location" property="dlLocation" jdbcType="VARCHAR" /> |
| | | <result column="DL_Longitude" property="dlLongitude" jdbcType="DECIMAL" /> |
| | | <result column="DL_Latitude" property="dlLatitude" jdbcType="DECIMAL" /> |
| | | <result column="DL_Standard" property="dlStandard" jdbcType="BIT" /> |
| | | <result column="DL_UnStandard_Reason" property="dlUnstandardReason" jdbcType="VARCHAR" /> |
| | | <result column="DL_Real_Time_Status" property="dlRealTimeStatus" jdbcType="TINYINT" /> |
| | | <result column="DL_Pic_Url" property="dlPicUrl" jdbcType="VARCHAR" /> |
| | | <result column="DL_Video_Url" property="dlVideoUrl" jdbcType="VARCHAR" /> |
| | | <result column="DL_Create_Time" property="dlCreateTime" jdbcType="TIMESTAMP" /> |
| | | <result column="DL_Update_Time" property="dlUpdateTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | DL_ID, DL_Device_Id, DL_Device_Type, DL_Scene_GUID, DL_Scene_Type_Id, DL_Location, |
| | | DL_Longitude, DL_Latitude, DL_Standard, DL_UnStandard_Reason, DL_Real_Time_Status, |
| | | DL_Pic_Url, DL_Video_Url, DL_Create_Time, DL_Update_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.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" 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" /> |
| | | <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_Device_Code" property="drDeviceCode" 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" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List"> |
| | | <sql id="Base_Column_List" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | DR_Id, DR_Scene_Id, DR_Scene_Name, DR_Time, DR_Exceed_Times, DR_Avg, DR_Max, DR_Min, |
| | | DR_Over_Avg_Per, DR_Data_Num, DR_Effective_Rate |
| | | DR_Id, DR_Scene_Id, DR_Scene_Name, DR_Device_Code, DR_Time, DR_Exceed_Times, DR_Avg, |
| | | DR_Max, DR_Min, DR_Over_Avg_Per, DR_Data_Num, DR_Effective_Rate |
| | | </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.ds1.mapper.MonitorDeviceInfoMapper" > |
| | | <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds1.entity.MonitorDeviceInfo" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | <id column="DI_ID" property="diId" jdbcType="INTEGER" /> |
| | | <result column="DI_Device_Code" property="diDeviceCode" jdbcType="VARCHAR" /> |
| | | <result column="DI_Name" property="diName" jdbcType="VARCHAR" /> |
| | | <result column="DI_Scene_GUID" property="diSceneGuid" jdbcType="VARCHAR" /> |
| | | <result column="DI_Scene_Type_Id" property="diSceneTypeId" jdbcType="TINYINT" /> |
| | | <result column="DI_Type_Id" property="diTypeId" jdbcType="TINYINT" /> |
| | | <result column="DI_Subtype_Id" property="diSubtypeId" jdbcType="TINYINT" /> |
| | | <result column="DI_Supplier" property="diSupplier" jdbcType="VARCHAR" /> |
| | | <result column="DI_Maintainer" property="diMaintainer" jdbcType="VARCHAR" /> |
| | | <result column="DI_Maintain_Frequency" property="diMaintainFrequency" jdbcType="TINYINT" /> |
| | | <result column="DI_Maintain_Staff" property="diMaintainStaff" jdbcType="VARCHAR" /> |
| | | <result column="DI_Maintain_Tel" property="diMaintainTel" jdbcType="VARCHAR" /> |
| | | <result column="DI_Running_Status" property="diRunningStatus" jdbcType="TINYINT" /> |
| | | <result column="DI_Brand_Model" property="diBrandModel" jdbcType="VARCHAR" /> |
| | | <result column="DI_Device_Param" property="diDeviceParam" jdbcType="VARCHAR" /> |
| | | <result column="DI_Ownership" property="diOwnership" jdbcType="TINYINT" /> |
| | | <result column="DI_QR_Code" property="diQrCode" jdbcType="VARCHAR" /> |
| | | <result column="DI_Other_QR_Code" property="diOtherQrCode" jdbcType="VARCHAR" /> |
| | | <result column="DI_Create_Time" property="diCreateTime" jdbcType="TIMESTAMP" /> |
| | | <result column="DI_Update_Time" property="diUpdateTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | DI_ID, DI_Device_Code, DI_Name, DI_Scene_GUID, DI_Scene_Type_Id, DI_Type_Id, DI_Subtype_Id, |
| | | DI_Supplier, DI_Maintainer, DI_Maintain_Frequency, DI_Maintain_Staff, DI_Maintain_Tel, |
| | | DI_Running_Status, DI_Brand_Model, DI_Device_Param, DI_Ownership, DI_QR_Code, DI_Other_QR_Code, |
| | | DI_Create_Time, DI_Update_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.ds1.mapper.ProductionDeviceInfoMapper" > |
| | | <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds1.entity.ProductionDeviceInfo" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | <id column="WI_ID" property="wiId" jdbcType="INTEGER" /> |
| | | <result column="WI_Device_Code" property="wiDeviceCode" jdbcType="VARCHAR" /> |
| | | <result column="WI_Name" property="wiName" jdbcType="VARCHAR" /> |
| | | <result column="WI_Scene_GUID" property="wiSceneGuid" jdbcType="VARCHAR" /> |
| | | <result column="WI_Scene_Type_Id" property="wiSceneTypeId" jdbcType="TINYINT" /> |
| | | <result column="WI_Type_Id" property="wiTypeId" jdbcType="TINYINT" /> |
| | | <result column="WI_Subtype_Id" property="wiSubtypeId" jdbcType="TINYINT" /> |
| | | <result column="WI_Supplier" property="wiSupplier" jdbcType="VARCHAR" /> |
| | | <result column="WI_Servicer" property="wiServicer" jdbcType="VARCHAR" /> |
| | | <result column="WI_Maintain_Staff" property="wiMaintainStaff" jdbcType="VARCHAR" /> |
| | | <result column="WI_Maintain_Tel" property="wiMaintainTel" jdbcType="VARCHAR" /> |
| | | <result column="WI_Running_Status" property="wiRunningStatus" jdbcType="TINYINT" /> |
| | | <result column="WI_Brand_Model" property="wiBrandModel" jdbcType="VARCHAR" /> |
| | | <result column="WI_Device_Param" property="wiDeviceParam" jdbcType="VARCHAR" /> |
| | | <result column="WI_Ownership" property="wiOwnership" jdbcType="TINYINT" /> |
| | | <result column="WI_QR_Code" property="wiQrCode" jdbcType="VARCHAR" /> |
| | | <result column="WI_Other_QR_Code" property="wiOtherQrCode" jdbcType="VARCHAR" /> |
| | | <result column="WI_Create_Time" property="wiCreateTime" jdbcType="TIMESTAMP" /> |
| | | <result column="WI_Update_Time" property="wiUpdateTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | WI_ID, WI_Device_Code, WI_Name, WI_Scene_GUID, WI_Scene_Type_Id, WI_Type_Id, WI_Subtype_Id, |
| | | WI_Supplier, WI_Servicer, WI_Maintain_Staff, WI_Maintain_Tel, WI_Running_Status, |
| | | WI_Brand_Model, WI_Device_Param, WI_Ownership, WI_QR_Code, WI_Other_QR_Code, WI_Create_Time, |
| | | WI_Update_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.ds1.mapper.TreatmentDeviceInfoMapper" > |
| | | <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds1.entity.TreatmentDeviceInfo" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | <id column="PI_ID" property="piId" jdbcType="INTEGER" /> |
| | | <result column="PI_Device_Code" property="piDeviceCode" jdbcType="VARCHAR" /> |
| | | <result column="PI_Name" property="piName" jdbcType="VARCHAR" /> |
| | | <result column="PI_Scene_GUID" property="piSceneGuid" jdbcType="VARCHAR" /> |
| | | <result column="PI_Scene_Type_Id" property="piSceneTypeId" jdbcType="TINYINT" /> |
| | | <result column="PI_Type_Id" property="piTypeId" jdbcType="TINYINT" /> |
| | | <result column="PI_Subtype_Id" property="piSubtypeId" jdbcType="TINYINT" /> |
| | | <result column="PI_Supplier" property="piSupplier" jdbcType="VARCHAR" /> |
| | | <result column="PI_Maintainer" property="piMaintainer" jdbcType="VARCHAR" /> |
| | | <result column="PI_Maintain_Frequency" property="piMaintainFrequency" jdbcType="TINYINT" /> |
| | | <result column="PI_Maintain_Staff" property="piMaintainStaff" jdbcType="VARCHAR" /> |
| | | <result column="PI_Maintain_Tel" property="piMaintainTel" jdbcType="VARCHAR" /> |
| | | <result column="PI_Running_Status" property="piRunningStatus" jdbcType="TINYINT" /> |
| | | <result column="PI_Brand_Model" property="piBrandModel" jdbcType="VARCHAR" /> |
| | | <result column="PI_Device_Param" property="piDeviceParam" jdbcType="VARCHAR" /> |
| | | <result column="PI_Ownership" property="piOwnership" jdbcType="TINYINT" /> |
| | | <result column="PI_QR_Code" property="piQrCode" jdbcType="VARCHAR" /> |
| | | <result column="PI_Other_QR_Code" property="piOtherQrCode" jdbcType="VARCHAR" /> |
| | | <result column="PI_Create_Time" property="piCreateTime" jdbcType="TIMESTAMP" /> |
| | | <result column="PI_Update_Time" property="piUpdateTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- |
| | | WARNING - @mbg.generated |
| | | --> |
| | | PI_ID, PI_Device_Code, PI_Name, PI_Scene_GUID, PI_Scene_Type_Id, PI_Type_Id, PI_Subtype_Id, |
| | | PI_Supplier, PI_Maintainer, PI_Maintain_Frequency, PI_Maintain_Staff, PI_Maintain_Tel, |
| | | PI_Running_Status, PI_Brand_Model, PI_Device_Param, PI_Ownership, PI_QR_Code, PI_Other_QR_Code, |
| | | PI_Create_Time, PI_Update_Time |
| | | </sql> |
| | | </mapper> |
| | |
| | | |
| | | @Test |
| | | fun aopSubtask() { |
| | | val s = subTaskRep.findOne("yMRHdPg7e4i8M6aB") |
| | | val s = subTaskRep.findOne("B6kyaAjJRoGJ2Yur") |
| | | aopEvaluation.executeBySubTask(s!!) |
| | | } |
| | | } |
| | |
| | | |
| | | @Test |
| | | fun startNewTask(){ |
| | | val time = LocalDate.of(2024, 7, 23).atStartOfDay() |
| | | aopTaskCtrl.startNewTask(aopTaskCtrl.getArea(time, "310106", "éå®åº", Constant.SceneType.TYPE1)) |
| | | val time = LocalDate.of(2024, 6, 23).atStartOfDay() |
| | | // aopTaskCtrl.startNewTask(aopTaskCtrl.getArea(time, "310106", "éå®åº", Constant.SceneType.TYPE1)) |
| | | aopTaskCtrl.startNewTask(aopTaskCtrl.getArea(time, "310104", "徿±åº", Constant.SceneType.TYPE5)) |
| | | val reader = BufferedReader(InputStreamReader(System.`in`)) |
| | | reader.readLine() |
| | | } |
| | |
| | | |
| | | @Test |
| | | fun autoCreateMap() { |
| | | userMapService.autoCreateMap() |
| | | val user = userinfoService.findOne("58G5NHgRc1TjDTAH") |
| | | userMapService.autoCreateMap(listOf(user)) |
| | | } |
| | | } |