You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
package com.dsideal.FengHuang.TouPiao.Controller;
|
|
|
|
|
|
|
|
|
|
import com.dsideal.FengHuang.Interceptor.IsLoginInterface;
|
|
|
|
|
import com.dsideal.FengHuang.TouPiao.Model.TouPiaoModel;
|
|
|
|
|
import com.dsideal.FengHuang.Util.CommonUtil;
|
|
|
|
|
import com.jfinal.aop.Before;
|
|
|
|
|
import com.jfinal.core.Controller;
|
|
|
|
|
import com.jfinal.ext.interceptor.GET;
|
|
|
|
|
import com.jfinal.ext.interceptor.POST;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Db;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
|
public class TouPiaoController extends Controller {
|
|
|
|
|
TouPiaoModel tm = new TouPiaoModel();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:获取侯选人名单
|
|
|
|
|
* 作者:黄海
|
|
|
|
|
* 日期:2022-12-11
|
|
|
|
|
* 高级
|
|
|
|
|
* http://10.10.11.124:9000/FengHuang/TouPiao/getHouXuanRenList?type_id=1
|
|
|
|
|
* 中级
|
|
|
|
|
* http://10.10.11.124:9000/FengHuang/TouPiao/getHouXuanRenList?type_id=2
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
public void getHouXuanRenList(int type_id) {
|
|
|
|
|
List<Record> list = tm.getHouXuanRenList(type_id);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
获取当前登录人员信息,比如姓名信息,身份信息(评委小组,还是群众)
|
|
|
|
|
http://10.10.11.124:9000/FengHuang/TouPiao/getTouPiaoRenInfo
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
public void getTouPiaoRenInfo() {
|
|
|
|
|
String toupiaoren_tel = getCookie("toupiaoren_tel");
|
|
|
|
|
List<Record> list = tm.getTouPiaoRenInfo(toupiaoren_tel);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
|
}
|
|
|
|
|
}
|