Browse Source

按资源ID查资源申请,返回资源所有者姓名和资源名称。

zzy.zhiyuan.foxmail 8 years ago
parent
commit
b2958aa7e3

+ 157 - 22
src/main/java/com/ekexiu/portal/dao/AssessDao.java

@ -4,51 +4,186 @@ import java.sql.Connection;
4 4
import java.sql.SQLException;
5 5
import java.util.List;
6 6

7
import org.jfw.apt.annotation.Nullable;
8 7
import org.jfw.apt.orm.annotation.dao.DAO;
9 8
import org.jfw.apt.orm.annotation.dao.method.From;
10 9
import org.jfw.apt.orm.annotation.dao.method.operator.DeleteWith;
11 10
import org.jfw.apt.orm.annotation.dao.method.operator.Insert;
12
import org.jfw.apt.orm.annotation.dao.method.operator.SelectList;
13
import org.jfw.apt.orm.annotation.dao.method.operator.SelectOne;
14 11
import org.jfw.apt.orm.annotation.dao.method.operator.Update;
15 12

16 13
import com.ekexiu.portal.po.Assess;
14
import com.ekexiu.portal.po.Professor;
15
import com.ekexiu.portal.po.Resource;
17 16

18 17
@DAO
19
public interface AssessDao {
18
public abstract class AssessDao {
20 19
	@Insert
21
	public int insert(Connection con, Assess assess) throws SQLException;
20
	public abstract int insert(Connection con, Assess assess) throws SQLException;
22 21
	
23 22
	@Update
24
	public int update(Connection con, Assess assess) throws SQLException;
23
	public abstract int update(Connection con, Assess assess) throws SQLException;
25 24
	
26
	@SelectOne
27
	@Nullable
28
	public Assess query(Connection con, String assessId) throws SQLException;
25
	public com.ekexiu.portal.po.Assess query(java.sql.Connection con,java.lang.String assessId) throws java.sql.SQLException{
26
        int _m_1 = 1;
27
        String sql = "SELECT ASSESS_ID,STAR_LEVEL,ASSESS.DESCP,ASSESS.OPERATION_ID,ASSESS.RESOURCE_ID,ASSESS.PROFESSOR_ID,RESOURCE_NAME,PROFESSOR.NAME FROM ASSESS INNER JOIN RESOURCE ON ASSESS.RESOURCE_ID = RESOURCE.RESOURCE_ID INNER JOIN PROFESSOR ON ASSESS.PROFESSOR_ID = PROFESSOR.ID WHERE ASSESS_ID = ?";
28
        java.sql.PreparedStatement ps = con.prepareStatement(sql);
29
        try{
30
            ps.setString(_m_1++,assessId);
31
            java.sql.ResultSet rs = ps.executeQuery();
32
            try{
33
                if(rs.next()){
34
                    com.ekexiu.portal.po.Assess _result = new com.ekexiu.portal.po.Assess();
35
                    _result.setAssessId(rs.getString(1));
36
                    _result.setStarLevel(rs.getInt(2));
37
                    java.lang.String _m_2 = rs.getString(3);
38
                    if(rs.wasNull()){
39
                        _m_2 = null;
40
                    }
41
                    _result.setDescp(_m_2);
42
                    _result.setOperationId(rs.getString(4));
43
                    Resource resource = new Resource();
44
                    resource.setResourceId(rs.getString(5));
45
                    Professor professor = new Professor();
46
                    professor.setId(rs.getString(6));
47
                    resource.setResourceName(rs.getString(7));
48
                    _result.setResource(resource);
49
                    professor.setName(rs.getString(8));
50
                    _result.setProfessor(professor);
51
                    return _result;
52
                }else{
53
                    return null;
54
                }
55
            }finally{
56
                try{rs.close();}catch(Exception _m_3){}
57
            }
58
        }finally{
59
            try{ps.close();}catch(Exception _m_4){}
60
        }
61
    }
29 62
	
30
	@SelectList
31
	public List<Assess> query(Connection con) throws SQLException;
63
	public java.util.List<com.ekexiu.portal.po.Assess> queryOper(java.sql.Connection con,java.lang.String operationId) throws java.sql.SQLException{
64
        int _m_1 = 1;
65
        String sql = "SELECT ASSESS_ID,STAR_LEVEL,ASSESS.DESCP,ASSESS.OPERATION_ID,ASSESS.RESOURCE_ID,ASSESS.PROFESSOR_ID,RESOURCE_NAME,PROFESSOR.NAME FROM ASSESS INNER JOIN RESOURCE ON ASSESS.RESOURCE_ID = RESOURCE.RESOURCE_ID INNER JOIN PROFESSOR ON ASSESS.PROFESSOR_ID = PROFESSOR.ID WHERE ASSESS.OPERATION_ID = ?";
66
        java.sql.PreparedStatement ps = con.prepareStatement(sql);
67
        try{
68
            ps.setString(_m_1++,operationId);
69
            java.sql.ResultSet rs = ps.executeQuery();
70
            try{
71
                java.util.List<com.ekexiu.portal.po.Assess> _result = new java.util.ArrayList<com.ekexiu.portal.po.Assess>();
72
                while(rs.next()){
73
                    com.ekexiu.portal.po.Assess _obj =  new com.ekexiu.portal.po.Assess();
74
                    _obj.setAssessId(rs.getString(1));
75
                    _obj.setStarLevel(rs.getInt(2));
76
                    java.lang.String _m_2 = rs.getString(3);
77
                    if(rs.wasNull()){
78
                        _m_2 = null;
79
                    }
80
                    _obj.setDescp(_m_2);
81
                    _obj.setOperationId(rs.getString(4));
82
                    Resource resource = new Resource();
83
                    resource.setResourceId(rs.getString(5));
84
                    Professor professor = new Professor();
85
                    professor.setId(rs.getString(6));
86
                    resource.setResourceName(rs.getString(7));
87
                    _obj.setResource(resource);
88
                    professor.setName(rs.getString(8));
89
                    _obj.setProfessor(professor);
90
                    _result.add(_obj);
91
                }
92
                return _result;
93
            }finally{
94
                try{rs.close();}catch(Exception _m_3){}
95
            }
96
        }finally{
97
            try{ps.close();}catch(Exception _m_4){}
98
        }
99
    }
32 100
	
33
	@SelectList
34
	public List<Assess> queryOper(Connection con, String operationId) throws SQLException;
35
	
36
	@SelectList
37
	public List<Assess> queryRes(Connection con, String resourceId) throws SQLException;
38
	
39
	@SelectList
40
	public List<Assess> queryPro(Connection con, String professorId) throws SQLException;
101
	public java.util.List<com.ekexiu.portal.po.Assess> queryRes(java.sql.Connection con,java.lang.String resourceId) throws java.sql.SQLException{
102
        int _m_1 = 1;
103
        String sql = "SELECT ASSESS_ID,STAR_LEVEL,ASSESS.DESCP,ASSESS.OPERATION_ID,ASSESS.RESOURCE_ID,ASSESS.PROFESSOR_ID,RESOURCE_NAME,PROFESSOR.NAME FROM ASSESS INNER JOIN RESOURCE ON ASSESS.RESOURCE_ID = RESOURCE.RESOURCE_ID INNER JOIN PROFESSOR ON ASSESS.PROFESSOR_ID = PROFESSOR.ID WHERE ASSESS.RESOURCE_ID = ?";
104
        java.sql.PreparedStatement ps = con.prepareStatement(sql);
105
        try{
106
            ps.setString(_m_1++,resourceId);
107
            java.sql.ResultSet rs = ps.executeQuery();
108
            try{
109
                java.util.List<com.ekexiu.portal.po.Assess> _result = new java.util.ArrayList<com.ekexiu.portal.po.Assess>();
110
                while(rs.next()){
111
                    com.ekexiu.portal.po.Assess _obj =  new com.ekexiu.portal.po.Assess();
112
                    _obj.setAssessId(rs.getString(1));
113
                    _obj.setStarLevel(rs.getInt(2));
114
                    java.lang.String _m_2 = rs.getString(3);
115
                    if(rs.wasNull()){
116
                        _m_2 = null;
117
                    }
118
                    _obj.setDescp(_m_2);
119
                    _obj.setOperationId(rs.getString(4));
120
                    Resource resource = new Resource();
121
                    resource.setResourceId(rs.getString(5));
122
                    Professor professor = new Professor();
123
                    professor.setId(rs.getString(6));
124
                    resource.setResourceName(rs.getString(7));
125
                    _obj.setResource(resource);
126
                    professor.setName(rs.getString(8));
127
                    _obj.setProfessor(professor);
128
                    _result.add(_obj);
129
                }
130
                return _result;
131
            }finally{
132
                try{rs.close();}catch(Exception _m_3){}
133
            }
134
        }finally{
135
            try{ps.close();}catch(Exception _m_4){}
136
        }
137
    }
41 138
	
139
	public java.util.List<com.ekexiu.portal.po.Assess> queryPro(java.sql.Connection con,java.lang.String professorId) throws java.sql.SQLException{
140
        int _m_1 = 1;
141
        String sql = "SELECT ASSESS_ID,STAR_LEVEL,ASSESS.DESCP,ASSESS.OPERATION_ID,ASSESS.RESOURCE_ID,ASSESS.PROFESSOR_ID,RESOURCE_NAME,PROFESSOR.NAME FROM ASSESS INNER JOIN RESOURCE ON ASSESS.RESOURCE_ID = RESOURCE.RESOURCE_ID INNER JOIN PROFESSOR ON ASSESS.PROFESSOR_ID = PROFESSOR.ID WHERE ASSESS.PROFESSOR_ID = ?";
142
        java.sql.PreparedStatement ps = con.prepareStatement(sql);
143
        try{
144
            ps.setString(_m_1++,professorId);
145
            java.sql.ResultSet rs = ps.executeQuery();
146
            try{
147
                java.util.List<com.ekexiu.portal.po.Assess> _result = new java.util.ArrayList<com.ekexiu.portal.po.Assess>();
148
                while(rs.next()){
149
                    com.ekexiu.portal.po.Assess _obj =  new com.ekexiu.portal.po.Assess();
150
                    _obj.setAssessId(rs.getString(1));
151
                    _obj.setStarLevel(rs.getInt(2));
152
                    java.lang.String _m_2 = rs.getString(3);
153
                    if(rs.wasNull()){
154
                        _m_2 = null;
155
                    }
156
                    _obj.setDescp(_m_2);
157
                    _obj.setOperationId(rs.getString(4));
158
                    Resource resource = new Resource();
159
                    resource.setResourceId(rs.getString(5));
160
                    Professor professor = new Professor();
161
                    professor.setId(rs.getString(6));
162
                    resource.setResourceName(rs.getString(7));
163
                    _obj.setResource(resource);
164
                    professor.setName(rs.getString(8));
165
                    _obj.setProfessor(professor);
166
                    _result.add(_obj);
167
                }
168
                return _result;
169
            }finally{
170
                try{rs.close();}catch(Exception _m_3){}
171
            }
172
        }finally{
173
            try{ps.close();}catch(Exception _m_4){}
174
        }
175
    }
176

42 177
	@DeleteWith
43 178
	@From(Assess.class)
44
	public int delete(Connection con, String assessId) throws SQLException;
179
	public abstract int delete(Connection con, String assessId) throws SQLException;
45 180
	
46 181
	@DeleteWith
47 182
	@From(Assess.class)
48
	public int deleteRes(Connection con, String resourceId) throws SQLException;
183
	public abstract int deleteRes(Connection con, String resourceId) throws SQLException;
49 184
	
50 185
	@DeleteWith
51 186
	@From(Assess.class)
52
	public int deletePro(Connection con, String professorId) throws SQLException;
187
	public abstract int deletePro(Connection con, String professorId) throws SQLException;
53 188
	
54 189
}

+ 116 - 42
src/main/java/com/ekexiu/portal/dao/OperationDao.java

@ -153,48 +153,62 @@ public abstract class OperationDao {
153 153
        }
154 154
    }
