jiapeng 7 年之前
父节点
当前提交
32e2546baa

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

28
	
28
	
29
	@UpdateWith
29
	@UpdateWith
30
	@From(PaperAuthor.class)
30
	@From(PaperAuthor.class)
31
	@SetSentence("PROFESSOR_ID='################################")
31
	@SetSentence("PROFESSOR_ID='################################'")
32
	int update(Connection con,String paperId,String professorId)throws SQLException;
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
	
27
	
28
	@UpdateWith
28
	@UpdateWith
29
	@From(PatentAuthor.class)
29
	@From(PatentAuthor.class)
30
	@SetSentence("PROFESSOR_ID='################################")
30
	@SetSentence("PROFESSOR_ID='################################'")
31
	int update(Connection con,String patentId,String professorId)throws SQLException;
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
package com.ekexiu.push.service;
1
package com.ekexiu.push.service;
2

2

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

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

10

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

13

9
@Path("/feedback")
14
@Path("/feedback")
10
public class FeedbackService {
15
public class FeedbackService {
20
		this.feedbackDao = feedbackDao;
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
}