Commit 5473ab72 authored by shiyu's avatar shiyu

编辑商品5

parent 2334bbe3
...@@ -40,7 +40,7 @@ public class SupplierItemDaoImpl implements SupplierItemDao { ...@@ -40,7 +40,7 @@ public class SupplierItemDaoImpl implements SupplierItemDao {
JdbcHelper.ifPresent(dto.getStock(), criteria::andStockGreaterThan); JdbcHelper.ifPresent(dto.getStock(), criteria::andStockGreaterThan);
JdbcHelper.ifPresent(dto.getIsOnSale(), criteria::andIsOnSaleEqualTo); JdbcHelper.ifPresent(dto.getIsOnSale(), criteria::andIsOnSaleEqualTo);
JdbcHelper.ifPresent(dto.getIsDeleted(), criteria::andIsDeletedEqualTo); JdbcHelper.ifPresent(dto.getIsDeleted(), criteria::andIsDeletedEqualTo);
supplierItemExample.setOrderByClause(" id desc"); supplierItemExample.setOrderByClause(" update_time desc");
PageHelper.startPage(dto.getPage(), dto.getLimit()); PageHelper.startPage(dto.getPage(), dto.getLimit());
return supplierItemMapper.selectByExampleWithBLOBs(supplierItemExample); return supplierItemMapper.selectByExampleWithBLOBs(supplierItemExample);
} }
......
...@@ -95,11 +95,11 @@ public class SupplierItemServiceImpl implements SupplierItemService { ...@@ -95,11 +95,11 @@ public class SupplierItemServiceImpl implements SupplierItemService {
} else { } else {
//没有出价记录最新价格为0 //没有出价记录最新价格为0
supplierItemVo.setCurrentPrice("0"); supplierItemVo.setCurrentPrice("0");
//查询商品起拍价 /* //查询商品起拍价
AuctionConfig auctionConfig = auctionConfigDao.findByItemId(supplierItem.getId()); AuctionConfig auctionConfig = auctionConfigDao.findByItemId(supplierItem.getId());
if (auctionConfig != null) { if (auctionConfig != null) {
supplierItemVo.setCurrentPrice(PriceUtil.convertPriceFenToYuan(auctionConfig.getStartPrice())); supplierItemVo.setCurrentPrice(PriceUtil.convertPriceFenToYuan(auctionConfig.getStartPrice()));
} }*/
} }
} }
supplierItemVos.add(supplierItemVo); supplierItemVos.add(supplierItemVo);
...@@ -285,8 +285,6 @@ public class SupplierItemServiceImpl implements SupplierItemService { ...@@ -285,8 +285,6 @@ public class SupplierItemServiceImpl implements SupplierItemService {
if (auctionRecord != null && auctionRecord.getPrice() != null) { if (auctionRecord != null && auctionRecord.getPrice() != null) {
supplierItemVo.setCurrentPrice(PriceUtil.convertPriceFenToYuan(auctionRecord.getPrice())); supplierItemVo.setCurrentPrice(PriceUtil.convertPriceFenToYuan(auctionRecord.getPrice()));
} else { } else {
//查询商品起拍价
//AuctionConfig auctionConfig = auctionConfigDao.findByItemId(supplierItem.getId());
supplierItemVo.setCurrentPrice("0"); supplierItemVo.setCurrentPrice("0");
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment