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
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)