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)
|
}
|
}
|
}
|