This commit is contained in:
sxu 2024-12-20 14:25:39 +08:00
parent 0b7f453bd8
commit 7ee47244b8
4 changed files with 43 additions and 49 deletions

View File

@ -20,7 +20,6 @@ import com.bonus.material.basic.service.IBmMessageService;
import com.bonus.common.core.web.controller.BaseController;
import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.common.core.utils.poi.ExcelUtil;
import com.bonus.common.core.web.page.TableDataInfo;
/**
* 消息Controller

View File

@ -4,54 +4,54 @@ import java.util.List;
import com.bonus.material.basic.domain.BmMessage;
/**
* 请填写功能名称Mapper接口
* 消息Mapper接口
*
* @author xsheng
* @date 2024-12-20
*/
public interface BmMessageMapper {
/**
* 查询请填写功能名称
* 查询消息
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
* @param id 消息主键
* @return 消息
*/
public BmMessage selectBmMessageById(Long id);
/**
* 查询请填写功能名称列表
* 查询消息列表
*
* @param bmMessage 请填写功能名称
* @return 请填写功能名称集合
* @param bmMessage 消息
* @return 消息集合
*/
public List<BmMessage> selectBmMessageList(BmMessage bmMessage);
/**
* 新增请填写功能名称
* 新增消息
*
* @param bmMessage 请填写功能名称
* @param bmMessage 消息
* @return 结果
*/
public int insertBmMessage(BmMessage bmMessage);
/**
* 修改请填写功能名称
* 修改消息
*
* @param bmMessage 请填写功能名称
* @param bmMessage 消息
* @return 结果
*/
public int updateBmMessage(BmMessage bmMessage);
/**
* 删除请填写功能名称
* 删除消息
*
* @param id 请填写功能名称主键
* @param id 消息主键
* @return 结果
*/
public int deleteBmMessageById(Long id);
/**
* 批量删除请填写功能名称
* 批量删除消息
*
* @param ids 需要删除的数据主键集合
* @return 结果

View File

@ -4,58 +4,58 @@ import java.util.List;
import com.bonus.material.basic.domain.BmMessage;
/**
* 请填写功能名称Service接口
* 消息Service接口
*
* @author xsheng
* @date 2024-12-20
*/
public interface IBmMessageService {
/**
* 查询请填写功能名称
* 查询消息
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
* @param id 消息主键
* @return 消息
*/
public BmMessage selectBmMessageById(Long id);
/**
* 查询请填写功能名称列表
* 查询消息列表
*
* @param bmMessage 请填写功能名称
* @return 请填写功能名称集合
* @param bmMessage 消息
* @return 消息集合
*/
public List<BmMessage> selectBmMessageList(BmMessage bmMessage);
public List<BmMessage> selectBmMessageListFromCache(BmMessage bmMessage);
/**
* 新增请填写功能名称
* 新增消息
*
* @param bmMessage 请填写功能名称
* @param bmMessage 消息
* @return 结果
*/
public int insertBmMessage(BmMessage bmMessage);
/**
* 修改请填写功能名称
* 修改消息
*
* @param bmMessage 请填写功能名称
* @param bmMessage 消息
* @return 结果
*/
public int updateBmMessage(BmMessage bmMessage);
/**
* 批量删除请填写功能名称
* 批量删除消息
*
* @param ids 需要删除的请填写功能名称主键集合
* @param ids 需要删除的消息主键集合
* @return 结果
*/
public int deleteBmMessageByIds(Long[] ids);
/**
* 删除请填写功能名称信息
* 删除消息信息
*
* @param id 请填写功能名称主键
* @param id 消息主键
* @return 结果
*/
public int deleteBmMessageById(Long id);

View File

@ -3,14 +3,10 @@ package com.bonus.material.basic.service.impl;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import com.alibaba.fastjson2.JSONObject;
import com.bonus.common.biz.constant.MaterialConstants;
import com.bonus.common.core.constant.CacheConstants;
import com.bonus.common.core.exception.ServiceException;
import com.bonus.common.core.text.Convert;
import com.bonus.common.core.utils.DateUtils;
import com.bonus.common.core.utils.StringUtils;
import com.bonus.common.redis.service.RedisService;
import com.bonus.common.security.config.VerificationCodeConfig;
import org.springframework.beans.factory.annotation.Autowired;
@ -18,7 +14,6 @@ import org.springframework.stereotype.Service;
import com.bonus.material.basic.mapper.BmMessageMapper;
import com.bonus.material.basic.domain.BmMessage;
import com.bonus.material.basic.service.IBmMessageService;
import javax.annotation.Resource;
@Service
@ -33,10 +28,10 @@ public class BmMessageServiceImpl implements IBmMessageService {
private RedisService redisService;
/**
* 查询请填写功能名称
* 查询消息
*
* @param id 请填写功能名称主键
* @return 请填写功能名称
* @param id 消息主键
* @return 消息
*/
@Override
public BmMessage selectBmMessageById(Long id) {
@ -44,10 +39,10 @@ public class BmMessageServiceImpl implements IBmMessageService {
}
/**
* 查询请填写功能名称列表
* 查询消息列表
*
* @param bmMessage 请填写功能名称
* @return 请填写功能名称
* @param bmMessage 消息
* @return 消息
*/
@Override
public List<BmMessage> selectBmMessageList(BmMessage bmMessage) {
@ -61,9 +56,9 @@ public class BmMessageServiceImpl implements IBmMessageService {
}
/**
* 新增请填写功能名称
* 新增消息
*
* @param bmMessage 请填写功能名称
* @param bmMessage 消息
* @return 结果
*/
@Override
@ -81,9 +76,9 @@ public class BmMessageServiceImpl implements IBmMessageService {
}
/**
* 修改请填写功能名称
* 修改消息
*
* @param bmMessage 请填写功能名称
* @param bmMessage 消息
* @return 结果
*/
@Override
@ -97,9 +92,9 @@ public class BmMessageServiceImpl implements IBmMessageService {
}
/**
* 批量删除请填写功能名称
* 批量删除消息
*
* @param ids 需要删除的请填写功能名称主键
* @param ids 需要删除的消息主键
* @return 结果
*/
@Override
@ -108,9 +103,9 @@ public class BmMessageServiceImpl implements IBmMessageService {
}
/**
* 删除请填写功能名称信息
* 删除消息信息
*
* @param id 请填写功能名称主键
* @param id 消息主键
* @return 结果
*/
@Override