Authored by caoyan

尺码集合

... ... @@ -15,6 +15,10 @@ public class SizePool {
private Integer updateTime;
private Integer updateUid;
private Integer imageWidth;
private Integer imageHeight;
public Integer getId() {
return id;
... ... @@ -64,6 +68,22 @@ public class SizePool {
this.updateUid = updateUid;
}
public Integer getImageWidth() {
return imageWidth;
}
public void setImageWidth(Integer imageWidth) {
this.imageWidth = imageWidth;
}
public Integer getImageHeight() {
return imageHeight;
}
public void setImageHeight(Integer imageHeight) {
this.imageHeight = imageHeight;
}
@Override
public String toString() {
return JSONObject.toJSONString(this);
... ...
... ... @@ -8,15 +8,17 @@
<result column="image_url" property="imageUrl" jdbcType="VARCHAR" />
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
<result column="update_uid" property="updateUid" jdbcType="INTEGER" />
<result column="image_width" property="imageWidth" jdbcType="INTEGER" />
<result column="image_height" property="imageHeight" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List">
id, status, range_type, image_url, update_time, update_uid
id, status, range_type, image_url, update_time, update_uid, image_width, image_height
</sql>
<insert id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="com.yoho.ufo.dal.model.SizePool">
insert into size_pool(id, status, range_type, image_url, update_time, update_uid)
values (#{id}, #{status}, #{rangeType}, #{imageUrl}, #{updateTime}, #{updateUid})
insert into size_pool(id, status, range_type, image_url, update_time, update_uid, image_width, image_height)
values (#{id}, #{status}, #{rangeType}, #{imageUrl}, #{updateTime}, #{updateUid}, #{imageWidth}, #{imageHeight})
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.ufo.dal.model.SizePool">
... ...
... ... @@ -69,6 +69,8 @@ public class SizePoolService implements ISizePoolService{
sizePool.setStatus(STATUS_OPEN);//默认开启
sizePool.setRangeType(bo.getRangeType());
sizePool.setImageUrl(bo.getImageUrl());
sizePool.setImageWidth(bo.getImageWidth());
sizePool.setImageHeight(bo.getImageHeight());
sizePool.setUpdateTime(DateUtil.getCurrentTimeSeconds());
sizePool.setUpdateUid(new UserHelper().getUserId());
... ...