package com.yeejoin.amos.boot.module.jcs.api.dto;

import java.util.List;

import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 警情接警记录对象集合
 * @author system
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="AlertCalledObjsDto", description="警情接警记录对象集合")
public class AlertCalledObjsDto extends BaseDto{
	
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "警情基本信息")
    private AlertCalled alertCalled;

    @ApiModelProperty(value = "动态表单值")
    private List<AlertFormValue> alertFormValue;




    public String getRemark() {
         String value="";

        for (AlertFormValue al : alertFormValue) {
            if (al.getFieldCode().equals("remark")) {
                value=al.getFieldValue();
            }
        }
        return value;
    }

}
