2024-09-16 注册页申请流程
parent
17c9ba5cab
commit
d5f5355b1e
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ public interface ChannelMapper extends BaseMapper<Channel>
|
|||
* @param id 渠道配置主键
|
||||
* @return 渠道配置
|
||||
*/
|
||||
public Channel selectChannelById(Integer id);
|
||||
public Channel selectChannelById(Long id);
|
||||
|
||||
/**
|
||||
* 查询渠道配置列表
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
/**
|
||||
* 修改渠道配置
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue