Commit 5473ab72 authored by shiyu's avatar shiyu

编辑商品5

parent 2334bbe3
......@@ -40,7 +40,7 @@ public class SupplierItemDaoImpl implements SupplierItemDao {
JdbcHelper.ifPresent(dto.getStock(), criteria::andStockGreaterThan);
JdbcHelper.ifPresent(dto.getIsOnSale(), criteria::andIsOnSaleEqualTo);
JdbcHelper.ifPresent(dto.getIsDeleted(), criteria::andIsDeletedEqualTo);
supplierItemExample.setOrderByClause(" id desc");
supplierItemExample.setOrderByClause(" update_time desc");
PageHelper.startPage(dto.getPage(), dto.getLimit());
return supplierItemMapper.selectByExampleWithBLOBs(supplierItemExample);
}
......
......@@ -95,11 +95,11 @@ public class SupplierItemServiceImpl implements SupplierItemService {
} else {
//没有出价记录最新价格为0
supplierItemVo.setCurrentPrice("0");
//查询商品起拍价
/* //查询商品起拍价
AuctionConfig auctionConfig = auctionConfigDao.findByItemId(supplierItem.getId());
if (auctionConfig != null) {
supplierItemVo.setCurrentPrice(PriceUtil.convertPriceFenToYuan(auctionConfig.getStartPrice()));
}
}*/
}
}
supplierItemVos.add(supplierItemVo);
......@@ -285,8 +285,6 @@ public class SupplierItemServiceImpl implements SupplierItemService {
if (auctionRecord != null && auctionRecord.getPrice() != null) {
supplierItemVo.setCurrentPrice(PriceUtil.convertPriceFenToYuan(auctionRecord.getPrice()));
} else {
//查询商品起拍价
//AuctionConfig auctionConfig = auctionConfigDao.findByItemId(supplierItem.getId());
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