|
|
|
@ -421,15 +421,6 @@ WHERE
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($u_mainList) {
|
|
|
|
if ($u_mainList) {
|
|
|
|
DB::commit();
|
|
|
|
DB::commit();
|
|
|
|
//通知pacs
|
|
|
|
|
|
|
|
$pacs=new CSharpController();
|
|
|
|
|
|
|
|
foreach ($oldMainInfos as $key => $oldMainInfo) {
|
|
|
|
|
|
|
|
if ($do_type == 2) {
|
|
|
|
|
|
|
|
$pacs->CancelApply($oldMainInfo->entrust_id);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$oldMainInfo->roster_id=$planInfo->id;
|
|
|
|
|
|
|
|
$pacs->SaveApply($oldMainInfo->entrust_id);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(config('app.globals.预约完成短信通知')==1){
|
|
|
|
if(config('app.globals.预约完成短信通知')==1){
|
|
|
|
$this->SendMsg($oldMainInfos,$do_type);
|
|
|
|
$this->SendMsg($oldMainInfos,$do_type);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -540,8 +531,6 @@ WHERE
|
|
|
|
$u_count = DB::table('s_source_roster_detail_count')->where(['roster_detail_id' => $mainInfo->roster_id, 'appointment_type_id' => $mainInfo->appointment_type_id])->decrement('used_count');
|
|
|
|
$u_count = DB::table('s_source_roster_detail_count')->where(['roster_detail_id' => $mainInfo->roster_id, 'appointment_type_id' => $mainInfo->appointment_type_id])->decrement('used_count');
|
|
|
|
if ($u_mainList && $u_count) {
|
|
|
|
if ($u_mainList && $u_count) {
|
|
|
|
DB::commit();
|
|
|
|
DB::commit();
|
|
|
|
$pacs=new CSharpController();
|
|
|
|
|
|
|
|
$pacs->CancelApply($mainInfo->entrust_id);
|
|
|
|
|
|
|
|
return \Yz::Return(true, '取消成功', []);
|
|
|
|
return \Yz::Return(true, '取消成功', []);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
DB::rollBack();
|
|
|
|
DB::rollBack();
|
|
|
|
|