|
|
|
@ -193,7 +193,9 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
renderJson(resultJson);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 登出功能
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
public void logout() {
|
|
|
|
|
SessionKit.clear(getRequest(), getResponse());
|
|
|
|
@ -203,13 +205,12 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
/**
|
|
|
|
|
* 重置密码功能
|
|
|
|
|
*
|
|
|
|
|
* @param person_id
|
|
|
|
|
* @param person_id 重置用户密码的人员id
|
|
|
|
|
*/
|
|
|
|
|
@Before({POST.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
@EmptyInterface({"person_id"})
|
|
|
|
|
@IsSysAdminInterface({"1", "2", "3", "4"})
|
|
|
|
|
|
|
|
|
|
public void ResetPwd(String person_id) {
|
|
|
|
|
//修改密码
|
|
|
|
|
String operator = SessionKit.get(getRequest(), getResponse(), "person_id");
|
|
|
|
@ -222,8 +223,8 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
/**
|
|
|
|
|
* 修改密码
|
|
|
|
|
*
|
|
|
|
|
* @param old_pwd
|
|
|
|
|
* @param new_pwd
|
|
|
|
|
* @param old_pwd 旧密码
|
|
|
|
|
* @param new_pwd 新密码
|
|
|
|
|
*/
|
|
|
|
|
@Before({POST.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
@ -274,8 +275,8 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
/**
|
|
|
|
|
* 获取市级管理员的原始帐号和原始密码
|
|
|
|
|
*
|
|
|
|
|
* @param page
|
|
|
|
|
* @param limit
|
|
|
|
|
* @param page 页面
|
|
|
|
|
* @param limit 每页数量
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
@ -310,8 +311,8 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
/**
|
|
|
|
|
* 获取市级直属单位的帐号和原始密码
|
|
|
|
|
*
|
|
|
|
|
* @param page
|
|
|
|
|
* @param limit
|
|
|
|
|
* @param page 页码
|
|
|
|
|
* @param limit 每页数量
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
@ -346,8 +347,8 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
/**
|
|
|
|
|
* 获取县区管理员的帐号和原始密码
|
|
|
|
|
*
|
|
|
|
|
* @param page
|
|
|
|
|
* @param limit
|
|
|
|
|
* @param page 页码
|
|
|
|
|
* @param limit 每页数量
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
@ -382,9 +383,9 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
/**
|
|
|
|
|
* 获取县区下单位及学校的登录帐号和密码
|
|
|
|
|
*
|
|
|
|
|
* @param page
|
|
|
|
|
* @param limit
|
|
|
|
|
* @param area_id
|
|
|
|
|
* @param page 页码
|
|
|
|
|
* @param limit 每页数量
|
|
|
|
|
* @param area_id 县区ID
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
@ -399,7 +400,7 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
/**
|
|
|
|
|
* 获取县区下单位及学校的登录帐号和密码(导出EXCEL)
|
|
|
|
|
*
|
|
|
|
|
* @param area_id
|
|
|
|
|
* @param area_id 县区id
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
@ -448,26 +449,12 @@ public class LoginPersonController extends Controller {
|
|
|
|
|
renderNull();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:获取在线人数,区分:在线登录人数和在线未登录人数
|
|
|
|
|
* http://10.10.21.20:9000/dsBase/loginPerson/showOnline
|
|
|
|
|
*/
|
|
|
|
|
public void showOnline() {
|
|
|
|
|
long action_set_login = RedisKit.zcard(PropKit.get("action_set_login"));
|
|
|
|
|
long action_set_nologin = RedisKit.zcard(PropKit.get("action_set_nologin"));
|
|
|
|
|
|
|
|
|
|
Kv kv = Kv.create();
|
|
|
|
|
kv.set("success", true);
|
|
|
|
|
kv.set("action_set_login", action_set_login);
|
|
|
|
|
kv.set("action_set_nologin", action_set_nologin);
|
|
|
|
|
renderJson(kv);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:更新指定人员的手机号和邮箱地址
|
|
|
|
|
*
|
|
|
|
|
* @param telephone
|
|
|
|
|
* @param email
|
|
|
|
|
* @param telephone 手机号
|
|
|
|
|
* @param email 邮箱
|
|
|
|
|
*/
|
|
|
|
|
@Before(POST.class)
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|