|
|
@@ -1,80 +0,0 @@
|
|
|
-package com.ydtech.nai.controller;
|
|
|
-
|
|
|
-import com.ydtech.nai.excelvo.OfflineExcelVO;
|
|
|
-import com.ydtech.nai.excelvo.SettlementVO;
|
|
|
-import org.apache.commons.collections4.ListUtils;
|
|
|
-
|
|
|
-import java.math.BigDecimal;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Arrays;
|
|
|
-import java.util.List;
|
|
|
-import java.util.stream.Collectors;
|
|
|
-
|
|
|
-/**
|
|
|
- * @ClassName test
|
|
|
- * @Description: TODO
|
|
|
- * @Author
|
|
|
- * @Date 2021/7/7
|
|
|
- **/
|
|
|
-public class test {
|
|
|
- /* public static void main(String[] args) {
|
|
|
-
|
|
|
- List<SettlementVO> list = new ArrayList<>();
|
|
|
- SettlementVO settlementVO = new SettlementVO();
|
|
|
- SettlementVO settlementVO2 = new SettlementVO();
|
|
|
- settlementVO2.setPolicyNo("6140401033020210010402");
|
|
|
- settlementVO2.setLicenseNo("晋K8922D2");
|
|
|
- settlementVO2.setMount("1232");
|
|
|
- list.add(settlementVO2);
|
|
|
- settlementVO.setPolicyNo("6140401033020210010401");
|
|
|
- settlementVO.setLicenseNo("晋K8922D");
|
|
|
- settlementVO.setMount("123");
|
|
|
- list.add(settlementVO);
|
|
|
- List<SettlementVO> list1 = new ArrayList<>();
|
|
|
- SettlementVO settlementVO1 = new SettlementVO();
|
|
|
- settlementVO1.setPolicyNo("6140401033020210010401");
|
|
|
- settlementVO1.setLicenseNo("晋K8922D");
|
|
|
- settlementVO1.setMount("123");
|
|
|
-
|
|
|
- list1.add(settlementVO1);
|
|
|
- System.out.println("list====" + list);
|
|
|
- List<SettlementVO> settlementVOS = ListUtils.removeAll(list, list1);
|
|
|
- System.out.println("settlementVOS====" + settlementVOS);
|
|
|
- System.out.println("list1====" + list1);
|
|
|
- if (list1.removeAll(list)) {
|
|
|
- System.out.println("删除成功!");
|
|
|
-
|
|
|
- System.out.println(list);
|
|
|
-
|
|
|
- } else {
|
|
|
- System.out.println("删除失败!");
|
|
|
-
|
|
|
- System.out.println(list);
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-*/
|
|
|
-
|
|
|
-
|
|
|
- /* public static void main(String[] args) {
|
|
|
- List<String> words = Arrays.asList("a", "a", "b", "c", "d", "d", "e", "f", "f", "f", "g");
|
|
|
- ArrayList<String> wordsList = new ArrayList<>(words);
|
|
|
- System.out.println(wordsList);
|
|
|
- List<String> listWithoutDuplicates = wordsList.stream().distinct().collect(Collectors.toList());
|
|
|
- System.out.println(listWithoutDuplicates);
|
|
|
- }*/
|
|
|
- public static void main(String[] args) {
|
|
|
- String str1 = "1";
|
|
|
-
|
|
|
- String str2 = "0.95";
|
|
|
-
|
|
|
-
|
|
|
- BigDecimal num1 = new BigDecimal(str1);
|
|
|
-
|
|
|
- BigDecimal num2 = new BigDecimal(str2);
|
|
|
- num1.add(num2);
|
|
|
- System.out.println(num1);
|
|
|
- }
|
|
|
-
|
|
|
-}
|