删除锁定库存,新增同步处方平台kucun

This commit is contained in:
2023-03-15 19:16:41 +08:00
parent f2450cbcd5
commit d19a1271d3
8 changed files with 164 additions and 52 deletions
+1 -1
View File
@@ -1188,7 +1188,7 @@ class UserDoctorService extends BaseService
}
// 检测药品库存数据
if ($item['prescription_product_num'] > $product['ProductPlatformAmount']['real_stock']) {
if ($item['prescription_product_num'] > $product['ProductPlatformAmount']['stock']) {
// 库存不足
Db::rollBack();
return fail(HttpEnumCode::HTTP_ERROR, "药品" . $product['product_name'] . "库存不足");