日期格式化

wmj
wan 6 years ago
parent 057abc2477
commit c382405994

@ -2,6 +2,7 @@ package core.process;
import core.operation.FillInformation;
import error.GExcptInit;
import gdms.Configuration;
import java.text.SimpleDateFormat;
import java.util.Date;
@ -23,8 +24,7 @@ public class C_CollegeFillOpeningReportOpinion extends C_FillInformation{
FillInformation fillInformation =new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss");
String date=df.format(new Date());
String date= Configuration.dateFormat.format(new Date());
vMap.put("college_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());

@ -2,6 +2,7 @@ package core.process;
import core.operation.FillInformation;
import error.GExcptInit;
import gdms.Configuration;
import java.text.SimpleDateFormat;
import java.util.Date;
@ -23,8 +24,7 @@ public class C_CollegeFillScoreOpinion extends C_FillInformation{
FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss");
String date=df.format(new Date());
String date= Configuration.dateFormat.format(new Date());
vMap.put("college_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());

@ -2,6 +2,7 @@ package core.process;
import core.operation.FillInformation;
import error.GExcptInit;
import gdms.Configuration;
import java.text.SimpleDateFormat;
import java.util.Date;
@ -24,8 +25,7 @@ public class C_MentorFillOpeningReportOpinion extends C_FillInformation{
FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss");
String date=df.format(new Date());
String date= Configuration.dateFormat.format(new Date());
vMap.put("mentor_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());

@ -2,6 +2,7 @@ package core.process;
import core.operation.FillInformation;
import error.GExcptInit;
import gdms.Configuration;
import java.text.SimpleDateFormat;
import java.util.Date;
@ -24,8 +25,7 @@ public class C_MentorFillReview extends C_FillInformation {
FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss");
String date=df.format(new Date());
String date= Configuration.dateFormat.format(new Date());
vMap.put("review_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());

@ -2,6 +2,7 @@ package core.process;
import core.operation.FillInformation;
import error.GExcptInit;
import gdms.Configuration;
import java.text.SimpleDateFormat;
import java.util.Date;
@ -23,8 +24,7 @@ public class C_ReviewerFillReview extends C_FillInformation {
FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss");
String date=df.format(new Date());
String date= Configuration.dateFormat.format(new Date());
vMap.put("reviewer_score_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());

@ -2,6 +2,7 @@ package core.process;
import core.operation.FillInformation;
import error.GExcptInit;
import gdms.Configuration;
import java.text.SimpleDateFormat;
import java.util.Date;
@ -23,8 +24,7 @@ public class C_SchoolFillScoreOpinion extends C_FillInformation {
FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss");
String date=df.format(new Date());
String date= Configuration.dateFormat.format(new Date());
vMap.put("school_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());

@ -2,6 +2,7 @@ package core.process;
import core.operation.FillInformation;
import error.GExcptInit;
import gdms.Configuration;
import java.text.SimpleDateFormat;
import java.util.Date;
@ -24,8 +25,7 @@ public class C_SecretaryFillOpeningReportRecord extends C_FillInformation{
FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss");
String date=df.format(new Date());
String date= Configuration.dateFormat.format(new Date());
vMap.put("secretary_record_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());

@ -2,6 +2,7 @@ package core.process;
import core.operation.FillInformation;
import error.GExcptInit;
import gdms.Configuration;
import java.text.SimpleDateFormat;
import java.util.Date;
@ -24,8 +25,7 @@ public class C_SecretaryFillReplyRecord extends C_FillInformation{
FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss");
String date=df.format(new Date());
String date= Configuration.dateFormat.format(new Date());
vMap.put("secretary_record_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());

@ -2,6 +2,7 @@ package core.process;
import core.operation.FillInformation;
import error.GExcptInit;
import gdms.Configuration;
import java.text.SimpleDateFormat;
import java.util.Date;
@ -24,8 +25,7 @@ public class C_TeacherTeamFillOpeningReportOpinion extends C_FillInformation{
FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss");
String date=df.format(new Date());
String date= Configuration.dateFormat.format(new Date());
vMap.put("report_teacher_team_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());

@ -2,6 +2,7 @@ package core.process;
import core.operation.FillInformation;
import error.GExcptInit;
import gdms.Configuration;
import java.text.SimpleDateFormat;
import java.util.Date;
@ -24,8 +25,7 @@ public class C_TeacherTeamFillScoreOpinion extends C_FillInformation {
FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss");
String date=df.format(new Date());
String date= Configuration.dateFormat.format(new Date());
vMap.put("teacher_team_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());

@ -1,5 +1,7 @@
package gdms;
import java.text.SimpleDateFormat;
public interface Configuration {
//file
String filePath = "C:/Users/zhai_/Desktop/";
@ -7,4 +9,5 @@ public interface Configuration {
String dbUrl="jdbc:mariadb://localhost:3306/gdms";
String dbUsername="gdms";
String dbPassword="GDMS";
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
}

Loading…
Cancel
Save