From 2d6a0cdcb1e31510a6f7776abab17cc5cb82fdcb Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 13 九月 2023 17:50:04 +0800
Subject: [PATCH] 修改2.0 9.13
---
standard-server/src/main/resources/mapper/MaterialMapper.xml | 28 ++++++++--------------------
1 files changed, 8 insertions(+), 20 deletions(-)
diff --git a/standard-server/src/main/resources/mapper/MaterialMapper.xml b/standard-server/src/main/resources/mapper/MaterialMapper.xml
index 53e1662..e7fc290 100644
--- a/standard-server/src/main/resources/mapper/MaterialMapper.xml
+++ b/standard-server/src/main/resources/mapper/MaterialMapper.xml
@@ -42,26 +42,6 @@
on sp.standard_id = s.id
</select>
- <select id="selectMcodeId" resultType="com.yuanchu.mom.pojo.Material">
- select id, code
- from mom_ocean.material
- where name = #{name}
- </select>
-
- <select id="selectIdByCoNa" resultType="java.util.Map">
- select m.id '鐗╂枡id',
- st.id '瑙勬牸id',
- st.name '瑙勬牸鍚嶇О',
- sp.name '鍨嬪彿鍚嶇О'
- from mom_ocean.material m,
- mom_ocean.standard st,
- mom_ocean.specifications sp
- where m.id = material_id
- and material_id = standard_id
- and m.name = #{name}
- and code = #{code}
- </select>
-
<!--鏍规嵁鏍囧噯id鏌ヨ鐗╂枡-->
<select id="selFath" resultType="com.yuanchu.mom.pojo.Material">
select *
@@ -72,4 +52,12 @@
where standard.state = 1
and standard.id = #{id})
</select>
+ <!--鏍规嵁鐗╂枡鍚嶇О鏌ヨ鎴愬搧浜у搧缂栧彿-->
+ <select id="selMcode" resultType="java.lang.String">
+ select code
+ from mom_ocean.material
+ where state = 1
+ and type = 1
+ and name = #{name}
+ </select>
</mapper>
--
Gitblit v1.9.3