|
|
|
@ -7,6 +7,7 @@ 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;
|
|
|
|
@ -19,10 +20,10 @@ public class TouPiaoController extends Controller {
|
|
|
|
|
* 功能:获取侯选人名单
|
|
|
|
|
* 作者:黄海
|
|
|
|
|
* 日期: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
|
|
|
|
|
* 高级
|
|
|
|
|
* 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({})
|
|
|
|
@ -30,4 +31,13 @@ public class TouPiaoController extends Controller {
|
|
|
|
|
List<Record> list = tm.getHouXuanRenList(type_id);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
public void getTouPiaoRenInfo() {
|
|
|
|
|
String toupiaoren_tel = getCookie("toupiaoren_tel");
|
|
|
|
|
String sql = "select * from t_toupiao_toupiaoren where toupiaoren_tel=?";
|
|
|
|
|
List<Record> list = Db.find(sql, toupiaoren_tel);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|