das接口修改
This commit is contained in:
parent
64df0d71b0
commit
99dd570624
@ -3,6 +3,7 @@ package com.das.modules.node.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.das.modules.node.domain.dto.SysCommunicationLinkDto;
|
||||
import com.das.modules.node.domain.vo.SysCommunicationLinkVo;
|
||||
import com.das.modules.node.entity.SysCommunicationLink;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
@ -10,6 +11,6 @@ import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface SysCommunicationLinkMapper extends BaseMapper<SysCommunicationLink> {
|
||||
IPage<SysCommunicationLinkVo> querySysCommunicationLinkList(IPage<SysCommunicationLinkVo> page, @Param("id")Long id);
|
||||
IPage<SysCommunicationLinkVo> querySysCommunicationLinkList(IPage<SysCommunicationLinkVo> page, @Param("info") SysCommunicationLinkDto sysCommunicationLinkDto);
|
||||
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ public class SysNodeServiceImpl implements SysNodeService {
|
||||
PageQuery pageQuery = new PageQuery();
|
||||
pageQuery.setPageNum(sysCommunicationLinkDto.getPageNum());
|
||||
pageQuery.setPageSize(sysCommunicationLinkDto.getPageSize());
|
||||
IPage<SysCommunicationLinkVo> iPage = sysCommunicationLinkMapper.querySysCommunicationLinkList(pageQuery.build(), sysCommunicationLinkDto.getNodeId());
|
||||
IPage<SysCommunicationLinkVo> iPage = sysCommunicationLinkMapper.querySysCommunicationLinkList(pageQuery.build(), sysCommunicationLinkDto);
|
||||
return PageDataInfo.build(iPage.getRecords(), iPage.getTotal());
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,14 @@
|
||||
|
||||
<select id="querySysCommunicationLinkList" resultMap="SysCommunicationLinkMap">
|
||||
select sc.*, sn.node_name as nodeName from sys_communicationlink sc left join sys_node sn on sc.node_id = sn.id
|
||||
where sc.node_id = #{id}
|
||||
<where>
|
||||
<if test="info.id != null and info.id != ''">
|
||||
and sc.node_id = #{info.id}
|
||||
</if>
|
||||
<if test="info.linkName != null and info.linkName != ''">
|
||||
and sc.link_name like concat('%',#{info.linkName},'%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user