mapper缺少SQL增加

This commit is contained in:
liuzhaotian
2025-02-07 17:43:54 +08:00
parent e1b87d6e08
commit e69931e8d8
2 changed files with 19 additions and 0 deletions
@@ -74,4 +74,5 @@ public interface PlanItemMapper extends BaseMapperX<PlanItemDO> {
.select(PlanItemDO::getPlanId));
}
List<Long> selectOrderPlateList(@Param("orderIds") List<Long> orderIds,@Param("organId") Long organId);
}
@@ -399,4 +399,22 @@
</select>
<select id="selectOrderPlateList" resultType="java.lang.Long">
select distinct
order_id
from order_plan_item
where organ_id = #{organId}
and order_id in
<foreach collection="orderIds" item="orderIds" open="(" close=")" separator=",">
#{orderIds}
</foreach>
</select>
</mapper>