示例#1
0
 @Override
 public void init() {
   EnumRange range = new EnumRange();
   Map<String, String> map = new LinkedHashMap<String, String>();
   map.put("0", "男");
   map.put("1", "女");
   range.setResult(map);
   addRange(range);
 }
示例#2
0
  /**
   * @param sourceBCList
   * @return
   */
  @Override
  public BusinessComponent query(BOProperty sourceBop) {
    Map<String, String> streetMap = new LinkedHashMap<String, String>();
    EnumRange.addPlease(streetMap);
    if (StringUtils.isEqual(sourceBop.getValue().getValue(), "9905")) {
      streetMap.put("1", "街道1");
      streetMap.put("2", "街道2");
      streetMap.put("3", "街道3");
      streetMap.put("4", "街道4");
    }

    EnumRange streetRange = new EnumRange();
    streetRange.setResult(streetMap);
    BCRange bcRange = new BCRange();
    bcRange.addRange(streetRange);
    setRange(bcRange);
    return this;
  }