From 67bcaeb7e16e5701a8455b34e2a9f3083ae78016 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期五, 07 二月 2025 09:56:34 +0800
Subject: [PATCH] 进度报表动态求和,优化流程卡半径显示

---
 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