|
@@ -48,7 +48,8 @@
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<sql id="items">
|
|
<sql id="items">
|
|
- id, bid, gid, num, price, total_price as totalPrice, ctime, is_refund as isRefund, refundid, refund_time as refundTime
|
|
|
|
|
|
+ id, bid, gid, num, price, total_price as totalPrice, ctime, is_refund as isRefund,
|
|
|
|
+ refundid, refund_time as refundTime
|
|
</sql>
|
|
</sql>
|
|
<select id="queryItems" resultType="com.zskk.shop.dao.entry.BuyOrderItem">
|
|
<select id="queryItems" resultType="com.zskk.shop.dao.entry.BuyOrderItem">
|
|
select <include refid="items"></include>
|
|
select <include refid="items"></include>
|
|
@@ -106,4 +107,29 @@
|
|
and bo.ptime <![CDATA[<=]]> #{etime}
|
|
and bo.ptime <![CDATA[<=]]> #{etime}
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+ <select id="queryRefundItems" resultType="com.zskk.shop.dao.entry.BuyOrderItem">
|
|
|
|
+ select <include refid="items"></include>
|
|
|
|
+ from buy_order_item
|
|
|
|
+ where is_refund=1
|
|
|
|
+ <if test="stime != null">
|
|
|
|
+ and refund_time <![CDATA[>=]]> #{stime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="etime != null">
|
|
|
|
+ and refund_time <![CDATA[<=]]> #{etime}
|
|
|
|
+ </if>
|
|
|
|
+ order by refund_time desc
|
|
|
|
+ limit #{start},#{pageSize}
|
|
|
|
+ </select>
|
|
|
|
+ <select id="queryRefundItemCount" resultType="java.lang.Integer">
|
|
|
|
+ select count(id) as totalCount
|
|
|
|
+ from buy_order_item
|
|
|
|
+ where is_refund=1
|
|
|
|
+ <if test="stime != null">
|
|
|
|
+ and refund_time <![CDATA[>=]]> #{stime}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="etime != null">
|
|
|
|
+ and refund_time <![CDATA[<=]]> #{etime}
|
|
|
|
+ </if>
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|