Bläddra i källkod

[coupon_action_log][修改]:初始化create_time_md

release_toaliyun_real
Stormeye Wu 7 år sedan
förälder
incheckning
0dc27f627f
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. +4
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponActionLogServiceImpl.java

+ 4
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCouponActionLogServiceImpl.java Visa fil

@@ -1,5 +1,6 @@
package com.iformall.service.impl; package com.iformall.service.impl;


import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
@@ -49,13 +50,15 @@ public class WxCouponActionLogServiceImpl implements WxCouponActionLogService {


@Override @Override
public void addOne(String tenantId, Long couponId, Long coupon_order_id, int channelType, Long channelId) { public void addOne(String tenantId, Long couponId, Long coupon_order_id, int channelType, Long channelId) {
Date curDate = new Date();
WxCouponActionLog actionLog = new WxCouponActionLog(); WxCouponActionLog actionLog = new WxCouponActionLog();
actionLog.setTenantId(tenantId); actionLog.setTenantId(tenantId);
actionLog.setCouponId(couponId); actionLog.setCouponId(couponId);
actionLog.setChannelId(channelId); actionLog.setChannelId(channelId);
actionLog.setCouponOrderId(coupon_order_id); actionLog.setCouponOrderId(coupon_order_id);
actionLog.setChannelType(channelType); actionLog.setChannelType(channelType);
actionLog.setCreateTime(new Date());
actionLog.setCreateTime(curDate);
actionLog.setCreateTimeMd(new SimpleDateFormat("MM/dd").format(curDate));;
saveOrUpdate(actionLog); saveOrUpdate(actionLog);
} }




Laddar…
Avbryt
Spara