WebRoot/factory/getjc.jsp
(完整代码) 1KB<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.Info"%>
<%
String uname = request.getParameter("uname")==null?"":request.getParameter("uname");
String month = request.getParameter("month")==null?"":request.getParameter("month");
uname = Info.getGBKStr(uname);
int jl = new CommDAO().getInt("select sum(cast(je as int)) as total from jiangc where jcllb='奖励' and jcdate like'%"+month+"%' and uname like'%"+uname.split(" - ")[0]+"%'");
int cf = new CommDAO().getInt("select sum(cast(je as int)) as total from jiangc where jcllb='处罚' and jcdate like'%"+month+"%' and uname like'%"+uname.split(" - ")[0]+"%'");
int cd = 0;
int zt = 0;
for(HashMap map:new CommDAO().select("select * from kaoq where kqday like'%"+month+"%' and uname like'%"+uname.split(" - ")[0]+"%'"))
{
String kqstime = map.get("kqstime").toString();
String kqetime = map.get("kqetime").toString();
if(!kqstime.equals(""))
{
int stime = Integer.parseInt(kqstime.substring(11,13)) ;
if(stime>=9)cd+=10;
}
if(!kqetime.equals(""))
{
int etime = Integer.parseInt(kqetime.substring(11,13)) ;
if(etime<=6)zt+=10;
}
}
out.println(jl+"-"+cf+"-"+cd+"-"+zt);
%>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。