Authored by tanling

小程序模板消息

... ... @@ -287,7 +287,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
messageCenterCommonEvent.putInParams("address", address);
messageCenterCommonEvent.putInParams("cancelReason", cancelReason);
messageCenterCommonEvent.putInParams("cancelTime", DateUtils.long2DateStr(cancelTime, DateUtils.fullDateTimeFormat));
messageCenterCommonEvent.putInParams("cancelTime", DateUtils.long2DateStr(cancelTime * 1000l, DateUtils.fullDateTimeFormat));
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
... ... @@ -344,7 +344,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
messageCenterCommonEvent.putInParams("orderCode", orderCode);
messageCenterCommonEvent.putInParams("productName", productName);
messageCenterCommonEvent.putInParams("goodReceiptTime", DateUtils.long2DateStr(goodReceiptTime, DateUtils.fullDateTimeFormat));
messageCenterCommonEvent.putInParams("goodReceiptTime", DateUtils.long2DateStr(goodReceiptTime * 1000l, DateUtils.fullDateTimeFormat));
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
... ... @@ -372,7 +372,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
messageCenterCommonEvent.putInParams("orderCode", orderCode);
messageCenterCommonEvent.putInParams("productName", productName);
messageCenterCommonEvent.putInParams("payTime", DateUtils.long2DateStr(payTime, DateUtils.fullDateTimeFormat));
messageCenterCommonEvent.putInParams("payTime", DateUtils.long2DateStr(payTime * 1000l, DateUtils.fullDateTimeFormat));
messageCenterCommonEvent.putInParams("orderAmount", orderAmount);
messageCenterCommonEvent.putInParams("goodReceiptAddress", goodReceiptAddress);
... ... @@ -407,7 +407,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
messageCenterCommonEvent.putInParams("orderAmount", orderAmount);
messageCenterCommonEvent.putInParams("payType", payType);
messageCenterCommonEvent.putInParams("productName", productName);
messageCenterCommonEvent.putInParams("refundTime", DateUtils.long2DateStr(refundTime, DateUtils.fullDateTimeFormat)); // 时间戳
messageCenterCommonEvent.putInParams("refundTime", DateUtils.long2DateStr(refundTime * 1000l, DateUtils.fullDateTimeFormat)); // 时间戳
messageCenterCommonEvent.putInParams("refundId", refundId);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
... ... @@ -470,7 +470,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
}
// 发货时间
messageCenterCommonEvent.putInParams("deliveryTime", DateUtils.long2DateStr(deliveryTime, DateUtils.fullDateTimeFormat));
messageCenterCommonEvent.putInParams("deliveryTime", DateUtils.long2DateStr(deliveryTime * 1000l, DateUtils.fullDateTimeFormat));
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
... ...
... ... @@ -45,17 +45,7 @@ public final class DateUtils {
}
public static void main(String[] args) {
System.out.println("DateUtils.getCurrentTimeSeconds() is :" + DateUtils.getCurrentTimeSeconds());
System.out.println("DateUtils.getCurrentDateMillis() is :" + DateUtils.getCurrentDateMillis());
long currentTimeMillis = System.currentTimeMillis();
System.out.println("System.currentTimeMillis() is :" + currentTimeMillis);
boolean flag = currentTimeMillis-DateUtils.getCurrentDateMillis()>0;
System.out.println("flag is : " + flag);
int subtime = 1484551195;
System.out.println("subtime 1484551195 is :" + subtime*1000L);
System.out.println(DateUtils.long2DateStr(1514982989 * 1000l, DateUtils.fullDateTimeFormat));
}
... ...