zhangback
20 小时以前 ba87fd72f14c5ed0caf14e9d8ff116d254a8c113
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package com.ruoyi.tms.mapper;
 
import java.util.List;
import com.ruoyi.tms.domain.TmsQuoteItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
 
 
/**
 * 报价项目Mapper接口
 * 
 * @author ruoyi
 * @date 2025-11-26
 */
public interface TmsQuoteItemMapper  extends BaseMapper<TmsQuoteItem>
{
    /**
     * 查询报价项目
     * 
     * @param id 报价项目ID
     * @return 报价项目
     */
    public TmsQuoteItem selectTmsQuoteItemById(Integer id);
 
    /**
     * 查询报价项目 记录数
     *
     * @param tmsQuoteItem 报价项目
     * @return 报价项目集合
     */
    public int selectTmsQuoteItemCount(TmsQuoteItem tmsQuoteItem);
 
    /**
     * 查询报价项目列表
     * 
     * @param tmsQuoteItem 报价项目
     * @return 报价项目集合
     */
    public List<TmsQuoteItem> selectTmsQuoteItemList(TmsQuoteItem tmsQuoteItem);
 
    @Select("select DISTINCT tqi.* from tms_quote_item tqi " +
            "JOIN tms_quote_plan tqp on tqi.quote_plan_id = tqp.id " +
            "where tqi.free = #{free}  and tqp.provider_id = #{providerId} and tqp.provider_type = #{providerType} and plan_type = 1")
    public TmsQuoteItem selectTmsQuoteItemByQuoteId(@Param("free") Integer free,@Param("providerType") Integer providerType,@Param("providerId") Integer providerId);
 
 
    /**
     * 新增报价项目
     * 
     * @param tmsQuoteItem 报价项目
     * @return 结果
     */
    public int insertTmsQuoteItem(TmsQuoteItem tmsQuoteItem);
 
    /**
     * 新增报价项目[批量]
     *
     * @param tmsQuoteItems 报价项目
     * @return 结果
     */
    public int insertTmsQuoteItemBatch(List<TmsQuoteItem> tmsQuoteItems);
 
    /**
     * 修改报价项目
     * 
     * @param tmsQuoteItem 报价项目
     * @return 结果
     */
    public int updateTmsQuoteItem(TmsQuoteItem tmsQuoteItem);
 
    /**
     * 修改报价项目[批量]
     *
     * @param tmsQuoteItems 报价项目
     * @return 结果
     */
    public int updateTmsQuoteItemBatch(List<TmsQuoteItem> tmsQuoteItems);
 
    /**
     * 删除报价项目
     * 
     * @param id 报价项目ID
     * @return 结果
     */
    public int deleteTmsQuoteItemById(Integer id);
 
    /**
     * 批量删除报价项目
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTmsQuoteItemByIds(Integer[] ids);
}