@@ -525,6 +525,9 @@
<if test="checkVO!=null and checkVO.businessCate!=null and checkVO.businessCate!='' ">
and dd.NAME = #{checkVO.businessCate}
</if>
+ <if test="checkVO!=null and checkVO.orderId != null">
+ AND (SELECT COUNT(major.id) FROM major WHERE major.id = t.majorId AND major.order_id = #{checkVO.orderId}) > 0
+ </if>
</where>
</sql>