图片轮巡

dev
郭承 9 months ago
parent bb19b442ab
commit 27278845b9

@ -16,4 +16,7 @@ public class PageVo {
@Min(value = 1, message = "分页大小最小为1")
@ApiModelProperty(value = "分页大小", required = true, example = "1")
private int pagesize;
@ApiModelProperty(value = "通道编号", example = "123455")
private Integer channelid;
}

@ -2,6 +2,7 @@ package com.shxy.xymanager_dao.dao;
import com.shxy.xymanager_common.entity.TerminalChannelMapper;
import com.shxy.xymanager_common.entity.TerminalChannelMapperExample;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
@ -15,7 +16,7 @@ public interface TerminalChannelMapperDao {
List<TerminalChannelMapper> selectAll();
List<TerminalChannelMapper> selectAllByPhotoTime(@Param("status") Integer status,@Param("list")List termlist);
List<TerminalChannelMapper> selectAllByPhotoTime(@Param("status") Integer status, @Param("list")List termlist , @Param("channelid") Integer channelid);

@ -297,6 +297,9 @@
a.id = #{item}
</foreach>
</if>
<if test="channelid != null and channelid &gt; 0">
and b.channel_id = #{channelid}
</if>
</select>
<select id="selectTermAndMapByTowerId" resultMap="BaseResultMap">

@ -765,7 +765,7 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
int pageindex = vo.getPageindex();
int pagesize = vo.getPagesize();
PageUtils.SetPage(pageindex, pagesize);
List<TerminalChannelMapper> list = terminalChannelMapperDao.selectAllByPhotoTime(CommonStatus.EFFECTIVE.value(), termpList);
List<TerminalChannelMapper> list = terminalChannelMapperDao.selectAllByPhotoTime(CommonStatus.EFFECTIVE.value(), termpList , vo.getChannelid());
ArrayList<BigInteger> photolist = new ArrayList<>();
List<TerminalPhotosModel.PhotosBean> beans = new ArrayList<>();

Loading…
Cancel
Save