{{#eq apps "link"}}
package {{packageName}}.api.{{apps}}.dto.{{pascalCase appEntities}};

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import cn.ibizlab.util.domain.*;
import {{packageName}}.api.{{apps}}.dict.*;

/**
 * {{ctrl.appEntity.entity.logicName}}UpdateDTO对象[{{ctrl.codeName}}]{{replace ctrl.logicName "表单" ""}}
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@ApiModel(value = "{{ctrl.apiModelName}}UpdateDto", description = "{{ctrl.appEntity.entity.logicName}}-{{pascalCase ctrl.codeName}}UpdateDto-{{replace ctrl.logicName "表单" ""}}")
public class {{pascalCase ctrl.codeName}}UpdateDto extends {{pascalCase ctrl.codeName}}BaseDto {

	private static final long serialVersionUID = 1L;

    {{#each ctrl.voItems   }}
    {{#if updateDefaultValue}}
    /**
     * {{logicName}}
     */
    @JsonProperty("{{jsonName}}")
            {{#timeType}}
    @JsonFormat(pattern = "{{format}}", locale = "zh", timezone = "GMT+8")
    @DateTimeFormat(pattern = "{{format}}")
            {{/timeType}}
            {{#if dict}}
    @JsonFormat(shape = JsonFormat.Shape.{{#if singleSelect}}{{#eq type.java "String"}}STRING{{/eq}}{{#eq type.java "Integer"}}NUMBER{{/eq}}{{else}}STRING{{/if}})
            {{/if}}
    @JSONField(name = "{{jsonName}}"{{#timeType}} , format = "{{format}}"{{/timeType}}{{#if serializeUsing}} , serializeUsing = {{serializeUsing}}{{/if}})
            {{#eq javaType "Long"}}
    @JsonSerialize(using = ToStringSerializer.class)
            {{/eq}}
    @ApiModelProperty(value = "{{logicName}}{{columnName}}{{#if userTag}}，{{userTag}}{{/if}}{{#if dict}}，{{#unless singleSelect}}多选{{/unless}}【字典：{{dict.name}}】{{/if}}{{#if timeType}}，格式：{{format}}{{/if}}", position = {{position}}{{#if timeType}}, notes = "格式：{{format}}"{{/if}}{{#if dict}}, notes = "字典：{{dict.name}}", dataType = "{{lowerCase type.java}}", reference = "{{dictCodeName}}"{{/if}}{{#if required}}, required = true{{/if}}{{#if hidden}}, hidden = true{{else}}{{#eq editorType 'SPAN'}}, hidden = true{{/eq}}{{/if}}{{#if example}}, example = "{{example}}"{{/if}})
    protected {{javaType}} {{camelCase codeName}} {{#if updateDefaultValue}}= {{updateDefaultValue}}{{/if}};

    {{/if}}
    {{#if javaType}}
    {{#if singleFile}}
    public void set{{pascalCase codeName}}({{javaType}} {{camelCase codeName}}) {
        this.{{camelCase codeName}} = {{camelCase codeName}};
    }

    {{/if}}
    {{#if fileList}}
    public void set{{pascalCase codeName}}({{javaType}} {{camelCase codeName}}) {
        this.{{camelCase codeName}} = {{camelCase codeName}};
    }

    {{/if}}
    {{/if}}
    {{/each}}
    @Override
    public String getSrfuf() {
        return srfuf==null?"1":srfuf;
    }

}
{{/eq}}