public String edit() { entity = keywordsTacticsImpl.findTaskById(id); String dtStartTime = entity.getDtStartTime(); String dtEndTime = entity.getDtEndTime(); entity.setDtStartTime(dtStartTime.substring(0, 10)); entity.setDtEndTime(dtEndTime.substring(0, 10)); List<FtbKeyValueGetterFilter> kList = keywordsTacticsImpl.findKeyById(id); if (kList != null && kList.size() > 0) { vcFilterKeyValue1 = ""; vcFilterKeyValue2 = ""; businessIds = ""; business = ""; for (FtbKeyValueGetterFilter key : kList) { if (key.isExactMark() && isRepeat(vcFilterKeyValue1, key.getVcFilterKeyValue())) { vcFilterKeyValue1 = vcFilterKeyValue1 + key.getVcFilterKeyValue() + ","; } if (!key.isExactMark() && isRepeat(vcFilterKeyValue2, key.getVcFilterKeyValue())) { vcFilterKeyValue2 = vcFilterKeyValue2 + key.getVcFilterKeyValue() + ","; } if (isRepeat(business, key.getVcSoName())) { businessIds = businessIds + "0:" + key.getNmSoTypeId() + ","; business = business + key.getVcSoName() + ","; } } businessIds = businessIds.substring(0, businessIds.length() - 1); business = business.substring(0, business.length() - 1); if (!vcFilterKeyValue1.equals("")) { vcFilterKeyValue1 = vcFilterKeyValue1.substring(0, vcFilterKeyValue1.length() - 1); } if (!vcFilterKeyValue2.equals("")) { vcFilterKeyValue2 = vcFilterKeyValue2.substring(0, vcFilterKeyValue2.length() - 1); } } return "edit"; }