检查C_Process

hechu1
zhai_lw 6 years ago
parent a02f896fc4
commit c63578ca78

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="false" project-jdk-name="11" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="false" project-jdk-name="10" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -34,4 +34,12 @@ public class C_CollegeFillScoreOpinion extends TempProcess{
return false;
return true;
}
public Map<String, String> getVMap() {
return vMap;
}
public void setVMap(Map<String, String> vMap) {
this.vMap = vMap;
}
}

@ -10,8 +10,6 @@ import java.util.Map;
public class C_MentorFillOpeningReportOpinion extends TempProcess{
String studentId;
String mentor_opinion;
Map<String,String> vMap;
static String table="graduation_design_opening_report_opinion_record";
@ -25,32 +23,21 @@ public class C_MentorFillOpeningReportOpinion extends TempProcess{
String date=df.format(new Date());
vMap.put("mentor_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getStudentId());
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.execute(null);
}
protected boolean check() {
if(this.getMentor_opinion()==null||this.getStudentId()==null)
if(this.getVMap()==null||this.getGraduationDesignId()==null)
return false;
return true;
}
public String getStudentId() {
return studentId;
}
public void setStudentId(String studentId) {
this.studentId = studentId;
}
public String getMentor_opinion() {
return mentor_opinion;
}
public void setMentor_opinion(String mentor_opinion) {
this.mentor_opinion = mentor_opinion;
}
public void setVMap(Map<String, String> vMap) {
this.vMap = vMap;
}
public Map<String, String> getVMap() {
return vMap;
}
}

@ -16,7 +16,14 @@ public class S_CollegeFillScoreOpinion extends HttpServlet {
String id = request.getParameter("id");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
C_CollegeFillScoreOpinion p =new C_CollegeFillScoreOpinion();
p.setGraduationDesignId(id);
p.setVMap(vMap);
try {
p.fillInformation();
} catch (Exception e) {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
}
static String[] vName = {
"college_opinion",

@ -1,5 +1,7 @@
package servlet;
import core.process.C_MentorFillOpeningReportOpinion;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
@ -13,7 +15,15 @@ public class S_MentorFillOpeningReportOpinion extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
C_MentorFillOpeningReportOpinion p = new C_MentorFillOpeningReportOpinion();
p.setGraduationDesignId(id);
p.setVMap(vMap);
try {
p.fillInformation();
} catch (Exception e) {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
}
static String[] vName = {
"mentor_opinion"

Loading…
Cancel
Save