ChannelController
@PreAuthorize("hasPermission('tienchin:channel:list')")
TableDataInfo list(ChannelVO channelVO) {
List list = iChannelService.selectChannelList(channelVO);
return getDataTable(list);
IChannelService
List selectChannelList(ChannelVO channelVO);
ChannelServiceImpl
public List selectChannelList(ChannelVO channelVO) {
return channelMapper.selectChannelList(channelVO);
ChannelMapper
List selectChannelList(ChannelVO channelVO);
ChannelMapper.xml
<if test="channelName != null">
AND channel_name LIKE CONCAT('%', #{channelName}, '%')
<if test="status != null">
<if test="params.beginTime != null and params.endTime != null">
AND create_time BETWEEN #{params.beginTime} AND #{params.endTime}