hzd 3 months ago
parent
commit
99116723ab
1 changed files with 4 additions and 0 deletions
  1. 4 0
      application/common/model/Wlps.php

+ 4 - 0
application/common/model/Wlps.php

@@ -16,6 +16,8 @@ class Wlps extends Base
         if(!$v['s_bmid'] || !$v['department_no']){
              Db::connect('db_config_jili')->name('wlps')->where('id',$v['id'])->update(['is_deal'=>2,'reason'=>'发起部门编号或病区编码为空']);
             $this->error = '发起部门编号或病区编码为空';
+            trace("发起部门编号或病区编码为空",'error');
+            trace(json_encode($v),'error');
             return false;
         }
         $start = Db::name('address')->where('del',0)->where('org_id',$orgId)->where('','exp',Db::raw("FIND_IN_SET(2,types)"))->where('third_sn',$v['s_bmid'])->find();
@@ -23,6 +25,8 @@ class Wlps extends Base
         if(!$start || !$end){
               Db::connect('db_config_jili')->name('wlps')->where('id',$v['id'])->update(['is_deal'=>2,'reason'=>'未查找到相关联的发起部门编号或病区编码']);
             $this->error = '未查找到相关联的发起部门编号或病区编码';
+            trace("未查找到相关联的发起部门编号或病区编码",'error');
+            trace(json_encode($v),'error');
             return false;
         }
         $this->startTrans();