转移字符串

This commit is contained in:
2023-03-29 15:30:36 +08:00
parent 70e89a8b53
commit 5362cd2a74
10 changed files with 570 additions and 45 deletions
+16 -1
View File
@@ -7,6 +7,7 @@ use App\Model\OrderPrescription;
use App\Model\User;
use App\Model\UserPharmacist;
use App\Model\UserPharmacistInfo;
use Hyperf\DbConnection\Db;
/**
* 药师
@@ -157,7 +158,21 @@ class UserPharmacistService extends BaseService
return fail(HttpEnumCode::HTTP_ERROR,"处方已审核,请勿重复审核");
}
//
Db::beginTransaction();
try {
// 修改处方审核状态
$data = array();
Db::commit();
} catch (\Exception $e) {
Db::rollBack();
return fail(HttpEnumCode::HTTP_ERROR, $e->getMessage());
}
// 新增商品订单表
// 新增商品订单明细表
// 新增未支付取消订单队列