From 5c3dd2ee1a6f9525f6310872e8f0f130bf2df172 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 15 五月 2025 11:08:48 +0800
Subject: [PATCH] 将合片工序分为stepA和stepB,修改之前的合片工序相关判断
---
north-glass-erp/src/main/resources/mapper/sd/BasicDataMapper.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/src/main/resources/mapper/sd/BasicDataMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/BasicDataMapper.xml
new file mode 100644
index 0000000..1764398
--- /dev/null
+++ b/north-glass-erp/src/main/resources/mapper/sd/BasicDataMapper.xml
@@ -0,0 +1,44 @@
+<?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.example.erp.mapper.sd.BasicDateMapper">
+ <select id="getOrderBasicData">
+ select
+ *
+ from
+ basic_data as a
+ where a.basic_type=#{type}
+ </select>
+ <select id="getOrderBasicDataByTypeAndChildType">
+ select
+ *
+ from
+ basic_data as a
+ where a.basic_type=#{type} and a.basic_category = #{childType}
+ </select>
+
+ <select id="getOrderBasicDataType">
+ select
+ a.basic_category
+ from
+ basic_data as a
+ where a.basic_type=#{type}
+ group by a.basic_category
+
+ </select>
+
+ <select id="getBasicData">
+ select * from basic_data
+ order by id desc
+ </select>
+
+ <select id="getBasicDataFirstType">
+ select * from basic_data
+ group by basic_type
+ </select>
+ <select id="getBasicDataLastType">
+ select * from basic_data
+ group by basic_category
+ </select>
+</mapper>
\ No newline at end of file
--
Gitblit v1.8.0