parent
07fa2ca51a
commit
2ab6f46adf
4 changed files with 38 additions and 10 deletions
@ -0,0 +1,28 @@ |
||||
package com.yipin.liuwanr.helper; |
||||
|
||||
import com.yipin.liuwanr.entity.Response; |
||||
|
||||
import java.util.HashMap; |
||||
import java.util.List; |
||||
|
||||
public class QueryStudentUtils { |
||||
/** |
||||
* Controller.queryStudent之共性api |
||||
* @param resp |
||||
* @param hashMap |
||||
* @param retcode |
||||
* @param retvalue |
||||
*/ |
||||
public static void queryStudentByIds(Response resp,HashMap<String, Object> hashMap,String retcode,String retvalue){ |
||||
|
||||
int status = (int)hashMap.get(retcode); |
||||
if (status==200){ |
||||
resp.setStatus(status); |
||||
resp.setMessage(hashMap.get(retvalue)); |
||||
}else{ |
||||
resp.setStatus(status); |
||||
resp.setMessage(hashMap.get(retvalue.toString())); |
||||
} |
||||
|
||||
} |
||||
} |
Loading…
Reference in new issue