Authored by caoyan

发售日历

... ... @@ -42,7 +42,8 @@ public class Product {
/** 删除状态: 0未删除 1已删除. */
private Integer delStatus;
private BigDecimal offerPrice;//发售价格
public Integer getId() {
return id;
... ... @@ -195,4 +196,13 @@ public class Product {
public void setDelStatus(Integer delStatus) {
this.delStatus = delStatus;
}
public BigDecimal getOfferPrice() {
return offerPrice;
}
public void setOfferPrice(BigDecimal offerPrice) {
this.offerPrice = offerPrice;
}
}
\ No newline at end of file
... ...
... ... @@ -21,6 +21,7 @@
<result column="storage" jdbcType="INTEGER" property="storage" />
<result column="key_words" jdbcType="VARCHAR" property="keyWords" />
<result column="del_status" jdbcType="INTEGER" property="delStatus" />
<result column="offer_price" jdbcType="DECIMAL" property="offerPrice" />
</resultMap>
<insert id="insert" parameterType="com.yohoufo.dal.product.model.Product">
... ... @@ -64,7 +65,7 @@
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select id, product_name, product_code, max_sort_id, mid_sort_id, brand_id, series_id, gender, sale_time,
min_price, max_price, create_time, update_time, shelve_time, edit_time, shelve_status,
storage, key_words, del_status
storage, key_words, del_status, offer_price
from product
where id = #{id,jdbcType=INTEGER}
</select>
... ...
... ... @@ -117,6 +117,7 @@ public class ProductServiceImpl implements ProductService {
productInfo.setShelveStatus(product.getShelveStatus());
productInfo.setGender(getGenderName(product.getGender()));
productInfo.setSaleTime((product.getSaleTime() == null || product.getSaleTime().equals(0)) ? "0" : DateUtil.getDateString(product.getSaleTime(), DateUtil.YYYY_MM_DD_DOT));
productInfo.setOfferPrice(product.getOfferPrice());
setBrand(productInfo, product.getBrandId());
setSeries(productInfo, product.getSeriesId());
productInfo.setLeastPrice(null);
... ...