Commit 7e7eeaef authored by shiyu's avatar shiyu

商品列表

parent b0eaf250
...@@ -187,6 +187,12 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService { ...@@ -187,6 +187,12 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
} else { } else {
supplierItemVo.setIsAbleSale(false); supplierItemVo.setIsAbleSale(false);
} }
} else {
if (supplierItem.getIsOnSale()) {
supplierItemVo.setIsAbleSale(true);
} else {
supplierItemVo.setIsAbleSale(false);
}
} }
}); });
return Result.success(PageSearchResult.of(pageInfo, supplierItemVos)); return Result.success(PageSearchResult.of(pageInfo, supplierItemVos));
...@@ -222,6 +228,8 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService { ...@@ -222,6 +228,8 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
} }
if (supplierItem.getStock() == 0 || supplierItem.getIsOnSale()) { if (supplierItem.getStock() == 0 || supplierItem.getIsOnSale()) {
supplierItemVo.setIsAbleSale(true); supplierItemVo.setIsAbleSale(true);
} else {
supplierItemVo.setIsAbleSale(false);
} }
return Result.success(supplierItemVo); return Result.success(supplierItemVo);
} catch (Exception e) { } catch (Exception e) {
......
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