src/com/oa/actions/LogAction.java
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.oa.actions;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.struts2.ServletActionContext;
import com.oa.models.TDevice;
import com.oa.models.TLog;
import com.oa.models.TUser;
import com.oa.services.TLogServices;
import com.oa.services.TDeviceServices;
import com.oa.utils.PageInfo;
/**
*
*
* 功能:记录管理
*
*/
public class LogAction extends BaseAction{
private TLogServices logServices;
private TDeviceServices deviceServices;
private Integer id;
private String device;
private String userid;
private String maintainid;
private String inputdate;
private String startdate;
private String enddate;
private String searchname;
/**
*
*
* 查询
*
*/
public String queryTLog() throws Exception{
if (getSessionAttribute("querypageunit") == null) {
setSessionAttribute("querypageunit",this.pageunit);
}
StringBuffer cond = new StringBuffer();
if(null!=searchname&&""!=searchname.trim()){
cond.append(" and a.TDevice.devicename like '%"+searchname.trim()+"%' ");
}
cond.append(" and a.inputdate= '0'");
int curpage = Integer.parseInt(this.getCurrentpage(ServletActionContext.getRequest()));
int pageunit = Integer.parseInt(this.getPageunit(ServletActionContext.getRequest(), "querypageunit"));
String url = "log_queryTLog";
PageInfo pageInfo = this.logServices.queryTLog(curpage,
pageunit, ServletActionContext.getRequest(), url, cond.toString());
setRequestAttribute("pageinfo", pageInfo);
setRequestAttribute("searchname", this.searchname);
return "queryTLog";
}
public String queryHTLog() throws Exception{
if (getSessionAttribute("querypageunit") == null) {
后面还有 115 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。