{{#unless apiDto.apiEntity.subSysDE}}
package {{packageName}}.{{apis}}.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对象[{{apiDto.codeName}}]
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("{{apiDto.logicName}}")
public class {{apiDto.codeName}} extends {{#eq apiDto.apiEntity.entity.psSubSysServiceAPI.serviceType "MIDDLEPLATFORM"}}DTOClient{{else}}DTOBase{{/eq}} implements Serializable {

	private static final long serialVersionUID = 1L;

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

    {{/each}}

    {{#each apiDto.apiDtoFields}}
        {{#unless keyDEField}}
            {{#unless predefinedType}}
    /**
     * 设置 [{{logicName}}]
     */
    public {{apiDto.codeName}} set{{pascalCase codeName}}({{javaType}} {{camelCase codeName}}) {
        this.{{camelCase codeName}} = {{camelCase codeName}};
        this.modify("{{lowerCase name}}", {{camelCase codeName}});
        return this;
    }

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

}
{{/unless}}