| | |
| | | Account_Service_Of_Target__c asItem = new Account_Service_Of_Target__c(); |
| | | asItem.Account_HP__c = mapId; |
| | | |
| | | //过去1、2、3年维修合同数量 |
| | | asItem.Last_Years_Contract_Count__c = Last1YearCountMap.get(mapId); |
| | | asItem.Last_Two_Years_Contract_Count__c = Last2YearCountMap.get(mapId); |
| | | asItem.Last_Three_Year_Contract_Count__c = Last3YearCountMap.get(mapId); |
| | | //过去1、2、3年维修合同数量(按合同日计算) |
| | | // asItem.Last_Years_Contract_Count__c = Last1YearCountMap.get(mapId); |
| | | // asItem.Last_Two_Years_Contract_Count__c = Last2YearCountMap.get(mapId); |
| | | // asItem.Last_Three_Year_Contract_Count__c = Last3YearCountMap.get(mapId); |
| | | |
| | | //过去第一年合同日是否有合同 |
| | | if(Last1YearCountMap.get(mapId)!=0 && Last1YearCountMap.get(mapId)!=null){ |
| | | asItem.IF_Last_Years_Contract__c = '1'; |
| | | }else{ |
| | | asItem.IF_Last_Years_Contract__c = '0'; |
| | | } |
| | | //过去第二年合同日是否有合同 |
| | | if(Last2YearCountMap.get(mapId)!=0 && Last2YearCountMap.get(mapId)!=null){ |
| | | asItem.IF_Last_Two_Years_Contract__c = '1'; |
| | | }else{ |
| | | asItem.IF_Last_Two_Years_Contract__c = '0'; |
| | | } |
| | | //过去第三年合同日是否有合同 |
| | | if(Last3YearCountMap.get(mapId)!=0 && Last3YearCountMap.get(mapId)!=null){ |
| | | asItem.IF_Last_Three_Years_Contract__c = '1'; |
| | | }else{ |
| | | asItem.IF_Last_Three_Years_Contract__c = '0'; |
| | | } |
| | | |
| | | asItem.OCSM_Period_half__c = OCSM_Period_half; |
| | | asItem.OCSM_Period__c = OCSM_Period; |