| | |
| | | |
| | | // 精琢科技 2022-03-03 LJPH-CC5ANQ 【委托】之前会传一个1900-1-1的日期,导致报错,现在改为传null zxk start |
| | | // gzw fix 20220427 1900-1-1 send null |
| | | if(rr.PurchaseOrInstallationDate__c != null && rr.PurchaseOrInstallationDate__c != Date.newInstance(1900, 1, 1)){ |
| | | if(rr.PurchaseOrInstallationDate__c != null && rr.PurchaseOrInstallationDate__c.year() != 1900){ |
| | | RepairRequest.INSTALLATION_DATE = NFMUtil.formatDate2Str(rr.PurchaseOrInstallationDate__c) ; |
| | | }else{ |
| | | RepairRequest.INSTALLATION_DATE = null; |
| | |
| | | RepairRequest.INITIATION_DATE = NFMUtil.formatDate2Str(qr.QIS_Submit_day__c) ; |
| | | // 精琢科技 2022-03-03 LJPH-CC5ANQ 【委托】之前会传一个1900-1-1的日期,导致报错,现在改为传null zxk start |
| | | // gzw fix 20220427 1900-1-1 send null |
| | | if(qr.QISInstallDate__c != null && qr.QISInstallDate__c != Date.newInstance(1900, 1, 1)){ |
| | | if(qr.QISInstallDate__c != null && qr.QISInstallDate__c.year() != 1900){ |
| | | RepairRequest.INSTALLATION_DATE = NFMUtil.formatDate2Str(qr.QISInstallDate__c) ; |
| | | }else{ |
| | | RepairRequest.INSTALLATION_DATE = null; |