This commit is contained in:
parent
0b7f453bd8
commit
7ee47244b8
|
|
@ -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.controller.BaseController;
|
||||||
import com.bonus.common.core.web.domain.AjaxResult;
|
import com.bonus.common.core.web.domain.AjaxResult;
|
||||||
import com.bonus.common.core.utils.poi.ExcelUtil;
|
import com.bonus.common.core.utils.poi.ExcelUtil;
|
||||||
import com.bonus.common.core.web.page.TableDataInfo;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 消息Controller
|
* 消息Controller
|
||||||
|
|
|
||||||
|
|
@ -4,54 +4,54 @@ import java.util.List;
|
||||||
import com.bonus.material.basic.domain.BmMessage;
|
import com.bonus.material.basic.domain.BmMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 【请填写功能名称】Mapper接口
|
* 消息Mapper接口
|
||||||
*
|
*
|
||||||
* @author xsheng
|
* @author xsheng
|
||||||
* @date 2024-12-20
|
* @date 2024-12-20
|
||||||
*/
|
*/
|
||||||
public interface BmMessageMapper {
|
public interface BmMessageMapper {
|
||||||
/**
|
/**
|
||||||
* 查询【请填写功能名称】
|
* 查询消息
|
||||||
*
|
*
|
||||||
* @param id 【请填写功能名称】主键
|
* @param id 消息主键
|
||||||
* @return 【请填写功能名称】
|
* @return 消息
|
||||||
*/
|
*/
|
||||||
public BmMessage selectBmMessageById(Long id);
|
public BmMessage selectBmMessageById(Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询【请填写功能名称】列表
|
* 查询消息列表
|
||||||
*
|
*
|
||||||
* @param bmMessage 【请填写功能名称】
|
* @param bmMessage 消息
|
||||||
* @return 【请填写功能名称】集合
|
* @return 消息集合
|
||||||
*/
|
*/
|
||||||
public List<BmMessage> selectBmMessageList(BmMessage bmMessage);
|
public List<BmMessage> selectBmMessageList(BmMessage bmMessage);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增【请填写功能名称】
|
* 新增消息
|
||||||
*
|
*
|
||||||
* @param bmMessage 【请填写功能名称】
|
* @param bmMessage 消息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertBmMessage(BmMessage bmMessage);
|
public int insertBmMessage(BmMessage bmMessage);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改【请填写功能名称】
|
* 修改消息
|
||||||
*
|
*
|
||||||
* @param bmMessage 【请填写功能名称】
|
* @param bmMessage 消息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateBmMessage(BmMessage bmMessage);
|
public int updateBmMessage(BmMessage bmMessage);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除【请填写功能名称】
|
* 删除消息
|
||||||
*
|
*
|
||||||
* @param id 【请填写功能名称】主键
|
* @param id 消息主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteBmMessageById(Long id);
|
public int deleteBmMessageById(Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除【请填写功能名称】
|
* 批量删除消息
|
||||||
*
|
*
|
||||||
* @param ids 需要删除的数据主键集合
|
* @param ids 需要删除的数据主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
|
|
|
||||||
|
|
@ -4,58 +4,58 @@ import java.util.List;
|
||||||
import com.bonus.material.basic.domain.BmMessage;
|
import com.bonus.material.basic.domain.BmMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 【请填写功能名称】Service接口
|
* 消息Service接口
|
||||||
*
|
*
|
||||||
* @author xsheng
|
* @author xsheng
|
||||||
* @date 2024-12-20
|
* @date 2024-12-20
|
||||||
*/
|
*/
|
||||||
public interface IBmMessageService {
|
public interface IBmMessageService {
|
||||||
/**
|
/**
|
||||||
* 查询【请填写功能名称】
|
* 查询消息
|
||||||
*
|
*
|
||||||
* @param id 【请填写功能名称】主键
|
* @param id 消息主键
|
||||||
* @return 【请填写功能名称】
|
* @return 消息
|
||||||
*/
|
*/
|
||||||
public BmMessage selectBmMessageById(Long id);
|
public BmMessage selectBmMessageById(Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询【请填写功能名称】列表
|
* 查询消息列表
|
||||||
*
|
*
|
||||||
* @param bmMessage 【请填写功能名称】
|
* @param bmMessage 消息
|
||||||
* @return 【请填写功能名称】集合
|
* @return 消息集合
|
||||||
*/
|
*/
|
||||||
public List<BmMessage> selectBmMessageList(BmMessage bmMessage);
|
public List<BmMessage> selectBmMessageList(BmMessage bmMessage);
|
||||||
|
|
||||||
public List<BmMessage> selectBmMessageListFromCache(BmMessage bmMessage);
|
public List<BmMessage> selectBmMessageListFromCache(BmMessage bmMessage);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增【请填写功能名称】
|
* 新增消息
|
||||||
*
|
*
|
||||||
* @param bmMessage 【请填写功能名称】
|
* @param bmMessage 消息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertBmMessage(BmMessage bmMessage);
|
public int insertBmMessage(BmMessage bmMessage);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改【请填写功能名称】
|
* 修改消息
|
||||||
*
|
*
|
||||||
* @param bmMessage 【请填写功能名称】
|
* @param bmMessage 消息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateBmMessage(BmMessage bmMessage);
|
public int updateBmMessage(BmMessage bmMessage);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除【请填写功能名称】
|
* 批量删除消息
|
||||||
*
|
*
|
||||||
* @param ids 需要删除的【请填写功能名称】主键集合
|
* @param ids 需要删除的消息主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteBmMessageByIds(Long[] ids);
|
public int deleteBmMessageByIds(Long[] ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除【请填写功能名称】信息
|
* 删除消息信息
|
||||||
*
|
*
|
||||||
* @param id 【请填写功能名称】主键
|
* @param id 消息主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteBmMessageById(Long id);
|
public int deleteBmMessageById(Long id);
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,10 @@ package com.bonus.material.basic.service.impl;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
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.constant.CacheConstants;
|
|
||||||
import com.bonus.common.core.exception.ServiceException;
|
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.DateUtils;
|
||||||
import com.bonus.common.core.utils.StringUtils;
|
|
||||||
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.config.VerificationCodeConfig;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
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.mapper.BmMessageMapper;
|
||||||
import com.bonus.material.basic.domain.BmMessage;
|
import com.bonus.material.basic.domain.BmMessage;
|
||||||
import com.bonus.material.basic.service.IBmMessageService;
|
import com.bonus.material.basic.service.IBmMessageService;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
|
|
@ -33,10 +28,10 @@ public class BmMessageServiceImpl implements IBmMessageService {
|
||||||
private RedisService redisService;
|
private RedisService redisService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询【请填写功能名称】
|
* 查询消息
|
||||||
*
|
*
|
||||||
* @param id 【请填写功能名称】主键
|
* @param id 消息主键
|
||||||
* @return 【请填写功能名称】
|
* @return 消息
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public BmMessage selectBmMessageById(Long id) {
|
public BmMessage selectBmMessageById(Long id) {
|
||||||
|
|
@ -44,10 +39,10 @@ public class BmMessageServiceImpl implements IBmMessageService {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询【请填写功能名称】列表
|
* 查询消息列表
|
||||||
*
|
*
|
||||||
* @param bmMessage 【请填写功能名称】
|
* @param bmMessage 消息
|
||||||
* @return 【请填写功能名称】
|
* @return 消息
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<BmMessage> selectBmMessageList(BmMessage bmMessage) {
|
public List<BmMessage> selectBmMessageList(BmMessage bmMessage) {
|
||||||
|
|
@ -61,9 +56,9 @@ public class BmMessageServiceImpl implements IBmMessageService {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增【请填写功能名称】
|
* 新增消息
|
||||||
*
|
*
|
||||||
* @param bmMessage 【请填写功能名称】
|
* @param bmMessage 消息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -81,9 +76,9 @@ public class BmMessageServiceImpl implements IBmMessageService {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改【请填写功能名称】
|
* 修改消息
|
||||||
*
|
*
|
||||||
* @param bmMessage 【请填写功能名称】
|
* @param bmMessage 消息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -97,9 +92,9 @@ public class BmMessageServiceImpl implements IBmMessageService {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除【请填写功能名称】
|
* 批量删除消息
|
||||||
*
|
*
|
||||||
* @param ids 需要删除的【请填写功能名称】主键
|
* @param ids 需要删除的消息主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -108,9 +103,9 @@ public class BmMessageServiceImpl implements IBmMessageService {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除【请填写功能名称】信息
|
* 删除消息信息
|
||||||
*
|
*
|
||||||
* @param id 【请填写功能名称】主键
|
* @param id 消息主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue