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.

44 lines
1.5 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
@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));
}
3 years ago
}