This commit is contained in:
sxu 2024-12-20 15:21:10 +08:00
parent 6e24bf1194
commit c01dc598cc
2 changed files with 2 additions and 9 deletions

View File

@ -4,13 +4,11 @@ import java.util.List;
import java.util.UUID; import java.util.UUID;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import com.alibaba.fastjson2.JSONObject; import com.alibaba.fastjson2.JSONObject;
import com.bonus.common.biz.constant.MaterialConstants; import com.bonus.common.biz.constant.MaterialConstants;
import com.bonus.common.core.exception.ServiceException; import com.bonus.common.core.exception.ServiceException;
import com.bonus.common.core.utils.DateUtils; import com.bonus.common.core.utils.DateUtils;
import com.bonus.common.redis.service.RedisService; import com.bonus.common.redis.service.RedisService;
import com.bonus.common.security.config.VerificationCodeConfig;
import com.bonus.common.security.utils.SecurityUtils; import com.bonus.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -24,9 +22,6 @@ public class BmMessageServiceImpl implements IBmMessageService {
@Autowired @Autowired
private BmMessageMapper bmMessageMapper; private BmMessageMapper bmMessageMapper;
@Resource
private VerificationCodeConfig verificationCodeConfig;
@Resource @Resource
private RedisService redisService; private RedisService redisService;

View File

@ -25,10 +25,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectBmMessageVo"/> <include refid="selectBmMessageVo"/>
<where> <where>
<if test="uuid != null and uuid != ''"> and uuid = #{uuid}</if> <if test="uuid != null and uuid != ''"> and uuid = #{uuid}</if>
<if test="fromUser != null and fromUser != ''"> and from_user = #{fromUser}</if> <if test="fromUser != null and toUser != null"> and (from_user = #{fromUser} or to_user = #{toUser})</if>
<if test="toUser != null and toUser != ''"> and to_user = #{toUser}</if> <if test="fromCompany != null and toCompany != null"> and (from_company = #{fromCompany} or to_company = #{toCompany})</if>
<if test="fromCompany != null and fromCompany != ''"> and from_company = #{fromCompany}</if>
<if test="toCompany != null and toCompany != ''"> and to_company = #{toCompany}</if>
<if test="messageContent != null and messageContent != ''"> and message_content = #{messageContent}</if> <if test="messageContent != null and messageContent != ''"> and message_content = #{messageContent}</if>
<if test="messageTopic != null and messageTopic != ''"> and message_topic = #{messageTopic}</if> <if test="messageTopic != null and messageTopic != ''"> and message_topic = #{messageTopic}</if>
<if test="messageType != null and messageType != ''"> and message_type = #{messageType}</if> <if test="messageType != null and messageType != ''"> and message_type = #{messageType}</if>