订单业务模块

dev2
Aaaaaaaa 2024-08-27 20:54:00 +08:00
parent 8ba0adb3ff
commit 7eca52eb70
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ public interface OrderShowMapper {
/**
*
* (ordersNum ordersState startdate enddate)
* (productName ordersNum ordersState startdate enddate)
* @param req
* @return
*/

View File

@ -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 &gt;=#{startDate} </if>