|
|
|
@ -1743,10 +1743,11 @@ public class CollectController extends Controller {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:填报系统专用登录接口,后期可以扩展支持天喻平台对接
|
|
|
|
|
*
|
|
|
|
|
* @param username
|
|
|
|
|
* @param password
|
|
|
|
|
*/
|
|
|
|
|
@Before({POST.class})
|
|
|
|
|
@Before({POST.class, RepeatIntercetpor.class})
|
|
|
|
|
public void doFillLogin(String username, String password) {
|
|
|
|
|
JSONObject resultJson = new JSONObject();
|
|
|
|
|
String checkCodeKey = "";
|
|
|
|
@ -1824,4 +1825,58 @@ public class CollectController extends Controller {
|
|
|
|
|
resultJson.put("person_id", loginMap.get("person_id").toString());
|
|
|
|
|
renderJson(resultJson);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:获取当前登录人员所有单位的所有部门列表,不带分页
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
public void getOrgList(String keyword) {
|
|
|
|
|
//操作人员
|
|
|
|
|
String person_id = SessionKit.get(getRequest(), getResponse(), "person_id");
|
|
|
|
|
//根据人员ID,获取人员所在的单位ID
|
|
|
|
|
LoginPersonModel personModel = new LoginPersonModel();
|
|
|
|
|
Record rs = personModel.getLoginInfoByPersonId(person_id);
|
|
|
|
|
String bureau_id = rs.get("bureau_id");
|
|
|
|
|
List<Record> list = cm.getOrgList(bureau_id,keyword);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:获取指定部门下的人员信息列表,带分页
|
|
|
|
|
*
|
|
|
|
|
* @param org_id 单位id
|
|
|
|
|
* @param keyword 关键字
|
|
|
|
|
* @param page 第几页
|
|
|
|
|
* @param limit 每页多少个
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
public void getOrgPersonList(String org_id, String keyword, int page, int limit) {
|
|
|
|
|
Page<Record> list = cm.getOrgPersonList(org_id, keyword, page, limit);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:获取当前登录人员所在单位下的+所在年级下所有班级
|
|
|
|
|
*
|
|
|
|
|
* @param nj_id 年级id
|
|
|
|
|
* @param keyword 关键字
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
public void getClassList(int nj_id, String keyword, int page, int limit) {
|
|
|
|
|
//操作人员
|
|
|
|
|
String person_id = SessionKit.get(getRequest(), getResponse(), "person_id");
|
|
|
|
|
//根据人员ID,获取人员所在的单位ID
|
|
|
|
|
LoginPersonModel personModel = new LoginPersonModel();
|
|
|
|
|
Record rs = personModel.getLoginInfoByPersonId(person_id);
|
|
|
|
|
String bureau_id = rs.get("bureau_id");
|
|
|
|
|
Page<Record> list = cm.getClassList(bureau_id, nj_id, keyword, page, limit);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|