155 155
	
156
	public java.util.List<com.ekexiu.portal.po.Operation> queryDem(java.sql.Connection con,java.lang.String professorId) throws java.sql.SQLException{
157
		int _m_1 = 1;
158
		String sql = "SELECT REPLY_NOTES,OPERATION.CREATE_TIME,OPERATION_ID,OPERATION_STATUS,DEMAND_ID,DETAIL_DEMAND,DELIVER_TIME,OPERATION.RESOURCE_ID,DEAL_PRICE,DEAL_TIME,PAY_METHOD,PROFESSOR.NAME,RESOURCE_NAME FROM OPERATION INNER JOIN PROFESSOR ON DEMAND_ID = PROFESSOR.ID INNER JOIN RESOURCE ON OPERATION.RESOURCE_ID = RESOURCE.RESOURCE_ID WHERE RESOURCE.PROFESSOR_ID = ?";
159
		java.sql.PreparedStatement ps = con.prepareStatement(sql);
160
		try{
161
			ps.setString(_m_1++,professorId);
162
			java.sql.ResultSet rs = ps.executeQuery();
163
			try{
164
				java.util.List<com.ekexiu.portal.po.Operation> _result = new java.util.ArrayList<com.ekexiu.portal.po.Operation>();
165
				while(rs.next()){
166
					com.ekexiu.portal.po.Operation _obj =  new com.ekexiu.portal.po.Operation();
167
					_obj.setReplyNotes(rs.getString(1));
168
					_obj.setCreateTime(rs.getString(2));
169
					_obj.setOperationId(rs.getString(3));
170
					_obj.setOperationStatus(rs.getInt(4));
171
					Professor professor = new Professor();
172
					professor.setId(rs.getString(5));
173
					_obj.setDetailDemand(rs.getString(6));
174
					_obj.setDeliverTime(rs.getString(7));
175
					Resource resource = new Resource();
176
					resource.setResourceId(rs.getString(8));
177
					_obj.setDealPrice(rs.getBigDecimal(9));
178
					_obj.setDealTime(rs.getString(10));
179
					_obj.setPayMethod(rs.getString(11));
180
					professor.setName(rs.getString(12));
181
					_obj.setProfessor(professor);
182
					resource.setResourceName(rs.getString(13));
183
					_obj.setResource(resource);
184
					_result.add(_obj);
185
				}
186
				return _result;
187
			}finally{
188
				try{rs.close();}catch(Exception _m_2){}
189
			}
190
		}finally{
191
			try{ps.close();}catch(Exception _m_3){}
192
		}
193
	}
156
//	/**
157
//	 * 按资源拥有者ID查资源申请
158
//	 * @param con
159
//	 * @param professorId 资源拥有者ID
160
//	 * @return
161
//	 * @throws java.sql.SQLException
162
//	 */
163
//	public java.util.List<com.ekexiu.portal.po.Operation> queryDem(java.sql.Connection con,java.lang.String professorId) throws java.sql.SQLException{
164
//		int _m_1 = 1;
165
//		String sql = "SELECT REPLY_NOTES,OPERATION.CREATE_TIME,OPERATION_ID,OPERATION_STATUS,DEMAND_ID,DETAIL_DEMAND,DELIVER_TIME,OPERATION.RESOURCE_ID,DEAL_PRICE,DEAL_TIME,PAY_METHOD,PROFESSOR.NAME,RESOURCE_NAME FROM OPERATION INNER JOIN PROFESSOR ON DEMAND_ID = PROFESSOR.ID INNER JOIN RESOURCE ON OPERATION.RESOURCE_ID = RESOURCE.RESOURCE_ID WHERE RESOURCE.PROFESSOR_ID = ?";
166
//		java.sql.PreparedStatement ps = con.prepareStatement(sql);
167
//		try{
168
//			ps.setString(_m_1++,professorId);
169
//			java.sql.ResultSet rs = ps.executeQuery();
170
//			try{
171
//				java.util.List<com.ekexiu.portal.po.Operation> _result = new java.util.ArrayList<com.ekexiu.portal.po.Operation>();
172
//				while(rs.next()){
173
//					com.ekexiu.portal.po.Operation _obj =  new com.ekexiu.portal.po.Operation();
174
//					_obj.setReplyNotes(rs.getString(1));
175
//					_obj.setCreateTime(rs.getString(2));
176
//					_obj.setOperationId(rs.getString(3));
177
//					_obj.setOperationStatus(rs.getInt(4));
178
//					Professor professor = new Professor();
179
//					professor.setId(rs.getString(5));
180
//					_obj.setDetailDemand(rs.getString(6));
181
//					_obj.setDeliverTime(rs.getString(7));
182
//					Resource resource = new Resource();
183
//					resource.setResourceId(rs.getString(8));
184
//					_obj.setDealPrice(rs.getBigDecimal(9));
185
//					_obj.setDealTime(rs.getString(10));
186
//					_obj.setPayMethod(rs.getString(11));
187
//					professor.setName(rs.getString(12));
188
//					_obj.setProfessor(professor);
189
//					resource.setResourceName(rs.getString(13));
190
//					_obj.setResource(resource);
191
//					_result.add(_obj);
192
//				}
193
//				return _result;
194
//			}finally{
195
//				try{rs.close();}catch(Exception _m_2){}
196
//			}
197
//		}finally{
198
//			try{ps.close();}catch(Exception _m_3){}
199
//		}
200
//	}
194 201
	
