郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
package com.gkhy.safePlatform.safeCheck.repository;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gkhy.safePlatform.safeCheck.entity.SafeCheckRegion;
import com.gkhy.safePlatform.safeCheck.model.dto.req.SafeCheckRegionReqDTO;
import org.springframework.stereotype.Repository;
 
@Repository
public interface SafeCheckRegionRepository extends BaseMapper<SafeCheckRegion> {
 
    /**
     * @description 通过巡检区域id、是否删除标志查询巡检区域
     */
    SafeCheckRegion getOneRegion(Long id,int status);
 
    /**
     * @description 通过巡检区域id,将该巡检区域删除标志转为已删除、修改人、修改时间
     */
    int deleteRegionById(SafeCheckRegion region,int status);
 
    /**
     * @description 根据巡检区域name,是否删除标志查询是否存在数据
     */
    SafeCheckRegion getRegionByName(String regionName, int status);
 
    /**
     * @description 根据巡检区域id、是否删除标志更新数据
     */
    int updateRegionById(SafeCheckRegion newRegion, int status);
}