修复bug,优化体验

This commit is contained in:
ShouChen 2022-04-30 00:39:00 +08:00
parent 6aaa23b63e
commit 8e3fb3e3f5
3 changed files with 5 additions and 4 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>icu.mmmc</groupId>
<artifactId>InventoryProMax</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.0.0-Release</version>
<name>InventoryProMax</name>
<description>仓储管理ProMax</description>

View File

@ -104,9 +104,9 @@ public class InventoryService {
Integer quantity = inventoryMapper.getStoreQuantity(invId, item.getProId());
if (quantity == null) {
quantity = 0;
if (!Objects.equals(item.getStatus(), ProductStatus.TAKE_DOWN)) {
item.setStatus(1);
}
}
if (!Objects.equals(item.getStatus(), ProductStatus.TAKE_DOWN) && quantity == 0) {
item.setStatus(1);
}
item.setQuantity(quantity);
item.setInvId(invId);

View File

@ -147,6 +147,7 @@
OR sender LIKE #{searchStr}
OR sender_phone LIKE #{searchStr}
OR remarks LIKE #{searchStr}
ORDER BY id DESC
</select>
<!-- 查询入库记录清单物品 -->