| | |
| | | |
| | | |
| | | Map<String, List<Repair__c>> repaMap = new Map<String, List<Repair__c>>(); |
| | | List<Repair__c> repList = [select id, Status1__c, Status2__c, Return_Without_Repair_Reason__c, Contract_status__c, Return_Without_Repair_IF__c, Failure_Occurrence_Date__c, |
| | | List<Repair__c> repList = [select id, Status1__c, Status2__c, Return_Without_Repair_Reason__c, Contract_status__c, Return_Without_Repair_IF__c, Failure_Occurrence_Date__c,CancellationReason__c, |
| | | Delivered_Product__c |
| | | // LJPH-C67A6E gzw 逻辑fix start |
| | | ,FSE_ApplyForRepair_Day__c,Contract_Start_Date__c,Contract_End_Date__c |
| | |
| | | if (rList[0] != null) { |
| | | if (rList[0].Return_Without_Repair_IF__c == true) { |
| | | //判断弃修的逻辑 |
| | | // 20230207“弃修”“修理中”设备判断逻辑修改 start |
| | | if (rList[0].Return_Without_Repair_Reason__c == 'I/F理由、確認' &&(rList[0].CancellationReason__c == '报价单到期' |
| | | || rList[0].CancellationReason__c == '废弃' || rList[0].CancellationReason__c == '购买新品' || rList[0].CancellationReason__c == '零件停产' |
| | | || rList[0].CancellationReason__c == '零件已停止生产' || rList[0].CancellationReason__c == '到其他公司修理' || rList[0].CancellationReason__c == '其他' |
| | | || rList[0].CancellationReason__c == '修理价格高' || rList[0].CancellationReason__c == '坚持继续使用' || rList[0].CancellationReason__c == '无法修理' |
| | | || rList[0].CancellationReason__c == '修理价格太高' || rList[0].CancellationReason__c == '用户坚持继续使用' || rList[0].CancellationReason__c == '无法修理返品')) { |
| | | if (reason != null) { |
| | | if (reason.contains('修理中')) { |
| | | a.Reson_Can_not_Warranty__c = reason.replace('修理中', ''); |
| | | } |
| | | if (!reason.contains('弃修')) { |
| | | a.Reson_Can_not_Warranty__c = reason + '弃修'; |
| | | } |
| | | } else { |
| | | a.Reson_Can_not_Warranty__c = '弃修'; |
| | | } |
| | | } |
| | | // 20230207“弃修”“修理中”设备判断逻辑修改 end |
| | | if (rList[0].Return_Without_Repair_Reason__c == '1.修理价格太高' || rList[0].Return_Without_Repair_Reason__c == '2.到其他公司修理' |
| | | || rList[0].Return_Without_Repair_Reason__c == '4.坚持继续使用' || rList[0].Return_Without_Repair_Reason__c == '3.报价单超期' |
| | | || rList[0].Return_Without_Repair_Reason__c == '5.废弃' || rList[0].Return_Without_Repair_Reason__c == '6.购买新品' |
| | | || rList[0].Return_Without_Repair_Reason__c == '8.乾燥') { |
| | | //ass = assMap.get(rpc.Delivered_Product__c); |
| | | if (reason != null) { |
| | | if (reason.contains('修理中')) { |
| | | a.Reson_Can_not_Warranty__c = reason.replace('修理中', ''); |
| | | } |
| | | if (!reason.contains('弃修')) { |
| | | a.Reson_Can_not_Warranty__c = reason + '弃修'; |
| | | } |