<resultMap id="BaseResultMap" type="com.shining3d.zeus.client.dto.MaterialDto"> <id column="cId" property="classifyId" jdbcType="BIGINT"/> <!--<result column="cId" property="classifyId" jdbcType="VARCHAR"/>--> <collection property="list" column="classifyId" ofType="com.shining3d.zeus.client.dto.ResultMaterialDto"> <!--<id column="classifyId" property="classifyId" jdbcType="BIGINT" />--> <result column="name" property="name" jdbcType="VARCHAR"/> <result column="nameEn" property="nameEn" jdbcType="VARCHAR"/> <result column="price" property="price" jdbcType="DECIMAL"/> <result column="startingPrice" property="startingPrice" jdbcType="DECIMAL"/> <result column="materialId" property="materialId" jdbcType="BIGINT"/> <result column="color" property="color" jdbcType="VARCHAR"/> <result column="classifyId" property="classifyId" jdbcType="BIGINT"/> <result column="profile" property="profile" jdbcType="VARCHAR"/> <result column="schedule" property="schedule" jdbcType="VARCHAR"/> <result column="density" property="density" jdbcType="VARCHAR"/> <result column="groupPrice" property="groupPrice" jdbcType="DECIMAL"/> <result column="groupDesc" property="groupDesc" jdbcType="VARCHAR"/> <result column="groupAmount" property="groupAmount" jdbcType="DECIMAL"/> <result column="groupCount" property="groupCount" jdbcType="BIGINT"/> </collection> </resultMap> 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; /** * category id */ private Long classifyId; private String name; /** * The only Chinese name of the material */ private String nameEn; private BigDecimal price; /** * starting price */ private BigDecimal startingPrice; private String density; private String status; @JSONField(format = "yyyy-MM-dd HH:mm:ss") private Date publishTime; /*** * print cycle */ private String schedule; /** * colour */ private String color; /** * Whether to use coupons */ private String useCoupon; /** * Introduction */ private String profile; /** * Details */ private String detail; /** * dfsId of audit data */ private String dfsId; /** * Used when adding to the page alone */ private List<ResultMaterialDto> list; /** * print factor */ private String precisionsRatio; /** * accuracy */ private String precisions; /** * The filename to use when reviewing */ private String fileName; /** * Price of casserole */ private BigDecimal groupPrice; /** * Description of casserole */ private String groupDesc; /** * Amount of fundraising */ private BigDecimal groupAmount; /** * Number of pots */ private Integer groupCount; private List<MaterialPrecisionDto> 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<ResultMaterialDto> getList() { return list; } public void setList(List<ResultMaterialDto> 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<MaterialPrecisionDto> getPricisionList() { return pricisionList; } public void setPricisionList(List<MaterialPrecisionDto> 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; } }
How Mybatis solves the object nesting problem
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325984250&siteId=291194637
Ranking