Showing
3 changed files
with
14 additions
and
2 deletions
@@ -42,7 +42,8 @@ public class Product { | @@ -42,7 +42,8 @@ public class Product { | ||
42 | 42 | ||
43 | /** 删除状态: 0未删除 1已删除. */ | 43 | /** 删除状态: 0未删除 1已删除. */ |
44 | private Integer delStatus; | 44 | private Integer delStatus; |
45 | - | 45 | + |
46 | + private BigDecimal offerPrice;//发售价格 | ||
46 | 47 | ||
47 | public Integer getId() { | 48 | public Integer getId() { |
48 | return id; | 49 | return id; |
@@ -195,4 +196,13 @@ public class Product { | @@ -195,4 +196,13 @@ public class Product { | ||
195 | public void setDelStatus(Integer delStatus) { | 196 | public void setDelStatus(Integer delStatus) { |
196 | this.delStatus = delStatus; | 197 | this.delStatus = delStatus; |
197 | } | 198 | } |
199 | + | ||
200 | + public BigDecimal getOfferPrice() { | ||
201 | + return offerPrice; | ||
202 | + } | ||
203 | + | ||
204 | + public void setOfferPrice(BigDecimal offerPrice) { | ||
205 | + this.offerPrice = offerPrice; | ||
206 | + } | ||
207 | + | ||
198 | } | 208 | } |
@@ -21,6 +21,7 @@ | @@ -21,6 +21,7 @@ | ||
21 | <result column="storage" jdbcType="INTEGER" property="storage" /> | 21 | <result column="storage" jdbcType="INTEGER" property="storage" /> |
22 | <result column="key_words" jdbcType="VARCHAR" property="keyWords" /> | 22 | <result column="key_words" jdbcType="VARCHAR" property="keyWords" /> |
23 | <result column="del_status" jdbcType="INTEGER" property="delStatus" /> | 23 | <result column="del_status" jdbcType="INTEGER" property="delStatus" /> |
24 | + <result column="offer_price" jdbcType="DECIMAL" property="offerPrice" /> | ||
24 | </resultMap> | 25 | </resultMap> |
25 | 26 | ||
26 | <insert id="insert" parameterType="com.yohoufo.dal.product.model.Product"> | 27 | <insert id="insert" parameterType="com.yohoufo.dal.product.model.Product"> |
@@ -64,7 +65,7 @@ | @@ -64,7 +65,7 @@ | ||
64 | <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | 65 | <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> |
65 | select id, product_name, product_code, max_sort_id, mid_sort_id, brand_id, series_id, gender, sale_time, | 66 | select id, product_name, product_code, max_sort_id, mid_sort_id, brand_id, series_id, gender, sale_time, |
66 | min_price, max_price, create_time, update_time, shelve_time, edit_time, shelve_status, | 67 | min_price, max_price, create_time, update_time, shelve_time, edit_time, shelve_status, |
67 | - storage, key_words, del_status | 68 | + storage, key_words, del_status, offer_price |
68 | from product | 69 | from product |
69 | where id = #{id,jdbcType=INTEGER} | 70 | where id = #{id,jdbcType=INTEGER} |
70 | </select> | 71 | </select> |
@@ -117,6 +117,7 @@ public class ProductServiceImpl implements ProductService { | @@ -117,6 +117,7 @@ public class ProductServiceImpl implements ProductService { | ||
117 | productInfo.setShelveStatus(product.getShelveStatus()); | 117 | productInfo.setShelveStatus(product.getShelveStatus()); |
118 | productInfo.setGender(getGenderName(product.getGender())); | 118 | productInfo.setGender(getGenderName(product.getGender())); |
119 | productInfo.setSaleTime((product.getSaleTime() == null || product.getSaleTime().equals(0)) ? "0" : DateUtil.getDateString(product.getSaleTime(), DateUtil.YYYY_MM_DD_DOT)); | 119 | productInfo.setSaleTime((product.getSaleTime() == null || product.getSaleTime().equals(0)) ? "0" : DateUtil.getDateString(product.getSaleTime(), DateUtil.YYYY_MM_DD_DOT)); |
120 | + productInfo.setOfferPrice(product.getOfferPrice()); | ||
120 | setBrand(productInfo, product.getBrandId()); | 121 | setBrand(productInfo, product.getBrandId()); |
121 | setSeries(productInfo, product.getSeriesId()); | 122 | setSeries(productInfo, product.getSeriesId()); |
122 | productInfo.setLeastPrice(null); | 123 | productInfo.setLeastPrice(null); |
-
Please register or login to post a comment