Browse Source

客户端需求管理-个人及组织用户需求详情

Antiloveg 8 years ago
parent
commit
17734204f8

+ 32 - 0
src/main/java/com/goafanti/demand/controller/DemandApiController.java

@@ -79,6 +79,38 @@ public class DemandApiController extends CertifyApiController{
 		demandService.saveUserDemand(d, validityPeriodFormattedDate);
 		return res;
 	}
+	
+	/**
+	 * 组织用户详情
+	 */
+	@RequestMapping(value = "/orgDemandDetail", method = RequestMethod.GET)
+	public Result orgDemandDetail(String id) {
+		Result res = new Result();
+
+		if (StringUtils.isBlank(id)) {
+			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到需求ID", "需求ID"));
+			return res;
+		}
+
+		res.setData(demandService.selectOrgDemandDetail(id));
+		return res;
+	}
+
+	/**
+	 * 个人需求详情
+	 */
+	@RequestMapping(value = "/userDemandDetail", method = RequestMethod.GET)
+	public Result userDemandDetail(String id) {
+		Result res = new Result();
+
+		if (StringUtils.isBlank(id)) {
+			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到需求ID", "需求ID"));
+			return res;
+		}
+
+		res.setData(demandService.selectUserDemandDetail(id));
+		return res;
+	}
 
 	/**
 	 * 修改需求