| | |
| | | ETFlag = true; |
| | | } |
| | | |
| | | List<Account> accinfo = new List<Account>(); |
| | | List<Account> accinfo = New List<Account>(); |
| | | //--------UpdateStart-----XHL--------------20181008------------- |
| | | accinfo = [ |
| | | SELECT Product_Limit_Date__c, Product_Limit_DateENG__c |
| | | accinfo = [SELECT Product_Limit_Date__c,Product_Limit_DateENG__c |
| | | FROM Account |
| | | WHERE id = :accountid |
| | | ]; |
| | | WHERE id =:accountid]; |
| | | if (accinfo.size() > 0) { |
| | | if (EngFlag) { |
| | | product_Limit = accinfo[0].Product_Limit_DateENG__c; |
| | | } else if (ETFlag) { |
| | | product_Limit = accinfo[0].Product_Limit_Date__c; |
| | | } |
| | | |
| | | } |
| | | System.debug('product_Limit==>' + product_Limit); |
| | | data.put('product_Limit', product_Limit); |