|
@ -102,15 +102,15 @@ |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
<select id="findLogistics" parameterType="java.lang.Object" resultType="com.shop.cereshop.commons.domain.logistics.CereOrderLogistics"> |
|
|
<select id="findLogistics" parameterType="java.lang.Object" resultType="com.shop.cereshop.commons.domain.logistics.CereOrderLogistics"> |
|
|
SELECT * FROM cere_order_logistics where shop_id=#{shopId} |
|
|
|
|
|
|
|
|
SELECT b.* FROM (SELECT * FROM cere_platform_shop where shop_id=#{shopId}) a INNER JOIN cere_order_logistics b ON a.business_id = b.shop_id |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="findLogisticsList" parameterType="java.util.List" resultType="com.shop.cereshop.commons.domain.logistics.CereOrderLogistics"> |
|
|
<select id="findLogisticsList" parameterType="java.util.List" resultType="com.shop.cereshop.commons.domain.logistics.CereOrderLogistics"> |
|
|
SELECT * FROM cere_order_logistics where |
|
|
|
|
|
|
|
|
SELECT b.* FROM (SELECT * FROM cere_platform_shop where |
|
|
shop_id in ( <foreach collection="shopIdList" item="shopId" index="index" separator=","> |
|
|
shop_id in ( <foreach collection="shopIdList" item="shopId" index="index" separator=","> |
|
|
#{shopId} |
|
|
#{shopId} |
|
|
</foreach> |
|
|
</foreach> |
|
|
) |
|
|
|
|
|
|
|
|
)) a INNER JOIN cere_order_logistics b ON a.business_id = b.shop_id |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="findCharges" parameterType="java.lang.Object" resultType="com.shop.cereshop.commons.domain.logistics.CereLogisticsCharge"> |
|
|
<select id="findCharges" parameterType="java.lang.Object" resultType="com.shop.cereshop.commons.domain.logistics.CereLogisticsCharge"> |
|
|