叶松
2023-09-27 95caf74f05712c6556128eca180d555f427e289e
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
42
43
44
45
46
47
48
package com.thhy.secure.modules.biz.regionWarranty.mapper;
 
import com.thhy.secure.modules.biz.regionWarranty.dto.TRegionWarrantyDto;
import com.thhy.secure.modules.biz.regionWarranty.entity.TRegionWarrantyEntity;
import com.thhy.secure.modules.biz.regionWarranty.entity.TRegionWarrantyUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * @Author QiuYuHao
 * @CreateDate 2023-09-26 14:38:26
 * 区域包保mapper
 */
@Mapper
public interface TRegionWarrantyMapper {
 
    void insert(TRegionWarrantyEntity tRegionWarrantyEntity);
 
    /**
     * 添加中间表
     * @param tRegionWarrantyUserEntity
     */
    void insertMiddleTable(TRegionWarrantyUserEntity tRegionWarrantyUserEntity);
    void delete(String id);
 
    /**
     * 删除中间表
     * @param id
     */
    void deleteMiddleTable(String id);
 
    void update(TRegionWarrantyEntity tRegionWarrantyEntity);
 
    List<TRegionWarrantyEntity> findAll(TRegionWarrantyDto tRegionWarrantyDto);
    TRegionWarrantyEntity findEntity(String id);
 
    /**
     * 查询中间表
     * @param regionWarrantyId
     * @param userType
     * @return
     */
    List<TRegionWarrantyUserEntity> findMiddleTable(@Param("regionWarrantyId") String regionWarrantyId,
                                                    @Param("userType") Integer userType);
 
}