From e8a75a44bdc130e8b162351c3c94c01f3d8ada5e Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 10 八月 2023 17:58:00 +0800
Subject: [PATCH] 入库+发货
---
standard-server/src/main/resources/mapper/OrdersMapper.xml | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/standard-server/src/main/resources/mapper/OrdersMapper.xml b/standard-server/src/main/resources/mapper/OrdersMapper.xml
index a691546..ea3942f 100644
--- a/standard-server/src/main/resources/mapper/OrdersMapper.xml
+++ b/standard-server/src/main/resources/mapper/OrdersMapper.xml
@@ -17,16 +17,16 @@
o.state
from mom_ocean.orders o,mom_ocean.material m
<where>
- <if test="orderCode != null">
- and order_code = #{orderCode}
+ <if test="orderCode != null and orderCode!=''">
+ and order_code LIKE CONCAT('%',#{orderCode},'%')
</if>
- <if test="time != null">
+ <if test="time != null and time!=''">
and o.create_time = #{time}
</if>
- <if test="name != null">
- and m.name = #{name}
+ <if test="name != null and name!=''">
+ and m.name LIKE CONCAT('%',#{name},'%')
</if>
- <if test="state != null">
+ <if test="state != null and state!=''">
and o.state = #{state}
</if>
and o.code=m.code
--
Gitblit v1.9.3