in 条件 @param mapList @return
(List<String> mapList)
| 632 | * @return |
| 633 | */ |
| 634 | public static String getInCondition(List<String> mapList){ |
| 635 | if(org.apache.commons.lang3.ObjectUtils.isNotEmpty(mapList)){ |
| 636 | StringBuilder sbatchIds = new StringBuilder(" ("); |
| 637 | for(int i =0 ; i<mapList.size() ;i++){ |
| 638 | if(i==0){ |
| 639 | sbatchIds.append(" '"+mapList.get(i)+"'"); |
| 640 | }else { |
| 641 | sbatchIds.append(",'"+mapList.get(i)+"'"); |
| 642 | } |
| 643 | } |
| 644 | sbatchIds.append(" )"); |
| 645 | return sbatchIds.toString(); |
| 646 | } |
| 647 | return null; |
| 648 | } |
| 649 | |
| 650 | /** |
| 651 | * 剔除original 中的 eliminate元素 |
nothing calls this directly
no outgoing calls
no test coverage detected