订单业务模块
parent
8ba0adb3ff
commit
7eca52eb70
|
@ -13,7 +13,7 @@ public interface OrderShowMapper {
|
|||
|
||||
/**
|
||||
* 查询订单列表
|
||||
* (精确查ordersNum 精确查ordersState 日期范围 startdate enddate)
|
||||
* (模糊查productName 精确查ordersNum 精确查ordersState 日期范围 startdate enddate)
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
<!--com.muyu.common.system.domain.SysUser-->
|
||||
|
||||
<!-- 查询订单(精确查ordersNum 精确查ordersState 日期范围 startdate enddate) -->
|
||||
<!-- 查询订单( 精确查ordersNum 精确查ordersState 日期范围 startdate enddate) -->
|
||||
<!-- 多表联查 -> 产品表外键,用户外键 -->
|
||||
<select id="selectList" resultType="com.muyu.cloud.market.domin.Orders">
|
||||
SELECT orders_id, orders_num, orders_product, orders_user, orders_price, orders_specification, orders_state, orders_launchdate,
|
||||
|
@ -44,7 +44,7 @@
|
|||
LEFT JOIN `product` ON `orders`.orders_product = `product`.product_id
|
||||
LEFT JOIN `sys_user` ON `orders`.orders_user = `sys_user`.user_id
|
||||
<where>
|
||||
<if test="productName != null and productName != ''">AND product_name = #{productName}</if>
|
||||
<if test="productName != null and productName != ''">AND instr( product_name , #{productName})</if>
|
||||
<if test=" ordersNum != null and ordersNum !='' "> AND orders_num = #{ordersNum} </if>
|
||||
<if test=" ordersState != null "> AND orders_state = #{ordersState} </if>
|
||||
<if test="startDate!=null and startDate!=''"> AND orders_launchdate >=#{startDate} </if>
|
||||
|
|
Loading…
Reference in New Issue