zhanghl
2025-05-20 184e9d1d4ce1c33a47e5cc66478b10539a2cc4e7
aps-modules/aps-core/src/main/java/com/aps/core/mapper/ApsPlanCycleMapper.java
@@ -18,4 +18,16 @@
    @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);
}