标签:平台 res ext.get 物流 时间 action file this cat
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);
}
标签:平台 res ext.get 物流 时间 action file this cat
原文地址:http://www.cnblogs.com/ydd2ct/p/6149670.html