{{#eq apiEntity.codeName ""}}
{{#unless apiEntity.subSysDE}}
package {{packageName}}.{{lowerCase apiEntity.api.codeName}}.dto;

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.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 服务DTO对象[{{apiEntity.codeName}}DTO]
 */
@Getter
@Setter
@NoArgsConstructor
@ApiModel("{{apiEntity.logicName}}")
public class {{apiEntity.codeName}}DTO extends {{#eq apiEntity.entity.psSubSysServiceAPI.serviceType "MIDDLEPLATFORM"}}DTOClient{{else}}DTOBase{{/eq}} implements Serializable {

	private static final long serialVersionUID = 1L;

    {{#each apiEntity.properties}}
        {{#unless deepStructure}}
    /**
     * {{logicName}}
     */
    @JsonProperty("{{jsonName}}")
            {{#timeType}}
    @JsonFormat(pattern = "{{format}}", locale = "zh", timezone = "GMT+8")
            {{/timeType}}
    @JSONField(name = "{{jsonName}}"{{#timeType}} , format = "{{format}}"{{/timeType}})
            {{#eq type.java "Long"}}
    @JsonSerialize(using = ToStringSerializer.class)            
            {{/eq}}
    @ApiModelProperty("{{logicName}}")
    private {{type.java}} {{camelCase codeName}};

        {{/unless}}
    {{/each}}

    {{#each apiEntity.entity.nesteds}}
    /**
     * {{entityLogicName}}
     */
    @JSONField(name = "{{pluralize codeName}}")
    @JsonProperty("{{pluralize codeName}}")
    private List<{{packageName}}.core.{{module}}.domain.{{entityCodeName}}> {{camelCase codeName}};
    {{/each}}

    {{#each apiEntity.properties}}
        {{#unless deepStructure}}
            {{#unless keyDEField}}
                {{#unless predefinedType}}
    /**
     * 设置 [{{logicName}}]
     */
    public {{apiEntity.codeName}}DTO set{{pascalCase codeName}}({{type.java}} {{camelCase codeName}}) {
        this.{{camelCase codeName}} = {{camelCase codeName}};
        this.modify("{{lowerCase name}}", {{camelCase codeName}});
        return this;
    }
                {{/unless}}
            {{/unless}}

        {{/unless}}
    {{/each}}

    {{#apiEntity.entity.nesteds}}
        {{#columnName}}
    /**
     * 设置 [{{entityLogicName}}]
     */
    public {{apiEntity.codeName}}DTO set{{pascalCase codeName}}(List<{{packageName}}.core.{{module}}.domain.{{entityCodeName}}> {{camelCase codeName}}) {
        this.{{camelCase codeName}} = {{camelCase codeName}};
        this.modify("{{columnName}}", ({{camelCase codeName}}!=null)?{{camelCase codeName}}:(new ArrayList()));
        return this;
    }
        {{/columnName}}
    
    {{/apiEntity.entity.nesteds}}

}
{{/unless}}
{{/eq}}