java.lang.NullPointerException at org.apache.jsp.checkcode.image_jsp._jspService(image_jsp.java:

java.lang.NullPointerException at org.apache.jsp.checkcode.image_jsp._jspService(image_jsp.java:,第1张

package net.cctv3.action

import java.text.SimpleDateFormat

import java.util.Date

import com.google.gson.Gson

import com.opensymphony.xwork2.ActionSupport

import net.cctv3.util.MySQLUtils

import net.cctv3.util.StringUtils

public class SelectStaffedHoursProgressesAction extends ActionSupport {

private static final long serialVersionUID = -4014435425235296288L

public String startTime

public String endTime

public String staff

@Override

public String execute() throws Exception {

if(StringUtils.empty(startTime) || StringUtils.empty(endTime)) {

String now = new SimpleDateFormat("yyyy-MM-dd").format(new Date())

startTime = now

endTime = now

}

PrintUtils.println(new Gson().toJson(new MySQLUtils().selectStafedsHoursProgresses(staff, startTime, endTime)))

return NONE

}

public String getStartTime() {

return startTime

}

public void setStartTime(String startTime) {

this.startTime = startTime

}

public String getEndTime() {

return endTime

}

public void setEndTime(String endTime) {

this.endTime = endTime

}

public String getStaff() {

return staff

}

public void setStaff(String staff) {

this.staff = staff

}

}


欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/zaji/7174610.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-02
下一篇2023-04-02

发表评论

登录后才能评论

评论列表(0条)

    保存