|
@@ -22,6 +22,7 @@ import com.txz.cif.web.bo.UserTopBo;
|
|
import com.txz.cif.web.para.RedEnvelopeParam;
|
|
import com.txz.cif.web.para.RedEnvelopeParam;
|
|
import com.txz.mall.enums.NoticeEnum;
|
|
import com.txz.mall.enums.NoticeEnum;
|
|
import com.txz.operating.dto.ConfigDTO;
|
|
import com.txz.operating.dto.ConfigDTO;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import tk.mybatis.mapper.entity.Condition;
|
|
import tk.mybatis.mapper.entity.Condition;
|
|
@@ -38,6 +39,7 @@ import java.util.List;
|
|
/**
|
|
/**
|
|
* Created by CodeGenerator on 2025/07/15.
|
|
* Created by CodeGenerator on 2025/07/15.
|
|
*/
|
|
*/
|
|
|
|
+@Slf4j
|
|
@Service
|
|
@Service
|
|
@Transactional
|
|
@Transactional
|
|
public class RedEnvelopeServiceImpl extends AbstractService<RedEnvelope> implements RedEnvelopeService {
|
|
public class RedEnvelopeServiceImpl extends AbstractService<RedEnvelope> implements RedEnvelopeService {
|
|
@@ -222,7 +224,7 @@ public class RedEnvelopeServiceImpl extends AbstractService<RedEnvelope> impleme
|
|
.creditAccount(account.getId())
|
|
.creditAccount(account.getId())
|
|
.transTime(param.getTransTime())
|
|
.transTime(param.getTransTime())
|
|
.status(1)
|
|
.status(1)
|
|
- .userId(param.getUserIds().get(0).getUserId())
|
|
|
|
|
|
+ .userId(userId.getUserId())
|
|
.tranNo(param.getOrderNo())
|
|
.tranNo(param.getOrderNo())
|
|
.settleTime(settleTime)
|
|
.settleTime(settleTime)
|
|
.createUser(param.getUserIds().get(0).getUserId() + "")
|
|
.createUser(param.getUserIds().get(0).getUserId() + "")
|
|
@@ -230,7 +232,7 @@ public class RedEnvelopeServiceImpl extends AbstractService<RedEnvelope> impleme
|
|
try {
|
|
try {
|
|
noticeDubboServiceClient.addRewardNotice(getNoticeEunm(bizType), param.getUserIds().get(0).getOrderNo(), redEnvelope.getUserId());
|
|
noticeDubboServiceClient.addRewardNotice(getNoticeEunm(bizType), param.getUserIds().get(0).getOrderNo(), redEnvelope.getUserId());
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
-
|
|
|
|
|
|
+ log.error("发送消息异常",e);
|
|
}
|
|
}
|
|
return redEnvelope;
|
|
return redEnvelope;
|
|
} else {
|
|
} else {
|