订单业务模块

dev2
Aaaaaaaa 2024-08-27 20:45:36 +08:00
parent 8892c4f90b
commit 8ba0adb3ff
2 changed files with 10 additions and 0 deletions

View File

@ -16,6 +16,15 @@ import java.util.Date;
@Tag(name = "订单列表请求对象") @Tag(name = "订单列表请求对象")
public class OrdersListReq { public class OrdersListReq {
/**
*
*/
@Schema(
description = "产品名称",
type = "String"
)
private String productName;
/** /**
* *
*/ */

View File

@ -44,6 +44,7 @@
LEFT JOIN `product` ON `orders`.orders_product = `product`.product_id LEFT JOIN `product` ON `orders`.orders_product = `product`.product_id
LEFT JOIN `sys_user` ON `orders`.orders_user = `sys_user`.user_id LEFT JOIN `sys_user` ON `orders`.orders_user = `sys_user`.user_id
<where> <where>
<if test="productName != null and productName != ''">AND product_name = #{productName}</if>
<if test=" ordersNum != null and ordersNum !='' "> AND orders_num = #{ordersNum} </if> <if test=" ordersNum != null and ordersNum !='' "> AND orders_num = #{ordersNum} </if>
<if test=" ordersState != null "> AND orders_state = #{ordersState} </if> <if test=" ordersState != null "> AND orders_state = #{ordersState} </if>
<if test="startDate!=null and startDate!=''"> AND orders_launchdate &gt;=#{startDate} </if> <if test="startDate!=null and startDate!=''"> AND orders_launchdate &gt;=#{startDate} </if>