XMTT 6 gadi atpakaļ
vecāks
revīzija
968c8caa94

+ 7 - 2
src/main/java/com/ekexiu/project/platform/demand/DemandService.java

@ -97,8 +97,13 @@ public class DemandService {
97 97
			sb.append("pid=").append(this.platformId).append("&id=").append(demand.getId()).append("&title=")
98 98
					.append(URLEncoder.encode(demand.getTitle(), "UTF-8")).append("&descp=").append(URLEncoder.encode(demand.getDescp(), "UTF-8"))
99 99
					.append("&linkOrg=").append(URLEncoder.encode(demand.getLinkOrg(), "UTF-8")).append("&city=")
100
					.append(URLEncoder.encode(demand.getCityStr(), "UTF-8")).append("&invalidDay=").append(demand.getInvalidDay()).append("&cost=")
101
					.append(URLEncoder.encode(demand.getCostStr(), "UTF-8")).append("&duration=").append(URLEncoder.encode(demand.getDurationStr(), "UTF-8"));
100
					.append(URLEncoder.encode(demand.getCityStr(), "UTF-8")).append("&invalidDay=").append(demand.getInvalidDay());
101
			if (demand.getDurationStr() != null) {
102
				sb.append("&duration=").append(URLEncoder.encode(demand.getDurationStr(), "UTF-8"));
103
			}
104
			if (demand.getCostStr() != null) {
105
				sb.append(URLEncoder.encode(demand.getCostStr(), "UTF-8"));
106
			}
102 107
			dsl.setParam(sb.toString());
103 108
			dsl.setTid(DateUtil.formatDateTime(System.currentTimeMillis()));
104 109
			demandDao.insert(con, dsl);