main
黄海 3 years ago
parent ab3a31499f
commit ba421989d1

@ -53,7 +53,6 @@
alt="点击图片刷新校验码" style="cursor:pointer" onclick="javascript:refreshCaptcha()"/> alt="点击图片刷新校验码" style="cursor:pointer" onclick="javascript:refreshCaptcha()"/>
</div> </div>
</div> </div>
<input id="loginBtn" class="input-button" type="button" value="登&nbsp;&nbsp;&nbsp;录"> <input id="loginBtn" class="input-button" type="button" value="登&nbsp;&nbsp;&nbsp;录">
</form> </form>
</div> </div>

@ -169,4 +169,13 @@ public class TouPiaoController extends Controller {
String filename = "投票结果.xls"; String filename = "投票结果.xls";
renderFile(new File(file3), filename); renderFile(new File(file3), filename);
} }
/*
http://10.10.11.124:9000/FengHuang/TouPiao/getTouPiaoInfo
*/
public void getTouPiaoInfo() {
List<Record> list = tm.getTouPiaoInfo();
renderJson(CommonUtil.renderJsonForLayUI(list));
}
} }

@ -93,6 +93,7 @@ public class TouPiaoModel {
res.add(r2); res.add(r2);
return res; return res;
} }
/* /*
25251015 25251015
= 1.0 * / *10 = 1.0 * / *10
@ -111,4 +112,10 @@ public class TouPiaoModel {
List<Record> list = Db.find(sq); List<Record> list = Db.find(sq);
return list; return list;
} }
public List<Record> getTouPiaoInfo() {
SqlPara sq = Db.getSqlPara("TouPiao.getTouPiaoInfo");
List<Record> list = Db.find(sq);
return list;
}
} }

@ -8,4 +8,10 @@
from t_toupiao_houxuanren as t1) as ta where ta.houxuanren_type_id=#(houxuanren_type_id) from t_toupiao_houxuanren as t1) as ta where ta.houxuanren_type_id=#(houxuanren_type_id)
order by 1.0 * ta.pingweihui_count /#(PingWeiHuiAllCount) *10 + 1.0*ta.qunzhong_count/#(QunZhongAllCount) *15 desc order by 1.0 * ta.pingweihui_count /#(PingWeiHuiAllCount) *10 + 1.0*ta.qunzhong_count/#(QunZhongAllCount) *15 desc
#end #end
#sql("getTouPiaoInfo")
select toupiaoren_tel,toupiaoren_name,toupiaoren_type_id,(
select count(1) as c from t_toupiao_result as t2 where t2.toupiaoren_tel=t1.toupiaoren_tel
) as c from t_toupiao_toupiaoren as t1 order by toupiaoren_type_id,c desc
#end
#end #end

@ -8,4 +8,10 @@
from t_toupiao_houxuanren as t1) as ta where ta.houxuanren_type_id=#(houxuanren_type_id) from t_toupiao_houxuanren as t1) as ta where ta.houxuanren_type_id=#(houxuanren_type_id)
order by 1.0 * ta.pingweihui_count /#(PingWeiHuiAllCount) *10 + 1.0*ta.qunzhong_count/#(QunZhongAllCount) *15 desc order by 1.0 * ta.pingweihui_count /#(PingWeiHuiAllCount) *10 + 1.0*ta.qunzhong_count/#(QunZhongAllCount) *15 desc
#end #end
#sql("getTouPiaoInfo")
select toupiaoren_tel,toupiaoren_name,toupiaoren_type_id,(
select count(1) as c from t_toupiao_result as t2 where t2.toupiaoren_tel=t1.toupiaoren_tel
) as c from t_toupiao_toupiaoren as t1 order by toupiaoren_type_id,c desc
#end
#end #end
Loading…
Cancel
Save