From d88b896a545828596f921f0801c94b9450554d77 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Mon, 3 Jun 2019 11:26:13 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=9F=AD=E4=BF=A1=E7=BB=9F=E4=B8=80=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=A0=BC=E5=BC=8F=E7=94=A8=E6=9D=A5=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=8E=92=E5=BA=8FBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Lease/App/Interface/Message/LBSmsNoticeTasksInfo.jsp | 2 +- src_tenwa/com/tenwa/lease/app/message/SmsController.java | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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); }