From 0dc27f627f8318d6fdf7fe2704f422c27d9bdc08 Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Tue, 25 Jun 2019 21:20:58 +0800 Subject: [PATCH] =?UTF-8?q?[coupon=5Faction=5Flog][=E4=BF=AE=E6=94=B9]:?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96create=5Ftime=5Fmd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/service/impl/WxCouponActionLogServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponActionLogServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponActionLogServiceImpl.java index 4f20aafe2..278118583 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponActionLogServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponActionLogServiceImpl.java @@ -1,5 +1,6 @@ package com.iformall.service.impl; +import java.text.SimpleDateFormat; import java.util.*; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; @@ -49,13 +50,15 @@ public class WxCouponActionLogServiceImpl implements WxCouponActionLogService { @Override public void addOne(String tenantId, Long couponId, Long coupon_order_id, int channelType, Long channelId) { + Date curDate = new Date(); WxCouponActionLog actionLog = new WxCouponActionLog(); actionLog.setTenantId(tenantId); actionLog.setCouponId(couponId); actionLog.setChannelId(channelId); actionLog.setCouponOrderId(coupon_order_id); actionLog.setChannelType(channelType); - actionLog.setCreateTime(new Date()); + actionLog.setCreateTime(curDate); + actionLog.setCreateTimeMd(new SimpleDateFormat("MM/dd").format(curDate));; saveOrUpdate(actionLog); }