order list finish
This commit is contained in:
@@ -17,9 +17,9 @@ spring:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://59.110.212.44:3306/e_book_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
||||
url: jdbc:mysql://127.0.0.1:3306/e_book_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
||||
username: root
|
||||
password: HSXY1234hsxy
|
||||
password: password
|
||||
initial-size: 10
|
||||
max-active: 100
|
||||
min-idle: 10
|
||||
|
||||
@@ -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