liujie
2026-07-24 7a201eec2a4284743386cc0c2d03eefa9e7cd1d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.ruoyi.system.mapper;
 
import com.ruoyi.system.domain.SysVisitArea;
import com.ruoyi.system.dto.SysVisitAreaTreeRequest;
import com.ruoyi.system.vo.SysVisitAreaVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * 访问区域数据层
 *
 * @author ruoyi
 */
@Mapper
public interface SysVisitAreaMapper
{
    public List<SysVisitAreaVO> selectAreaTreeList(@Param("query") SysVisitAreaTreeRequest query);
 
    public SysVisitAreaVO selectVoById(Long areaId);
 
    public SysVisitArea selectById(Long areaId);
 
    public SysVisitArea checkAreaNameUnique(@Param("areaName") String areaName, @Param("parentId") Long parentId,
                                            @Param("excludeAreaId") Long excludeAreaId);
 
    public SysVisitArea checkAreaCodeUnique(@Param("areaCode") String areaCode,
                                            @Param("excludeAreaId") Long excludeAreaId);
 
    public int insertArea(SysVisitArea area);
 
    public int updateArea(SysVisitArea area);
 
    public int updateChildrenAncestors(@Param("areaId") Long areaId, @Param("oldAncestors") String oldAncestors,
                                       @Param("newAncestors") String newAncestors);
 
    public int countChildrenByParentIds(@Param("parentIds") List<Long> parentIds);
 
    public int deleteByIds(@Param("areaIds") List<Long> areaIds, @Param("updateBy") String updateBy);
}