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.

47 lines
1.6 KiB

3 years ago
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;
3 years ago
import com.jfinal.plugin.activerecord.Db;
3 years ago
import com.jfinal.plugin.activerecord.Record;
import java.util.List;
@SuppressWarnings("unchecked")
public class TouPiaoController extends Controller {
TouPiaoModel tm = new TouPiaoModel();
/**
*
*
* 2022-12-11
3 years ago
*
* http://10.10.11.124:9000/FengHuang/TouPiao/getHouXuanRenList?type_id=1
*
* http://10.10.11.124:9000/FengHuang/TouPiao/getHouXuanRenList?type_id=2
3 years ago
*/
@Before({GET.class})
@IsLoginInterface({})
public void getHouXuanRenList(int type_id) {
List<Record> list = tm.getHouXuanRenList(type_id);
renderJson(CommonUtil.renderJsonForLayUI(list));
}
3 years ago
3 years ago
/*
3 years ago
,
3 years ago
http://10.10.11.124:9000/FengHuang/TouPiao/getTouPiaoRenInfo
*/
3 years ago
@Before({GET.class})
@IsLoginInterface({})
public void getTouPiaoRenInfo() {
String toupiaoren_tel = getCookie("toupiaoren_tel");
3 years ago
List<Record> list = tm.getTouPiaoRenInfo(toupiaoren_tel);
3 years ago
renderJson(CommonUtil.renderJsonForLayUI(list));
}
3 years ago
}