XMTT 6 years ago
parent
commit
968c8caa94

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

97
			sb.append("pid=").append(this.platformId).append("&id=").append(demand.getId()).append("&title=")
97
			sb.append("pid=").append(this.platformId).append("&id=").append(demand.getId()).append("&title=")
98
					.append(URLEncoder.encode(demand.getTitle(), "UTF-8")).append("&descp=").append(URLEncoder.encode(demand.getDescp(), "UTF-8"))
98
					.append(URLEncoder.encode(demand.getTitle(), "UTF-8")).append("&descp=").append(URLEncoder.encode(demand.getDescp(), "UTF-8"))
99
					.append("&linkOrg=").append(URLEncoder.encode(demand.getLinkOrg(), "UTF-8")).append("&city=")
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
			dsl.setParam(sb.toString());
107
			dsl.setParam(sb.toString());
103
			dsl.setTid(DateUtil.formatDateTime(System.currentTimeMillis()));
108
			dsl.setTid(DateUtil.formatDateTime(System.currentTimeMillis()));
104
			demandDao.insert(con, dsl);
109
			demandDao.insert(con, dsl);