DateTools.getCurrentDate();
以物流中心质量表函为例:
public String edit() {
this.wlzxZlbh.setSdbhrq(DateTools.getCurrentDate());//编辑时设置收到保函时间为系统当前时间;
return EDIT_JSP;
}
public void update() {
Map<String, Object> resInfo = null;
try{
this.wlzxZlbh.setSdbhrq(DateTools.getCurrentDate());//保存编辑时设置收到保函时间为系统当前时间;
String realpath = ServletActionContext.getServletContext().getRealPath(UPLOADPATH);
wlzxZlbhManager.updateZlbh(wlzxZlbh,realpath,getAttachFile(),getAttachFileFileName(),getAttachFileContentType());
resInfo = ResInfo.getResInfo("",false, false, 2, this.OPERATE_SUCCESS,"");
}catch(Exception e){
e.printStackTrace();
resInfo = ResInfo.getResInfo("",false, false, 1, this.OPERATE_FAILED,"");
}
outXmlJson(resInfo);
}