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); }