¶Ô±ÈÐÂÎļþ |
| | |
| | | package cn.flightfeather.supervision.lightshare.vo |
| | | |
| | | import cn.flightfeather.supervision.common.utils.UUIDGenerator |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Inspection |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Mediafile |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Problemlist |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Scense |
| | | import com.fasterxml.jackson.annotation.JsonInclude |
| | | import java.math.BigDecimal |
| | | import java.time.LocalDateTime |
| | | import java.time.format.DateTimeFormatter |
| | | import java.util.* |
| | | |
| | | @JsonInclude(JsonInclude.Include.NON_NULL) |
| | | class MediaFileVo : Mediafile() { |
| | | companion object { |
| | | /** |
| | | * çæä¸ä¸ªé®é¢å¾ç |
| | | */ |
| | | fun newProFile(inspection: Inspection, problemlist: Problemlist, scene: Scense) = Mediafile().apply { |
| | | val now = LocalDateTime.now() |
| | | guid = UUIDGenerator.generate16ShortUUID() |
| | | iguid = inspection.guid |
| | | businessguid = problemlist.guid |
| | | longitude = problemlist.longitude |
| | | latitude = problemlist.latitude |
| | | address = problemlist.senseaddress |
| | | filetype = 1 |
| | | businesstype = "é®é¢" |
| | | businesstypeid = 1 |
| | | path = |
| | | "FlightFeather/Photo/" + scene.districtname + "/" + now.year + "å¹´" + now.monthValue + "æ/" + now.monthValue + "æ" + now.dayOfMonth + "æ¥/" + scene.name + "/" |
| | | description = |
| | | problemlist.problemname + " " + problemlist.location + " " + UUIDGenerator.generateUUID(4) + ".jpg" |
| | | savetime = Date() |
| | | ischanged = false |
| | | extension1 = |
| | | scene.citycode + "/" + scene.districtcode + "/" + now.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")) + "/" + scene.guid + "/" |
| | | remark = "å·²ä¸ä¼ " |
| | | } |
| | | } |
| | | // var guid: String? = null |
| | | // |
| | | // var iguid: String? = null |
| | | // |
| | | // /** |
| | | // * æ ¹æ®MF_BusinessTypeæä¸å表çGUIDï¼å¦é®é¢è¡¨ãæé²æªæ½è¡¨ |
| | | // */ |
| | | // var businessguid: String? = null |
| | | // |
| | | // var longitude: BigDecimal? = null |
| | | // |
| | | // var latitude: BigDecimal? = null |
| | | // |
| | | // var address: String? = null |
| | | // |
| | | // /** |
| | | // * 1å¾ç 2é³é¢ 3è§é¢ |
| | | // */ |
| | | // var filetype: Int? = null |
| | | // |
| | | // var businesstypeid: Byte? = null |
| | | // |
| | | // /** |
| | | // * 1. é®é¢ï¼2æé²æªæ½ï¼3çæµè®¾å¤ï¼4æ²»ç设置ï¼5 常è§è®°å½ï¼99 å
¶ä» |
| | | // */ |
| | | // var businesstype: String? = null |
| | | // |
| | | // var path: String? = null |
| | | // |
| | | // var description: String? = null |
| | | // |
| | | // var savetime: Date? = null |
| | | // |
| | | // /** |
| | | // * å¦ä¸ºæ´æ¹åçå¾ç |
| | | // */ |
| | | // var ischanged: Boolean? = null |
| | | // |
| | | // var extension1: String? = null |
| | | // |
| | | // var extension2: String? = null |
| | | // |
| | | // var extension3: String? = null |
| | | // |
| | | // var remark: String? = null |
| | | } |