diff --git a/WebContent/Tenwa/Lease/App/Interface/Message/LBSmsNoticeTasksInfo.jsp b/WebContent/Tenwa/Lease/App/Interface/Message/LBSmsNoticeTasksInfo.jsp index 90fe53bbb..7e69f01fc 100644 --- a/WebContent/Tenwa/Lease/App/Interface/Message/LBSmsNoticeTasksInfo.jsp +++ b/WebContent/Tenwa/Lease/App/Interface/Message/LBSmsNoticeTasksInfo.jsp @@ -23,7 +23,7 @@ %><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/src_tenwa/com/tenwa/lease/app/message/SmsController.java b/src_tenwa/com/tenwa/lease/app/message/SmsController.java index 622bbd7e5..09dd9b3e5 100644 --- a/src_tenwa/com/tenwa/lease/app/message/SmsController.java +++ b/src_tenwa/com/tenwa/lease/app/message/SmsController.java @@ -1,13 +1,17 @@ package com.tenwa.lease.app.message; +import java.text.SimpleDateFormat; import java.util.List; + import jbo.com.tenwa.lease.comm.LB_MESSAGE_CONFIG; import jbo.com.tenwa.lease.comm.LB_SMS_NOTICE_TASKS; import net.sf.json.JSONObject; + import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.methods.GetMethod; import org.apache.log4j.Logger; + import com.amarsoft.are.jbo.BizObject; import com.amarsoft.are.jbo.BizObjectManager; import com.amarsoft.are.jbo.JBOFactory; @@ -19,7 +23,7 @@ public class SmsController { private String ids; private Logger logger = Logger.getLogger(this.getClass()); - + private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); public String getIds() { return ids; } @@ -55,7 +59,7 @@ public class SmsController { boLSNT.setAttributeValue("SMS_TYPE","IMMEDIATELY"); //ÅжϷµ»ØµÄ״̬Âë boLSNT.setAttributeValue("SEND_RESULT",SmsController.getResultCodeInfo(statuscode)); - boLSNT.setAttributeValue("SEND_TIME",StringFunction.getTodayNow()); + boLSNT.setAttributeValue("SEND_TIME",sdf.format(StringFunction.getTodayNow())); boLSNT.setAttributeValue("SEND_FLAG",1); bomLSNT.saveObject(boLSNT); }