From bc672038e88a24d9f0f7127cd45c656a15c231a2 Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期三, 09 八月 2023 09:10:49 +0800
Subject: [PATCH] MOM系统-8-9

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

diff --git a/sale-server/src/main/resources/mapper/SaleMaterialMapper.xml b/sale-server/src/main/resources/mapper/SaleMaterialMapper.xml
new file mode 100644
index 0000000..a53fc17
--- /dev/null
+++ b/sale-server/src/main/resources/mapper/SaleMaterialMapper.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!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
+        from mom_ocean.sale_material
+        where state=1
+        <if test="id!=null">
+            and sale_id=#{id}
+        </if>
+    </select>
+</mapper>

--
Gitblit v1.9.3