Zhu Zhonghua
2025-05-22 d337c8e2e21df8ff7d2ecae493fa7a65627fedea
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);
}