From 9c315b4dbbb9f25d5373d1f228ed441a4e8ccbf7 Mon Sep 17 00:00:00 2001 From: hcong <1050828145@qq.com> Date: 星期四, 12 十二月 2024 15:31:00 +0800 Subject: [PATCH] 1. 数据产品中间结果基本信息和具体信息入库 --- src/main/kotlin/cn/flightfeather/supervision/business/report/bean/ProDetailSummaryResult.kt | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/business/report/bean/ProDetailSummaryResult.kt b/src/main/kotlin/cn/flightfeather/supervision/business/report/bean/ProDetailSummaryResult.kt index 209e29b..0877fe1 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/business/report/bean/ProDetailSummaryResult.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/business/report/bean/ProDetailSummaryResult.kt @@ -1,5 +1,7 @@ package cn.flightfeather.supervision.business.report.bean +import cn.flightfeather.supervision.common.utils.DateUtil +import cn.flightfeather.supervision.domain.ds1.entity.DataProductProDetail import java.math.BigDecimal /** @@ -91,4 +93,40 @@ @ExcelHead(28, "鏁存敼璺熻釜鎻愰啋") var changeTrackingReminder: String? = null + + override fun convertToDBEntity(): DataProductProDetail { + val entity = DataProductProDetail() + entity.formIndex = this.formIndex + entity.sceneIndex = this.sceneIndex + entity.sceneType = this.sceneType + entity.sceneName = this.sceneName + // 灏哠tring绫诲瀷鐨勭洃绠℃椂闂磋浆鎹负Date绫诲瀷 + entity.inspectionTime = DateUtil.StringToDate(this.subTaskPlanstarttime, "mm-dd") + entity.executors = this.subTaskExecutorrealtimes + entity.problemType = this.problemTypename + entity.problemDescription = this.problemDescription + entity.problemLocation = this.problemLocation + entity.problemNum = this.problemNum + entity.changeTime = this.changeTime + entity.problemChanged = this.problemChanged + entity.changedProblem = this.changedProblem + entity.changedNum = this.changedNum + entity.unchangedProblems = this.unchangedProblems + entity.unchangedNum = this.unChangedProblem + entity.changePercent = this.changePercent + entity.checkStatus = this.checkStatus + entity.proCheckTime = this.pCheckTime + entity.changeCheckTime = this.cCheckTime + entity.proCheckNum = this.pCheckNum + entity.proCheckPer = this.pCheckPer + entity.changeCheckNum = this.cCheckNum + entity.changeCheckPer = this.cCheckPer + entity.ledgerPercent = this.ledgerPercent + // 灏哠tring绫诲瀷鐨勫彴璐︽彁浜ゆ椂闂磋浆鎹负Date绫诲瀷 + entity.ledgerSubmitDate = DateUtil.StringToDate(this.ledgerSubmitdate, "yyyy-mm-dd hh:mm:ss") + // 灏哠tring绫诲瀷鐨勫彴璐﹀鏍告椂闂磋浆鎹负Date绫诲瀷锛岃繖閲屽亣璁緇edgerCheckTime鏄鍚圖ate鏍煎紡鐨勫瓧绗︿覆 + entity.ledgerCheckTime = DateUtil.StringToDate(this.ledgerCheckTime, "yyyy-mm-dd hh:mm:ss") + entity.changeTrackingReminder = this.changeTrackingReminder + return entity + } } -- Gitblit v1.9.3