MCPcopy Create free account
hub / github.com/Bit0r/java-util / getInCondition

Method getInCondition

src/main/java/util/CommonUtils.java:634–648  ·  view source on GitHub ↗

in 条件 @param mapList @return

(List<String> mapList)

Source from the content-addressed store, hash-verified

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元素

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected