Commit 90de0eb0 authored by shiyu's avatar shiyu

退款重新上架

parent 3328891c
...@@ -101,6 +101,8 @@ public class SupplierItemDaoImpl implements SupplierItemDao { ...@@ -101,6 +101,8 @@ public class SupplierItemDaoImpl implements SupplierItemDao {
supplierItem.setStock(stock); supplierItem.setStock(stock);
if (stock <= 0) { if (stock <= 0) {
supplierItem.setIsOnSale(false); supplierItem.setIsOnSale(false);
} else {
supplierItem.setIsOnSale(true);
} }
SupplierItemExample supplierItemExample = new SupplierItemExample(); SupplierItemExample supplierItemExample = new SupplierItemExample();
SupplierItemExample.Criteria criteria = supplierItemExample.createCriteria(); SupplierItemExample.Criteria criteria = supplierItemExample.createCriteria();
......
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