Privacy policy URL

       This software respects and protects the privacy of all users who use the service. In order to provide you with more accurate and personalized services, this software will use and disclose your personal information in accordance with the provisions of this privacy policy. However, the software will treat this information with a high degree of diligence and prudence. Except as otherwise provided in this privacy policy, this software will not disclose or provide such information to third parties without your prior permission. This software will update this privacy policy from time to time. When you agree to this Software Service Use Agreement, you are deemed to have agreed to the full content of this Privacy Policy. This privacy policy is an integral part of the Software Service Usage Agreement.
      1. Scope of application a) When you use this software network service, this software automatically receives and records information on your mobile phone, including but not limited to your health data, language used, access date and time, software and hardware features information and web page records you need.
       2. Use of information a) After obtaining your data, the software will upload it to the server to generate your ranking data so that you can better use the service.
       3. Information Disclosure a) This software will not disclose your information to untrusted third parties. (b) Disclosure to third parties or administrative or judicial bodies in accordance with relevant provisions of the law or requirements of administrative or judicial bodies; c) If you violate relevant laws, regulations or rules of China, you need to disclose to third parties;
       4. Information Storage and Exchange The information and data collected by this software will be stored on the server of this software and/or its affiliated companies. These information and data may be transmitted to your country, region or overseas where the information and data collected by this software are located and accessed, stored and displayed abroad.
        5. Information security a) When using this software network service to conduct online transactions, you will inevitably disclose your personal information, such as contact information or postal address, to the counterparty or potential counterparty. Please protect your personal information properly and provide it to others only when necessary. If you find that your personal information is leaked, please contact the software customer service immediately so that the software can take appropriate measures.

String productUrl = ""; if (null != resultList && resultList.size() > 0) { if ("2".equals(agentInfo.getIdentityType())) { for (int i = 0; i < resultList.size(); i++) { ProductInfo productInfo = new ProductInfo(); productInfo.setInternal_id(resultList.get(i).getInternal_id()); productInfo.setProduct_abbr(resultList.get(i).getProduct_abbr()); //整理中介产品信息 productUrl = productService.getProductUrl(resultList.get(i), agentInfo.getIdentityType(), agentStaffVo, request); productInfo.setProductUrl(productUrl); productInfo.setInsuranceNotice(Commonconst.INSURANCE_NOTICE_2); productInfo.setPrivacyPolicy(Commonconst.PRIVACY_POLICY); productInfo.setPrivacyPolicyUrl(productService.getPrivacyPolicyUrl(request)); productInfoList.add(productInfo); } } else { for (int i = 0; i < resultList.size(); i++) { ProductInfo productInfo = new ProductInfo(); productInfo.setInternal_id(resultList.get(i).getInternal_id()); productInfo.setProduct_abbr(resultList.get(i).getProduct_abbr()); //整理非中介渠道产品信息 productUrl = productService.getProductUrl(resultList.get(i), agentInfo.getIdentityType(), agentStaffVo, request); productInfo.setProductUrl(productUrl); if ("ANHMB".equals(resultList.get(i).getInternal_id())) { productInfo.setInsuranceNotice(Commonconst.INSURANCE_NOTICE_3); } else if ("RNMRB02".equals(resultList.get(i).getInternal_id())) { productInfo.setInsuranceNotice(Commonconst.INSURANCE_NOTICE_4); } else if ("ANMRB02".equals(resultList.get(i).getInternal_id()) || "ANMMB03".equals(resultList.get(i).getInternal_id()) || "ANMRB03".equals(resultList.get(i).getInternal_id()) || "ANMRB04".equals(resultList.get(i).getInternal_id()) || "ANEMRB".equals(resultList.get(i).getInternal_id()) || "BNFIB".equals(resultList.get(i).getInternal_id())) { productInfo.setInsuranceNotice(Commonconst.INSURANCE_NOTICE_1); } else { productInfo.setInsuranceNotice(Commonconst.INSURANCE_NOTICE_2); } productInfoList.add(productInfo); } } }缩短执行时间
05-31
这段代码的执行时间可以通过以下几个方面进行缩短: 1. 使用增强for循环:可以将for循环改成增强for循环,这样可以简化代码,同时也可以提高执行效率。例如: ``` for (ProductInfo result : resultList) { ProductInfo productInfo = new ProductInfo(); productInfo.setInternal_id(result.getInternal_id()); productInfo.setProduct_abbr(result.getProduct_abbr()); //省略中间代码 productInfoList.add(productInfo); } ``` 2. 减少重复计算:在for循环中,多次调用get方法获取相同的值,可以将这些值缓存起来,减少重复计算。例如: ``` for (ProductInfo result : resultList) { ProductInfo productInfo = new ProductInfo(); String internal_id = result.getInternal_id(); String product_abbr = result.getProduct_abbr(); productInfo.setInternal_id(internal_id); productInfo.setProduct_abbr(product_abbr); //省略中间代码 productInfoList.add(productInfo); } ``` 3. 简化判断逻辑:在第二个for循环中,对于不同的产品内部id,需要设置不同的保险提示语。可以使用Map来存储每个内部id对应的提示语,然后在for循环中查找对应的提示语即可。例如: ``` Map<String, String> insuranceNoticeMap = new HashMap<>(); insuranceNoticeMap.put("ANHMB", Commonconst.INSURANCE_NOTICE_3); insuranceNoticeMap.put("RNMRB02", Commonconst.INSURANCE_NOTICE_4); insuranceNoticeMap.put("ANMRB02", Commonconst.INSURANCE_NOTICE_1); insuranceNoticeMap.put("ANMMB03", Commonconst.INSURANCE_NOTICE_1); insuranceNoticeMap.put("ANMRB03", Commonconst.INSURANCE_NOTICE_1); insuranceNoticeMap.put("ANMRB04", Commonconst.INSURANCE_NOTICE_1); insuranceNoticeMap.put("ANEMRB", Commonconst.INSURANCE_NOTICE_1); insuranceNoticeMap.put("BNFIB", Commonconst.INSURANCE_NOTICE_1); for (ProductInfo result : resultList) { ProductInfo productInfo = new ProductInfo(); String internal_id = result.getInternal_id(); String product_abbr = result.getProduct_abbr(); productInfo.setInternal_id(internal_id); productInfo.setProduct_abbr(product_abbr); //省略中间代码 productInfo.setInsuranceNotice(insuranceNoticeMap.getOrDefault(internal_id, Commonconst.INSURANCE_NOTICE_2)); productInfoList.add(productInfo); } ``` 通过以上优化措施,可以缩短代码的执行时间,提高代码的效率。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值