Authored by tanling

小程序模板消息

@@ -287,7 +287,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr @@ -287,7 +287,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
287 messageCenterCommonEvent.putInParams("address", address); 287 messageCenterCommonEvent.putInParams("address", address);
288 288
289 messageCenterCommonEvent.putInParams("cancelReason", cancelReason); 289 messageCenterCommonEvent.putInParams("cancelReason", cancelReason);
290 - messageCenterCommonEvent.putInParams("cancelTime", DateUtils.long2DateStr(cancelTime, DateUtils.fullDateTimeFormat)); 290 + messageCenterCommonEvent.putInParams("cancelTime", DateUtils.long2DateStr(cancelTime * 1000l, DateUtils.fullDateTimeFormat));
291 291
292 messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent); 292 messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
293 293
@@ -344,7 +344,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr @@ -344,7 +344,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
344 344
345 messageCenterCommonEvent.putInParams("orderCode", orderCode); 345 messageCenterCommonEvent.putInParams("orderCode", orderCode);
346 messageCenterCommonEvent.putInParams("productName", productName); 346 messageCenterCommonEvent.putInParams("productName", productName);
347 - messageCenterCommonEvent.putInParams("goodReceiptTime", DateUtils.long2DateStr(goodReceiptTime, DateUtils.fullDateTimeFormat)); 347 + messageCenterCommonEvent.putInParams("goodReceiptTime", DateUtils.long2DateStr(goodReceiptTime * 1000l, DateUtils.fullDateTimeFormat));
348 348
349 messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent); 349 messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
350 350
@@ -372,7 +372,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr @@ -372,7 +372,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
372 372
373 messageCenterCommonEvent.putInParams("orderCode", orderCode); 373 messageCenterCommonEvent.putInParams("orderCode", orderCode);
374 messageCenterCommonEvent.putInParams("productName", productName); 374 messageCenterCommonEvent.putInParams("productName", productName);
375 - messageCenterCommonEvent.putInParams("payTime", DateUtils.long2DateStr(payTime, DateUtils.fullDateTimeFormat)); 375 + messageCenterCommonEvent.putInParams("payTime", DateUtils.long2DateStr(payTime * 1000l, DateUtils.fullDateTimeFormat));
376 messageCenterCommonEvent.putInParams("orderAmount", orderAmount); 376 messageCenterCommonEvent.putInParams("orderAmount", orderAmount);
377 messageCenterCommonEvent.putInParams("goodReceiptAddress", goodReceiptAddress); 377 messageCenterCommonEvent.putInParams("goodReceiptAddress", goodReceiptAddress);
378 378
@@ -407,7 +407,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr @@ -407,7 +407,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
407 messageCenterCommonEvent.putInParams("orderAmount", orderAmount); 407 messageCenterCommonEvent.putInParams("orderAmount", orderAmount);
408 messageCenterCommonEvent.putInParams("payType", payType); 408 messageCenterCommonEvent.putInParams("payType", payType);
409 messageCenterCommonEvent.putInParams("productName", productName); 409 messageCenterCommonEvent.putInParams("productName", productName);
410 - messageCenterCommonEvent.putInParams("refundTime", DateUtils.long2DateStr(refundTime, DateUtils.fullDateTimeFormat)); // 时间戳 410 + messageCenterCommonEvent.putInParams("refundTime", DateUtils.long2DateStr(refundTime * 1000l, DateUtils.fullDateTimeFormat)); // 时间戳
411 messageCenterCommonEvent.putInParams("refundId", refundId); 411 messageCenterCommonEvent.putInParams("refundId", refundId);
412 412
413 messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent); 413 messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
@@ -470,7 +470,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr @@ -470,7 +470,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
470 } 470 }
471 471
472 // 发货时间 472 // 发货时间
473 - messageCenterCommonEvent.putInParams("deliveryTime", DateUtils.long2DateStr(deliveryTime, DateUtils.fullDateTimeFormat)); 473 + messageCenterCommonEvent.putInParams("deliveryTime", DateUtils.long2DateStr(deliveryTime * 1000l, DateUtils.fullDateTimeFormat));
474 474
475 messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent); 475 messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
476 476
@@ -45,17 +45,7 @@ public final class DateUtils { @@ -45,17 +45,7 @@ public final class DateUtils {
45 } 45 }
46 46
47 public static void main(String[] args) { 47 public static void main(String[] args) {
48 - System.out.println("DateUtils.getCurrentTimeSeconds() is :" + DateUtils.getCurrentTimeSeconds());  
49 - System.out.println("DateUtils.getCurrentDateMillis() is :" + DateUtils.getCurrentDateMillis());  
50 - long currentTimeMillis = System.currentTimeMillis();  
51 - System.out.println("System.currentTimeMillis() is :" + currentTimeMillis);  
52 -  
53 - boolean flag = currentTimeMillis-DateUtils.getCurrentDateMillis()>0;  
54 - System.out.println("flag is : " + flag);  
55 -  
56 - int subtime = 1484551195;  
57 - System.out.println("subtime 1484551195 is :" + subtime*1000L);  
58 - 48 + System.out.println(DateUtils.long2DateStr(1514982989 * 1000l, DateUtils.fullDateTimeFormat));
59 49
60 } 50 }
61 51