最小最大价 ufo.product.baseInfoEx
Showing
1 changed file
with
6 additions
and
6 deletions
@@ -151,12 +151,6 @@ public class ProductServiceImpl implements ProductService { | @@ -151,12 +151,6 @@ public class ProductServiceImpl implements ProductService { | ||
151 | resp.setPreSaleSkup(preSaleStoragePrice.getSkup()); | 151 | resp.setPreSaleSkup(preSaleStoragePrice.getSkup()); |
152 | } | 152 | } |
153 | 153 | ||
154 | - Product product = productMapper.selectByPrimaryKey(storagePrice.getProductId()); | ||
155 | - if (null != product) { | ||
156 | - resp.setProductMaxPrice(product.getMaxPrice()); | ||
157 | - resp.setProductMinPrice(product.getMinPrice()); | ||
158 | - } | ||
159 | - | ||
160 | return resp; | 154 | return resp; |
161 | } | 155 | } |
162 | 156 | ||
@@ -185,6 +179,12 @@ public class ProductServiceImpl implements ProductService { | @@ -185,6 +179,12 @@ public class ProductServiceImpl implements ProductService { | ||
185 | resp.setPreSaleSkup(preSaleStoragePrice.getSkup()); | 179 | resp.setPreSaleSkup(preSaleStoragePrice.getSkup()); |
186 | } | 180 | } |
187 | 181 | ||
182 | + Product product = productMapper.selectByPrimaryKey(storage.getProductId()); | ||
183 | + if (null != product) { | ||
184 | + resp.setProductMaxPrice(product.getMaxPrice()); | ||
185 | + resp.setProductMinPrice(product.getMinPrice()); | ||
186 | + } | ||
187 | + | ||
188 | return resp; | 188 | return resp; |
189 | } | 189 | } |
190 | 190 |
-
Please register or login to post a comment