解決GAT專案Bug: 用車審批中審批人登入系統後,看不到申請人提交的單子

ZHOU_VIP發表於2017-03-21

描述:警保部下面的部門的人申請的單子,警保部的負責審批的人看不到


解決:

1.點選頁面找到請求url


2.運用阿楠給我的工具,可以獲取後臺的url


拷貝前臺專案到D盤,然後在此處設定好路徑



雙擊testFrom0(),得到


3.找到程式碼


修改程式碼:


修改好程式碼:


斷點列印正確的sql:


斷點列印的錯誤的sql:


select create_time,
       apply_id                as applyId,
       veh_user_name           as vehUserName,
       veh_use_org_id          as vehUseOrgId,
       veh_use_dept_id         as vehUseDeptId,
       veh_use_type            as vehUseType,
       host_no                 as hostNo,
       driver_Name             as driverName,
       approver_Name           as approverName,
       approver_Name           as deptApproverName,
       guarantee_Approver_Name as guaranteeApproverName,
       apply_status,
       passenger_num           as passengerNum,
       is_Guarantee            as isGuarantee
  from vd_veh_use_apply_info t
 where 1 = 1
   and t.apply_status <> 4
   and is_guarantee != 1
   and t.create_org_id = 23551
   and t.create_dept_id = 0
 order by create_time desc

查表發現問題:


因為警保部的單位編號create_dept_id或(update_dept_id)是為0的,而下屬機構都是不同的,要想看到下屬機構,必須要用in


修改好測試OK~~


相關文章