jiapeng лет назад: 7
Родитель
Сommit
32e2546baa

+ 1 - 1
src/main/java/com/ekexiu/portal/dao/PaperAuthorDao.java

@ -28,7 +28,7 @@ public interface PaperAuthorDao {
28 28
	
29 29
	@UpdateWith
30 30
	@From(PaperAuthor.class)
31
	@SetSentence("PROFESSOR_ID='################################")
31
	@SetSentence("PROFESSOR_ID='################################'")
32 32
	int update(Connection con,String paperId,String professorId)throws SQLException;
33 33
	
34 34
	

+ 1 - 1
src/main/java/com/ekexiu/portal/dao/PatentAuthorDao.java

@ -27,6 +27,6 @@ public interface PatentAuthorDao {
27 27
	
28 28
	@UpdateWith
29 29
	@From(PatentAuthor.class)
30
	@SetSentence("PROFESSOR_ID='################################")
30
	@SetSentence("PROFESSOR_ID='################################'")
31 31
	int update(Connection con,String patentId,String professorId)throws SQLException;
32 32
}

+ 28 - 2
src/main/java/com/ekexiu/push/service/FeedbackService.java

@ -1,10 +1,15 @@
1 1
package com.ekexiu.push.service;
2 2

3
import java.sql.Connection;
4
import java.sql.SQLException;
5

3 6
import org.jfw.apt.annotation.Autowrie;
4 7
import org.jfw.apt.web.annotation.Path;
5 8
import org.jfw.apt.web.annotation.operate.Post;
9
import org.jfw.apt.web.annotation.param.JdbcConn;
6 10

7 11
import com.ekexiu.portal.dao.FeedbackDao;
12
import com.ekexiu.portal.po.Feedback;
8 13

9 14
@Path("/feedback")
10 15
public class FeedbackService {
@ -20,7 +25,28 @@ public class FeedbackService {
20 25
		this.feedbackDao = feedbackDao;
21 26
	}
22 27
	
23
//	@Post
24
//	@Path("/")
28
	@Post
29
	@Path("/error/patent")
30
	public long errorPatent(@JdbcConn(true) Connection con,String cnt,String id)throws SQLException{
31
		Feedback fb = new Feedback();
32
		fb.setCategory(1);
33
		fb.setSchema(2);
34
		fb.setParam(id);
35
		fb.setState("0");
36
		fb.setContent(cnt);
37
		return this.feedbackDao.insert(con, fb);
38
	}
39
	
40
	@Post
41
	@Path("/error/paper")
42
	public long errorPaper(@JdbcConn(true) Connection con,String cnt,String id)throws SQLException{
43
		Feedback fb = new Feedback();
44
		fb.setCategory(1);
45
		fb.setSchema(1);
46
		fb.setParam(id);
47
		fb.setState("0");
48
		fb.setContent(cnt);
49
		return this.feedbackDao.insert(con, fb);
50
	}
25 51
	
26 52
}