¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.lightshare.vo |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.datasource.AopDataSource |
| | | import cn.flightfeather.supervision.common.utils.UUIDGenerator |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Evaluationrule |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Inspection |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Itemevaluation |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Subtask |
| | | import com.fasterxml.jackson.annotation.JsonInclude |
| | | |
| | | @JsonInclude(JsonInclude.Include.NON_NULL) |
| | | class ItemEvaluationVo : Itemevaluation() { |
| | | |
| | | companion object { |
| | | /** |
| | | * çææ°ç䏿¡è¯åè®°å½ |
| | | */ |
| | | fun newItemEvaluation( |
| | | rule: Evaluationrule?, subTask: Subtask?, inspection: Inspection?, |
| | | itemRule: EvaluationSubRuleVo, |
| | | ) = Itemevaluation().apply { |
| | | ieguid = UUIDGenerator.generate16ShortUUID() |
| | | iguid = inspection?.guid |
| | | stguid = subTask?.stguid |
| | | sguid = subTask?.scenseid |
| | | sensename = subTask?.scensename |
| | | erguid = rule?.guid |
| | | rulename = rule?.rulename |
| | | ruletype = rule?.ruletype?.toInt() |
| | | ertype = itemRule.ertype |
| | | esrguid = itemRule.guid |
| | | name = itemRule.itemname |
| | | value = itemRule.score.toString() |
| | | extension1 = itemRule.selected.toString() |
| | | } |
| | | } |
| | | } |