|
@ -121,6 +121,15 @@ public abstract class ResourceDao {
|
121
|
121
|
@Nullable
|
122
|
122
|
public abstract Resource queryOne(Connection con, String resourceId) throws SQLException;
|
123
|
123
|
|
|
124
|
@LimitSelect
|
|
125
|
@OrderBy("ORDER BY RESOURCE_NAME ASC")
|
|
126
|
@Where("STATUS ='1'")
|
|
127
|
public abstract List<Resource> publishByProfessor(Connection con,String professorId,@Like String resourceName, int rows)throws SQLException;
|
|
128
|
@LimitSelect
|
|
129
|
@OrderBy("ORDER BY RESOURCE_NAME ASC")
|
|
130
|
@Where("STATUS ='1'")
|
|
131
|
public abstract List<Resource> publishByOrg(Connection con,String orgId,@Like String resourceName, int rows)throws SQLException;
|
|
132
|
|
124
|
133
|
public PageQueryResult<Resource> queryForSelf(Connection con,String professorId,@Nullable String key,int pageSize,int pageNo) throws SQLException{
|
125
|
134
|
int total = 0;
|
126
|
135
|
PageQueryResult<Resource> queryResult = new PageQueryResult<Resource>();
|