zjh
2025-04-24 672ce84d5ce6545a0e81709ea736c69cbbef8c1a
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
package com.ltkj.hosp.mapper;
 
import java.util.List;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ltkj.hosp.domain.TjAdvice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
 
/**
 * adviceMapper接口
 *
 * @author ltkj
 * @date 2022-11-24
 */
 
@Mapper
public interface TjAdviceMapper extends BaseMapper<TjAdvice> {
    /**
     * 查询advice
     *
     * @param id advice主键
     * @return advice
     */
    public TjAdvice selectTjAdviceById(Long id);
 
    /**
     * 查询advice列表
     *
     * @param tjAdvice advice
     * @return advice集合
     */
    public List<TjAdvice> selectTjAdviceList(TjAdvice tjAdvice);
 
    /**
     * 新增advice
     *
     * @param tjAdvice advice
     * @return 结果
     */
    public int insertTjAdvice(TjAdvice tjAdvice);
 
    /**
     * 修改advice
     *
     * @param tjAdvice advice
     * @return 结果
     */
    public int updateTjAdvice(TjAdvice tjAdvice);
 
    /**
     * 删除advice
     *
     * @param id advice主键
     * @return 结果
     */
    public int deleteTjAdviceById(Long id);
 
    /**
     * 批量删除advice
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTjAdviceByIds(Long[] ids);
 
 
 
    @Select({"<script>", "select GROUP_CONCAT(a.title  Separator ';') from tj_advice a where a.id in",
            "<foreach collection='aList' item='id' open='(' separator=',' close=')'>",
            "#{id}",
            "</foreach>",
            "</script>" })
    public String getAdviceStringByIdss(@Param("aList") String[] aList);
 
 
 
    @Select({"<script>", "select * from tj_advice a where a.id in",
            "<foreach collection='aList' item='id' open='(' separator=',' close=')'>",
            "#{id}",
            "</foreach>",
            "</script>" })
    List<TjAdvice> getAdviceStringByIds(@Param("aList") String[] aList);
 
    List<TjAdvice> selectList(@Param("proName") String proName,@Param("deptId") String deptId,@Param("page") int i,@Param("pageSize") Integer pageSize
            ,@Param("bt")String bt,@Param("nr")String nr);
    Integer selectListCount(@Param("proName") String proName,@Param("deptId") String deptId
            ,@Param("bt")String bt,@Param("nr")String nr);
}