|
@@ -569,4 +569,11 @@
|
|
|
<select id="finduserBean" resultType="java.lang.Integer">
|
|
|
select userBeans from cm_order where orderID = #{orderId}
|
|
|
</select>
|
|
|
+ <select id="findSplitCode" resultType="java.lang.Integer">
|
|
|
+ SELECT COUNT(*)
|
|
|
+ FROM product p
|
|
|
+ LEFT JOIN cm_order_product cop ON cop.productid=p.productid
|
|
|
+ WHERE cop.orderId = #{orderId}
|
|
|
+ AND (p.splitCode IS NULL OR p.splitCode = '')
|
|
|
+ </select>
|
|
|
</mapper>
|