2024-09-16 注册页申请流程

This commit is contained in:
zhp
2024-09-17 14:25:18 +08:00
parent 17c9ba5cab
commit d5f5355b1e
5 changed files with 8 additions and 8 deletions

View File

@@ -57,7 +57,7 @@ public class ChannelController extends BaseController
*/
@RequiresPermissions("system:channel:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Integer id)
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(channelService.selectChannelById(id));
}

View File

@@ -19,7 +19,7 @@ public interface ChannelMapper extends BaseMapper<Channel>
* @param id 渠道配置主键
* @return 渠道配置
*/
public Channel selectChannelById(Integer id);
public Channel selectChannelById(Long id);
/**
* 查询渠道配置列表

View File

@@ -18,7 +18,7 @@ public interface IChannelService
* @param id 渠道配置主键
* @return 渠道配置
*/
public Channel selectChannelById(Integer id);
public Channel selectChannelById(Long id);
/**
* 查询渠道配置列表
@@ -34,7 +34,7 @@ public interface IChannelService
* @param channel 渠道配置
* @return 结果
*/
public int insertChannel(Channel channel);
public long insertChannel(Channel channel);
/**
* 修改渠道配置

View File

@@ -38,7 +38,7 @@ public class ChannelServiceImpl implements IChannelService
* @return 渠道配置
*/
@Override
public Channel selectChannelById(Integer id)
public Channel selectChannelById(Long id)
{
return channelMapper.selectChannelById(id);
}
@@ -63,14 +63,14 @@ public class ChannelServiceImpl implements IChannelService
*/
@Override
@Transactional(rollbackFor = Exception.class)
public int insertChannel(Channel channel)
public long insertChannel(Channel channel)
{
if (StringUtils.isEmpty(channel.getChannelSign())) {
channel.setChannelSign(RandomStringUtils.random(16, true, false));
}
channel.setCreateTime(DateUtils.getNowDate());
channel.setUpdateTime(DateUtils.getNowDate());
int i = channelMapper.insertChannel(channel);
long i = channelMapper.insertChannel(channel);
//新增插入缓存
Channel channelById = channelMapper.selectChannelById(i);
redisService.setCacheObject(CacheConstants.CHANNEL_ID+i,channelById);

View File

@@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="selectChannelById" parameterType="java.lang.Integer" resultMap="ChannelResult">
<select id="selectChannelById" parameterType="java.lang.Long" resultMap="ChannelResult">
<include refid="selectChannelVo"/>
where id = #{id}
</select>