Browse Source

团队成果纠错

XMTT 5 years ago
parent
commit
1edf875ad0
1 changed files with 26 additions and 0 deletions
  1. 26 0
      src/main/java/com/ekexiu/portal/service/FeedbackService.java

+ 26 - 0
src/main/java/com/ekexiu/portal/service/FeedbackService.java

@ -176,4 +176,30 @@ public class FeedbackService {
176 176
		fb.setSchema(11);
177 177
		return this.feedbackDao.insert(con, fb);
178 178
	}
179

180
	@Post
181
	@Path("/error/team")
182
	public long errorTeam(@JdbcConn(true) Connection con,String cnt,String id,@Nullable String user)throws SQLException{
183
		Feedback fb = new Feedback();
184
		fb.setCategory(1);
185
		fb.setParam(id);
186
		fb.setState("0");
187
		fb.setContent(cnt);
188
		fb.setUserId(user);
189
		fb.setSchema(12);
190
		return this.feedbackDao.insert(con, fb);
191
	}
192

193
	@Post
194
	@Path("/error/resResult")
195
	public long errorResResult(@JdbcConn(true) Connection con,String cnt,String id,@Nullable String user)throws SQLException{
196
		Feedback fb = new Feedback();
197
		fb.setCategory(1);
198
		fb.setParam(id);
199
		fb.setState("0");
200
		fb.setContent(cnt);
201
		fb.setUserId(user);
202
		fb.setSchema(13);
203
		return this.feedbackDao.insert(con, fb);
204
	}
179 205
}