From e8a75a44bdc130e8b162351c3c94c01f3d8ada5e Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 10 八月 2023 17:58:00 +0800
Subject: [PATCH] 入库+发货

---
 sale-server/src/main/resources/mapper/SaleMaterialMapper.xml |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/sale-server/src/main/resources/mapper/SaleMaterialMapper.xml b/sale-server/src/main/resources/mapper/SaleMaterialMapper.xml
index a53fc17..a83f25e 100644
--- a/sale-server/src/main/resources/mapper/SaleMaterialMapper.xml
+++ b/sale-server/src/main/resources/mapper/SaleMaterialMapper.xml
@@ -2,11 +2,18 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.yuanchu.mom.mapper.SaleMaterialMapper">
     <select id="selectSaleDatil" resultType="com.yuanchu.mom.pojo.SaleMaterial">
-        select id, name, specifications, unit, number, price, state, create_time, update_time, sale_id
+        select id,
+               name,
+               specifications,
+               unit,
+               number,
+               price,
+               state,
+               create_time,
+               update_time,
+               sale_id
         from mom_ocean.sale_material
-        where state=1
-        <if test="id!=null">
-            and sale_id=#{id}
-        </if>
+        where state = 1
+          and sale_id = #{id}
     </select>
 </mapper>

--
Gitblit v1.9.3