feiyu02
2024-08-15 196bb14112448857a885e32dc4149e308e00b01a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package cn.flightfeather.supervision.lightshare.vo
 
import cn.flightfeather.supervision.domain.entity.IndustrialBaseInfo
import cn.flightfeather.supervision.domain.entity.RestaurantBaseInfo
import org.springframework.beans.BeanUtils
import java.util.*
import kotlin.math.round
 
class AuthSceneIndVo : AuthSceneVo() {
 
    val ibProductionTechnique: String? = null
 
    /**
     * 废气处理工艺名称
     */
    var ibWasteGasTechnique: String? = null
 
    /**
     * 废气处理有无监控措施
     */
    var ibWasteGasMeasure: String? = null
 
    /**
     * 是否采用更换式吸附处理工艺
     */
    var ibHasAbsorbTechnique: Boolean? = false
 
    /**
     * 吸附剂填充量是否符合设计文件
     */
    var ibAdsorbentCorrect: Boolean? = false
 
    /**
     * 吸附剂更换周期是否符合设计文件
     */
    var ibPeriodCorrect: Boolean? = false
 
    /**
     * 是否有购买吸附剂和废吸附剂处理的相关合同、票据
     */
    var ibHasContract: Boolean? = false
 
    /**
     * 相关合同、票据是否保存3年
     */
    var ibKeepContract: Boolean? = false
 
    /**
     * 生成新的工业信息对象
     */
    fun toNewIndInfo(userId: String) = IndustrialBaseInfo().apply {
        this.ibGuid = userId
        this.ibCreateTime = Date()
        updateIndInfo(this)
    }
 
    /**
     * 更新至餐饮信息
     */
    fun updateIndInfo(restInfo: IndustrialBaseInfo) {
        restInfo.apply {
            BeanUtils.copyProperties(this@AuthSceneIndVo, this)
        }
    }
}