From 70ebe043e6b62756be9e257fe954c747d46568b9 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 16 九月 2022 19:00:59 +0800
Subject: [PATCH] 商品ID字符串化

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/order/HongBaoV2ServiceImpl.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/HongBaoV2ServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/HongBaoV2ServiceImpl.java
index e8e4ae4..7c114ad 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/HongBaoV2ServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/HongBaoV2ServiceImpl.java
@@ -254,7 +254,7 @@
         if (oldHongBao == null)
             throw new HongBaoException(10, "绾㈠寘瀵硅薄涓嶅瓨鍦�");
         // 宸茬粡澶辨晥锛屽凡缁忛鍙栵紝棰嗗彇涓紝鏂拌�佺姸鎬佷竴鑷寸殑绾㈠寘涓嶅仛澶勭悊
-        if (oldHongBao.getState() == HongBaoV2.STATE_SHIXIAO || oldHongBao.getState() == HongBaoV2.STATE_YILINGQU|| oldHongBao.getState() == HongBaoV2.STATE_LINGQUING)
+        if (oldHongBao.getState() == HongBaoV2.STATE_SHIXIAO || oldHongBao.getState() == HongBaoV2.STATE_YILINGQU || oldHongBao.getState() == HongBaoV2.STATE_LINGQUING)
             return false;
 
         SystemEnum system = userInfoService.getUserSystem(commonOrder.getUserInfo().getId());
@@ -343,7 +343,7 @@
             List<HongBaoV2> children = hongBaoV2Mapper.listChildrenById(hongBao.getId());
             if (children != null && children.size() > 0)
                 for (HongBaoV2 child : children) {
-                    if (child.getState() == HongBaoV2.STATE_YILINGQU||child.getState() == HongBaoV2.STATE_LINGQUING)
+                    if (child.getState() == HongBaoV2.STATE_YILINGQU || child.getState() == HongBaoV2.STATE_LINGQUING)
                         continue;
 
                     HongBaoV2 childUpdate = new HongBaoV2(child.getId());
@@ -568,7 +568,7 @@
             List<HongBaoV2> children = hongBaoV2Mapper.listChildrenById(hongBao.getId());
             if (children != null)
                 for (HongBaoV2 child : children) {
-                    if (child.getState() == HongBaoV2.STATE_YILINGQU||child.getState() == HongBaoV2.STATE_LINGQUING)
+                    if (child.getState() == HongBaoV2.STATE_YILINGQU || child.getState() == HongBaoV2.STATE_LINGQUING)
                         continue;
 
                     HongBaoV2 childUpdate = new HongBaoV2(child.getId());
@@ -1170,7 +1170,10 @@
     @Transactional
     @Override
     public void setHongBaoRecieved(Long uid, List<Integer> typeList, Date preGetTime) {
-        hongBaoV2Mapper.setHongBaoRecieved(uid, typeList, preGetTime);
+
+        String getMonth = TimeUtil.getGernalTime(preGetTime.getTime(), "yyyy-MM");
+        //鍓嶉潰鍑犱釜鏈堢殑鍙兘鏈夋湭缁撶畻鐨勶紝缁熶竴鍔犲叆鍒版湰鏈堢粨绠�
+        hongBaoV2Mapper.setHongBaoRecieved(uid, typeList, preGetTime, getMonth);
     }
 
 

--
Gitblit v1.8.0