Browse Source

--add queryUserInfo().

zzy.zhiyuan.foxmail 8 years ago
parent
commit
25f444b313
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/main/java/com/ekexiu/portal/service/ProfessorService.java

+ 12 - 0
src/main/java/com/ekexiu/portal/service/ProfessorService.java

@ -44,6 +44,7 @@ import com.ekexiu.portal.po.User;
44 44
import com.ekexiu.portal.pojo.EditProfessor;
45 45
import com.ekexiu.portal.pojo.EditResearchAreaLog;
46 46
import com.ekexiu.portal.pojo.ProfessorInfo;
47
import com.ekexiu.portal.pojo.UserInfo;
47 48
import com.ekexiu.portal.util.Calculate;
48 49

49 50
@Path("/professor")
@ -477,6 +478,17 @@ public class ProfessorService {
477 478
		return queryResult;
478 479
	}
479 480
	
481
	@Get
482
	@Path("/pqUserInfo")
483
	PageQueryResult<UserInfo> queryUserInfo(@JdbcConn(false) Connection con,@Nullable String key,
484
			@Nullable String address,@Nullable String orgName,@Nullable Integer activeState,@Nullable Integer authType, 
485
			@DefaultValue("20") int pageSize,@DefaultValue("1") int pageNo)throws SQLException{
486
		if(key!=null) {key="%"+key+"%";}
487
		if(null!=address) {address="%"+address+"%";}
488
		if(orgName!=null) {orgName ="%"+orgName+"%";}
489
		return this.professorDao.queryUserInfo(con, key, address, authType, orgName, activeState, pageSize, pageNo);
490
	}
491
	
480 492
	@Get
481 493
	@Path("/pq")
482 494
	PageQueryResult<Professor> query(@JdbcConn(false) Connection con,@Nullable String key,