zhanghl
2025-05-16 a5c145b5b9afb665d3130bbcf8659ee1a4b15ebf
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
package com.aps.core.mapper;
 
import com.aps.core.domain.ApsPlanCycle;
import com.aps.core.domain.ApsPlanManagement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
 
import java.util.List;
 
/**
 * 计划周期管理Mapper接口
 * 
 * @author ruoyi
 * @date 2025-05-13
 */
public interface ApsPlanCycleMapper extends BaseMapper<ApsPlanCycle>
{
 
    @Select("select * from aps_plan_cycle where plan_id = #{planId}")
    ApsPlanCycle selectByPlanId(Long planId);
 
    @Select("""
        <script>
            select * from aps_plan_cycle where 1 = 0
            <if test="!planIds.isEmpty()">or plan_id in
                <foreach collection="planIds" item="item" open="(" separator="," close=")">
                    #{item}
                </foreach>                                 
            </if> 
        </script>
    """)
    List<ApsPlanCycle> selectByPlanIds(List<Long> planIds);
}