库存查询不传值返回查全部;
This commit is contained in:
+2
-1
@@ -60,7 +60,8 @@ public class MaterialInventoryImpl extends ServiceImpl<MaterialInventoryMapper,
|
||||
} else if ("all".equals(queryRule)) {
|
||||
return materialInventoryMapper.queryList(materialInventoryDO);
|
||||
} else {
|
||||
throw new ServiceException("查询规则不存在");
|
||||
//不传返回全部
|
||||
return materialInventoryMapper.queryList(materialInventoryDO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user