Commit a9e3f218 authored by 马超's avatar 马超

值班

parent a3ae8261
...@@ -26,6 +26,14 @@ ...@@ -26,6 +26,14 @@
Vector v_list_xiu = null; Vector v_list_xiu = null;
String year = pub.trimNull(request.getParameter("year")); String year = pub.trimNull(request.getParameter("year"));
String month = pub.trimNull(request.getParameter("month")); String month = pub.trimNull(request.getParameter("month"));
if("13".equals(month)){
year=String.valueOf(Integer.parseInt(year)+1);
month="01";
}
if("0".equals(month)){
year=String.valueOf(Integer.parseInt(year)-1);
month="12";
}
String day = pub.trimNull(request.getParameter("day")); String day = pub.trimNull(request.getParameter("day"));
if(month.length()==1){ if(month.length()==1){
month="0"+month; month="0"+month;
......
...@@ -35,6 +35,14 @@ ...@@ -35,6 +35,14 @@
Vector v_list_xiu = null; Vector v_list_xiu = null;
String year = pub.trimNull(request.getParameter("year")); String year = pub.trimNull(request.getParameter("year"));
String month = pub.trimNull(request.getParameter("month")); String month = pub.trimNull(request.getParameter("month"));
if("13".equals(month)){
year=String.valueOf(Integer.parseInt(year)+1);
month="01";
}
if("0".equals(month)){
year=String.valueOf(Integer.parseInt(year)-1);
month="12";
}
String day = pub.trimNull(request.getParameter("day")); String day = pub.trimNull(request.getParameter("day"));
if(month.length()==1){ if(month.length()==1){
month="0"+month; month="0"+month;
......
...@@ -25,6 +25,14 @@ ...@@ -25,6 +25,14 @@
Vector v_list_xiu = null; Vector v_list_xiu = null;
String year = pub.trimNull(request.getParameter("year")); String year = pub.trimNull(request.getParameter("year"));
String month = pub.trimNull(request.getParameter("month")); String month = pub.trimNull(request.getParameter("month"));
if("13".equals(month)){
year=String.valueOf(Integer.parseInt(year)+1);
month="01";
}
if("0".equals(month)){
year=String.valueOf(Integer.parseInt(year)-1);
month="12";
}
String day = pub.trimNull(request.getParameter("day")); String day = pub.trimNull(request.getParameter("day"));
if(month.length()==1){ if(month.length()==1){
month="0"+month; month="0"+month;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment