Browse Source

添加APP资源搜索详细信息

zzy.zhiyuan.foxmail 8 years ago
parent
commit
cba9e4944e
1 changed files with 29 additions and 1 deletions
  1. 29 1
      src/main/java/com/ekexiu/portal/service/ResourceService.java

+ 29 - 1
src/main/java/com/ekexiu/portal/service/ResourceService.java

@ -19,6 +19,7 @@ import org.jfw.util.StringUtil;
19 19

20 20
import com.ekexiu.portal.dao.ImageDao;
21 21
import com.ekexiu.portal.dao.OperationDao;
22
import com.ekexiu.portal.dao.ProfessorDao;
22 23
import com.ekexiu.portal.dao.ResourceDao;
23 24
import com.ekexiu.portal.dao.WatchDao;
24 25
import com.ekexiu.portal.po.Operation;
@ -26,6 +27,8 @@ import com.ekexiu.portal.po.Resource;
26 27

27 28
@Path("/resource")
28 29
public class ResourceService {
30
	@Autowrie
31
	private ProfessorDao professorDao;
29 32
	@Autowrie
30 33
	private WatchDao watchDao;
31 34
	@Autowrie
@ -35,8 +38,18 @@ public class ResourceService {
35 38
	@Autowrie
36 39
	private ImagesService imagesService;
37 40
	@Autowrie
41
	private ImageService imageService;
42
	@Autowrie
38 43
	private OperationDao operationDao;
39 44

45
	public ProfessorDao getProfessorDao() {
46
		return professorDao;
47
	}
48

49
	public void setProfessorDao(ProfessorDao professorDao) {
50
		this.professorDao = professorDao;
51
	}
52

40 53
	public WatchDao getWatchDao() {
41 54
		return watchDao;
42 55
	}
@ -61,6 +74,14 @@ public class ResourceService {
61 74
		this.imageDao = imageDao;
62 75
	}
63 76

77
	public ImageService getImageService() {
78
		return imageService;
79
	}
80

81
	public void setImageService(ImageService imageService) {
82
		this.imageService = imageService;
83
	}
84

64 85
	public ResourceDao getResourceDao() {
65 86
		return resourceDao;
66 87
	}
@ -113,6 +134,13 @@ public class ResourceService {
113 134
		return this.resourceDao.query(con, resourceId);
114 135
	}
115 136
	
137
	@Get
138
	@Path("/resourceInfo")
139
	public Resource queryInfo(@JdbcConn Connection con, String resourceId) throws SQLException {
140
		Resource resource = this.resourceDao.queryInfo(con, resourceId);
141
		return resource;
142
	}
143
	
116 144
	@Get
117 145
	@Path("/pqall")
118 146
	public PageQueryResult<Resource> queryPageAll(@JdbcConn Connection con, @DefaultValue("10") int pageSize, @DefaultValue("1") int pageNo) throws SQLException {
@ -125,7 +153,7 @@ public class ResourceService {
125 153
		return this.resourceDao.queryPro(con, professorId);
126 154
	}
127 155
	
128
	@Get
156
	@Post
129 157
	@Path("/nameAndSupport")
130 158
	public void updateNameAndSupport(@JdbcConn(true) Connection con, String resourceId, 
131 159
			String resourceName, String supportedServices) throws SQLException{