Mybatis如何解决对象嵌套问题

为什么80%的码农都做不了架构师?>>>   hot3.png


    
    
    
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
    



import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;
import com.shining3d.common.dto.BaseDto;

public class MaterialDto extends BaseDto {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    /**
     * 分类id
     */
    private Long classifyId;

    private String name;
    /**
     * 材料唯一中文名
     */
    private String nameEn;

    private BigDecimal price;
    /**
     * 起步价
     */
    private BigDecimal startingPrice;

    private String density;

    private String status;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;
    /***
     * 打印周期
     */
    private String schedule;
    /**
     * 颜色
     */
    private String color;
    /**
     * 是否使用优惠券
     */
    private String useCoupon;
    /**
     * 简介
     */
    private String profile;
    /**
     * 详情
     */
    private String detail;
    /**
     * 审核数据的dfsId
     */
    private String dfsId;
    /**
     * 单独给页面添加的时候使用
     */
    private List list;
    /**
     * 打印系数
     */
    private String precisionsRatio;
    /**
     * 精度
     */
    private String precisions;
    /**
     * 审核时候使用的文件名
     */
    private String fileName;

    /**
     * 拼锅价格
     */
    private BigDecimal groupPrice;

    /**
     * 拼锅描述
     */
    private String groupDesc;

    /**
     * 拼锅筹款金额
     */
    private BigDecimal groupAmount;

    /**
     * 拼锅数量
     */
    private Integer groupCount;


    private List pricisionList;


    public Long getClassifyId() {
        return classifyId;
    }


    public void setClassifyId(Long classifyId) {
        this.classifyId = classifyId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getNameEn() {
        return nameEn;
    }

    public void setNameEn(String nameEn) {
        this.nameEn = nameEn == null ? null : nameEn.trim();
    }


    public String getDensity() {
        return density;
    }

    public void setDensity(String density) {
        this.density = density == null ? null : density.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public String getSchedule() {
        return schedule;
    }

    public void setSchedule(String schedule) {
        this.schedule = schedule == null ? null : schedule.trim();
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color == null ? null : color.trim();
    }

    public String getUseCoupon() {
        return useCoupon;
    }

    public void setUseCoupon(String useCoupon) {
        this.useCoupon = useCoupon == null ? null : useCoupon.trim();
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile == null ? null : profile.trim();
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail == null ? null : detail.trim();
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }

    public String getDfsId() {
        return dfsId;
    }

    public void setDfsId(String dfsId) {
        this.dfsId = dfsId;
    }

    public String getPrecisionsRatio() {
        return precisionsRatio;
    }

    public void setPrecisionsRatio(String precisionsRatio) {
        this.precisionsRatio = precisionsRatio;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getStartingPrice() {
        return startingPrice;
    }

    public void setStartingPrice(BigDecimal startingPrice) {
        this.startingPrice = startingPrice;
    }

    public String getPrecisions() {
        return precisions;
    }

    public void setPrecisions(String precisions) {
        this.precisions = precisions;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public List getPricisionList() {
        return pricisionList;
    }

    public void setPricisionList(List pricisionList) {
        this.pricisionList = pricisionList;
    }

    public BigDecimal getGroupPrice() {
        return groupPrice;
    }

    public void setGroupPrice(BigDecimal groupPrice) {
        this.groupPrice = groupPrice;
    }

    public String getGroupDesc() {
        return groupDesc;
    }

    public void setGroupDesc(String groupDesc) {
        this.groupDesc = groupDesc;
    }

    public BigDecimal getGroupAmount() {
        return groupAmount;
    }

    public void setGroupAmount(BigDecimal groupAmount) {
        this.groupAmount = groupAmount;
    }

    public Integer getGroupCount() {
        return groupCount;
    }

    public void setGroupCount(Integer groupCount) {
        this.groupCount = groupCount;
    }

}

转载于:https://my.oschina.net/renyg/blog/1647928

你可能感兴趣的:(java,json,数据库)