package core.process; import core.operation.FillInformation; import error.GExcptInit; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.Map; public class C_SecretaryFillReplyRecord extends TempProcess{ String graduationDesignId; Map vMap; static String table="graduation_design_reply_opinion_record_score"; public void fillInformation() throws Exception{ if(!check()) throw new GExcptInit("FillInformation Attrs Init error!"); 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()); vMap.put("secretary_record_date",date); Maplimits = new HashMap<>(); limits.put("id",this.getGraduationDesignId()); fillInformation.addOptions("limits",limits); fillInformation.execute(null); } protected boolean check() { if(this.getGraduationDesignId()==null) return false; return true; } public String getGraduationDesignId() { return graduationDesignId; } @Override public void setGraduationDesignId(String graduationDesignId) { this.graduationDesignId = graduationDesignId; } public void setVMap(Map vMap) { this.vMap = vMap; } }