order list finish
This commit is contained in:
@@ -70,10 +70,16 @@
|
||||
</select>
|
||||
|
||||
<select id="orderList" resultType="com.peanut.modules.book.entity.BuyOrder"
|
||||
parameterType="com.peanut.modules.book.vo.request.BuyOrderListRequestVo">
|
||||
parameterType="com.peanut.modules.book.vo.request.BuyOrderListRequestVo" resultMap="buyOrderMap">
|
||||
<!--
|
||||
select order_sn, province, city, district, user_phone, address, payment_method, order_status, remark
|
||||
-->
|
||||
select *
|
||||
from buy_order
|
||||
<where>
|
||||
<if test="searchKeyWord != null">
|
||||
order_sn like #{searchKeyWord}
|
||||
</if>
|
||||
<if test="orderStatus != null">
|
||||
and order_status = #{orderStatus}
|
||||
</if>
|
||||
@@ -83,10 +89,6 @@
|
||||
<if test="endTime != null">
|
||||
and create_time <= #{endTime}
|
||||
</if>
|
||||
<if test="searchKeyWord != null">
|
||||
and order_sn like %#{searchKeyWord}%
|
||||
</if>
|
||||
|
||||
</where>
|
||||
limit #{index},#{pageSize}
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user