202
	/**
203
	 * 按资源ID查资源申请,返回资源所有者姓名和资源名称
204
	 * @param con
205
	 * @param resourceId 资源ID
206
	 * @return
207
	 * @throws java.sql.SQLException
208
	 */
195 209
	public java.util.List<com.ekexiu.portal.po.Operation> queryRes(java.sql.Connection con,java.lang.String resourceId) throws java.sql.SQLException{
196 210
        int _m_1 = 1;
197
        String sql = "SELECT REPLY_NOTES,OPERATION.CREATE_TIME,OPERATION_ID,OPERATION_STATUS,DEMAND_ID,DETAIL_DEMAND,DELIVER_TIME,OPERATION.RESOURCE_ID,DEAL_PRICE,DEAL_TIME,PAY_METHOD,PROFESSOR.NAME,RESOURCE_NAME FROM OPERATION INNER JOIN PROFESSOR ON DEMAND_ID = PROFESSOR.ID INNER JOIN RESOURCE ON OPERATION.RESOURCE_ID = RESOURCE.RESOURCE_ID WHERE OPERATION.RESOURCE_ID = ?";
211
        String sql = "SELECT REPLY_NOTES,OPERATION.CREATE_TIME,OPERATION_ID,OPERATION_STATUS,DEMAND_ID,DETAIL_DEMAND,DELIVER_TIME,OPERATION.RESOURCE_ID,DEAL_PRICE,DEAL_TIME,PAY_METHOD,RESOURCE_NAME,PROFESSOR.NAME FROM OPERATION LEFT JOIN RESOURCE ON OPERATION.RESOURCE_ID = RESOURCE.RESOURCE_ID LEFT JOIN PROFESSOR ON RESOURCE.PROFESSOR_ID = PROFESSOR.ID WHERE OPERATION.RESOURCE_ID = ?";
198 212
        java.sql.PreparedStatement ps = con.prepareStatement(sql);
199 213
        try{
200 214
            ps.setString(_m_1++,resourceId);
@ -216,10 +230,10 @@ public abstract class OperationDao {
216 230
                    _obj.setDealPrice(rs.getBigDecimal(9));
217 231
                    _obj.setDealTime(rs.getString(10));
218 232
                    _obj.setPayMethod(rs.getString(11));
219
                    professor.setName(rs.getString(12));
220
                    _obj.setProfessor(professor);
221
                    resource.setResourceName(rs.getString(13));
233
                    resource.setResourceName(rs.getString(12));
222 234
                    _obj.setResource(resource);
235
                    professor.setName(rs.getString(13));
236
                    _obj.setProfessor(professor);
223 237
                    _result.add(_obj);
224 238
                }
225 239
                return _result;
@ -231,6 +245,52 @@ public abstract class OperationDao {
231 245
        }
232 246
    }
233 247
	
248
//	/**
249
//	 * 按资源ID查资源申请,返回资申请人姓名和资源名称
250
//	 * @param con
251
//	 * @param resourceId 资源ID
252
//	 * @return
253
//	 * @throws java.sql.SQLException
254
//	 */
255
//	public java.util.List<com.ekexiu.portal.po.Operation> queryRes(java.sql.Connection con,java.lang.String resourceId) throws java.sql.SQLException{
256
//		int _m_1 = 1;
257
//		String sql = "SELECT REPLY_NOTES,OPERATION.CREATE_TIME,OPERATION_ID,OPERATION_STATUS,DEMAND_ID,DETAIL_DEMAND,DELIVER_TIME,OPERATION.RESOURCE_ID,DEAL_PRICE,DEAL_TIME,PAY_METHOD,PROFESSOR.NAME,RESOURCE_NAME FROM OPERATION INNER JOIN PROFESSOR ON DEMAND_ID = PROFESSOR.ID INNER JOIN RESOURCE ON OPERATION.RESOURCE_ID = RESOURCE.RESOURCE_ID WHERE OPERATION.RESOURCE_ID = ?";
258
//		java.sql.PreparedStatement ps = con.prepareStatement(sql);
259
//		try{
260
//			ps.setString(_m_1++,resourceId);
261
//			java.sql.ResultSet rs = ps.executeQuery();
262
//			try{
263
//				java.util.List<com.ekexiu.portal.po.Operation> _result = new java.util.ArrayList<com.ekexiu.portal.po.Operation>();
264
//				while(rs.next()){
265
//					com.ekexiu.portal.po.Operation _obj =  new com.ekexiu.portal.po.Operation();
266
//					_obj.setReplyNotes(rs.getString(1));
267
//					_obj.setCreateTime(rs.getString(2));
268
//					_obj.setOperationId(rs.getString(3));
269
//					_obj.setOperationStatus(rs.getInt(4));
270
//					Professor professor = new Professor();
271
//					professor.setId(rs.getString(5));
272
//					_obj.setDetailDemand(rs.getString(6));
273
//					_obj.setDeliverTime(rs.getString(7));
274
//					Resource resource = new Resource();
275
//					resource.setResourceId(rs.getString(8));
276
//					_obj.setDealPrice(rs.getBigDecimal(9));
277
//					_obj.setDealTime(rs.getString(10));
278
//					_obj.setPayMethod(rs.getString(11));
279
//					professor.setName(rs.getString(12));
280
//					_obj.setProfessor(professor);
281
//					resource.setResourceName(rs.getString(13));
282
//					_obj.setResource(resource);
283
//					_result.add(_obj);
284
//				}
285
//				return _result;
286
//			}finally{
287
//				try{rs.close();}catch(Exception _m_2){}
288
//			}
289
//		}finally{
290
//			try{ps.close();}catch(Exception _m_3){}
291
//		}
292
//	}
293
	
234 294
	@DeleteWith
235 295
	@From(Operation.class)
236 296
	public abstract int delete(Connection con, String operationId) throws SQLException;
@ -239,6 +299,20 @@ public abstract class OperationDao {
239 299
	@From(Operation.class)
240 300
	public abstract int deleteProRes(Connection con, String demandId, String resourceId) throws SQLException;
241 301
	
302
	/**
303
	 * 分页查询资源申请 多条件模糊查询
304
	 * @param con
305
	 * @param professorName 申请人姓名
306
	 * @param resourceName 资源名称
307
	 * @param firstTime 申请时间 查询初试时间
308
	 * @param lastTime 申请时间 查询结束时间
309
	 * @param lowPrice 成交价格 查询较低价格
310
	 * @param highPrice 成交时间 查询较高价格
311
	 * @param pageSize 每页记录数
312
	 * @param pageNo 当前页码
313
	 * @return
314
	 * @throws java.sql.SQLException
315
	 */
242 316
	public org.jfw.util.PageQueryResult<com.ekexiu.portal.po.Operation> queryPage(java.sql.Connection con,java.lang.String professorName,java.lang.String resourceName,java.lang.String firstTime,java.lang.String lastTime,java.math.BigDecimal lowPrice,java.math.BigDecimal highPrice,int pageSize,int pageNo) throws java.sql.SQLException{
243 317
        int _m_1 = 0;
244 318
        org.jfw.util.PageQueryResult<com.ekexiu.portal.po.Operation> _result = new org.jfw.util.PageQueryResult<com.ekexiu.portal.po.Operation>();

+ 0 - 6
src/main/java/com/ekexiu/portal/service/AssessService.java

@ -46,12 +46,6 @@ public class AssessService {
46 46
		return this.assessDao.query(con, assessId);
47 47
	}
48 48
	
49
	@Get
50
	@Path("/qa")
51
	public List<Assess> queryAll(@JdbcConn Connection con) throws SQLException {
52
		return this.assessDao.query(con);
53
	}
54
	
55 49
	@Get
56 50
	@Path("/qaoper")
57 51
	public List<Assess> queryOper(@JdbcConn Connection con, String operationId) throws SQLException {

+ 5 - 5
src/main/java/com/ekexiu/portal/service/OperationService.java

@ -70,11 +70,11 @@ public class OperationService {
70 70
		return this.operationDao.queryPro(con, demandId);
71 71
	}
72 72
	
73
	@Get
74
	@Path("/qadem")
75
	public List<Operation> queryDem(@JdbcConn Connection con, String professorId) throws SQLException{
76
		return this.operationDao.queryDem(con, professorId);
77
	}
73
//	@Get
74
//	@Path("/qadem")
75
//	public List<Operation> queryDem(@JdbcConn Connection con, String professorId) throws SQLException{
76
//		return this.operationDao.queryDem(con, professorId);
77
//	}
78 78
	
79 79
	@Get
80 80
	@Path("/qares")