|
@ -298,7 +298,7 @@ public abstract class ProfessorDao {
|
298
|
298
|
* @throws SQLException
|
299
|
299
|
*/
|
300
|
300
|
public PageQueryResult<EditProfessor> queryEditBaseInfo(Connection con, @Nullable String key, String subject,
|
301
|
|
String industry, String address, int pageSize, int pageNo) throws SQLException {
|
|
301
|
String industry, String address,@Nullable Integer authentication, int pageSize, int pageNo) throws SQLException {
|
302
|
302
|
PageQueryResult<EditProfessor> _result = new PageQueryResult<EditProfessor>();
|
303
|
303
|
StringBuilder sql = new StringBuilder();
|
304
|
304
|
boolean hasKey = null != key;
|
|
@ -311,6 +311,7 @@ public abstract class ProfessorDao {
|
311
|
311
|
boolean hasSubject = null != subject;
|
312
|
312
|
boolean hasIndustry = null != industry;
|
313
|
313
|
boolean hasAddress = null != address;
|
|
314
|
boolean hasAuth = null != authentication;
|
314
|
315
|
if (hasSubject) {
|
315
|
316
|
sql.append(sql.length() > 0 ? " AND " : " WHERE ").append("(SUBJECT LIKE ?)");
|
316
|
317
|
}
|
|
@ -320,6 +321,13 @@ public abstract class ProfessorDao {
|
320
|
321
|
if (hasAddress) {
|
321
|
322
|
sql.append(sql.length() > 0 ? " AND " : " WHERE ").append("(ADDRESS LIKE ?)");
|
322
|
323
|
}
|
|
324
|
if (hasAuth) {
|
|
325
|
if(0 == authentication){
|
|
326
|
sql.append(sql.length() > 0 ? " AND " : " WHERE ").append("(AUTHENTICATION = '0')");
|
|
327
|
}else if(1 == authentication){
|
|
328
|
sql.append(sql.length() > 0 ? " AND " : " WHERE ").append("(AUTHENTICATION = '1')");
|
|
329
|
}
|
|
330
|
}
|
323
|
331
|
|
324
|
332
|
StringBuilder whereSql = sql;
|
325
|
333
|
sql = new StringBuilder();
|