| | |
| | | Order_No__c,Account.Name,Status,Department_Class__c,Hospital__r.Owner.Name, |
| | | Hospital__r.Owner.Phone,Installation_Site__c,CurrentContract__c, |
| | | Product2.Asset_Model_No__c,Hospital__r.Name,Department_Class__r.Name , |
| | | Department_Class__r.Id,Ji_Zhong_Guan_Li_Ku_Cun__c |
| | | Department_Class__r.Id,Ji_Zhong_Guan_Li_Ku_Cun__c,Account.RecordTypeId |
| | | ,Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c |
| | | ,Account.Parent.FSE_SP_Main_Leader__r.Work_Location__c |
| | | FROM Asset where Id != null AND Repairing_Count__c >= 0 AND SerialNumber like :serialNumber LIMIT 100 |
| | | |
| | | ]; |
| | |
| | | url += joint_4 + RepairApplicantHospital_Id + joint_1 + repairSubOrder.Hospital__r.Name;//报修人医院 |
| | | url += joint_4 + RepairApplicantDepartment_Id + joint_1 + repairSubOrder.Department__r.Name;//报修人科室 |
| | | |
| | | if (repairSubOrder.ProblemDescription__c != null) { |
| | | url += joint_4 + Repair_Detail_Id + joint_1 + repairSubOrder.ProblemDescription__c; |
| | | if (repairSubOrder.ResponseResultDesc__c != null) { //2022/04/07 zhangyuheng ProblemDescription__c>ResponseResultDesc__c |
| | | url += joint_4 + Repair_Detail_Id + joint_1 + repairSubOrder.ResponseResultDesc__c; |
| | | } |
| | | url += joint_4 + guzhang + joint_1 + NFMUtil.formatDateTime2StrSprit(repairSubOrder.FaultTime__c); |
| | | //add wangweipeng 2022/02/11 start |
| | |
| | | url += joint_4 + shouliri + joint_1 + NFMUtil.formatDateTime2StrSprit(repairSubOrder.ReceiverTime__c); |
| | | |
| | | //add wangweipeng 2022/01/26 start |
| | | url += joint_4 + SalesOfficeCode_selection_Id+ joint_1 + ast.Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c;//修理品返送地 |
| | | // url += joint_4 + SalesOfficeCode_selection_Id+ joint_1 + ast.Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c;//修理品返送地 //2022/4/7 zhangyuheng 注释 |
| | | //add wangweipeng 2022/01/26 end |
| | | //add zhangyuheng 2022/04/07 start |
| | | if (String.isNotBlank(ast.Account.RecordTypeId)) { |
| | | if (ast.Account.RecordTypeId == '01210000000QemQAAS') { //战略科室 |
| | | if (String.isNotBlank(ast.Account.Parent.FSE_SP_Main_Leader__r.Work_Location__c)) { |
| | | url += joint_4 + SalesOfficeCode_selection_Id+ joint_1 + ast.Account.Parent.FSE_SP_Main_Leader__r.Work_Location__c;//修理品返送地 |
| | | }else { |
| | | // continue; |
| | | } |
| | | } |
| | | if (ast.Account.RecordTypeId == '01210000000QfmRAAS') { //科室 |
| | | if (String.isNotBlank(ast.Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c)) { |
| | | url += joint_4 + SalesOfficeCode_selection_Id+ joint_1 + ast.Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c;//修理品返送地 |
| | | }else { |
| | | // continue; |
| | | } |
| | | } |
| | | } |
| | | //add zhangyuheng 2022/04/07 end |
| | | |
| | | url += joint_3 + Incharge_Staff_Id + joint_1 + repairSubOrder.Owner.Name; |
| | | url += joint_3 + Incharge_Staff_Id + joint_2 + repairSubOrder.OwnerId; |