whyclxw
2024-07-23 2271cde3d0392b9a2320a20aadca4b3cb93ae652
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
package com.whyc.mapper;
 
import com.whyc.pojo.BOMFeedback;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
public interface BOMFeedbakMapper extends CustomMapper<BOMFeedback>{
    //获取发送者的反馈个数(排除confirm_status=1)
    int selectSender(Long id);
    //获取接收者的反馈个数
    int selectReceiver(@Param("id") Long id);
 
    //查询发送者反馈不同状态
    List<BOMFeedback> getSenderStatus(@Param("id")Long id, @Param("flags")int[] flags);
 
    //查询接收者反馈不同状态
    List<BOMFeedback> getRecevierStatus(@Param("id")Long id,  @Param("flags")int[] flags);
 
    //当是杨红兰查看时,只有杨红兰的排在最前面
    List<BOMFeedback> getRecevierYHL(@Param("id")Long id, @Param("name")String name, @Param("flags")int[] flags);
 
    List<BOMFeedback> getListPage(BOMFeedback feedback);
 
}