From a7a6a0c332f268010b4da0161cdee80acf9bc4ce Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期一, 22 四月 2024 15:59:57 +0800
Subject: [PATCH] 2024-4-22 资源要求-人员明细-bug修改

---
 cnas-server/src/main/resources/mapper/StructureItemParameterMapper.xml |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/cnas-server/src/main/resources/mapper/StructureItemParameterMapper.xml b/cnas-server/src/main/resources/mapper/StructureItemParameterMapper.xml
index 93e3b8e..9db70b9 100644
--- a/cnas-server/src/main/resources/mapper/StructureItemParameterMapper.xml
+++ b/cnas-server/src/main/resources/mapper/StructureItemParameterMapper.xml
@@ -3,8 +3,6 @@
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.yuanchu.mom.mapper.StructureItemParameterMapper">
-
-
     <select id="selectItemParameterList" resultType="com.yuanchu.mom.pojo.StructureItemParameter">
         select id,
         inspection_item,
@@ -29,11 +27,29 @@
         bsm,
         sample,
         inspection_value_type,
+        dic,
         template_id,
-        son_laboratory
+        son_laboratory,
+        ask,
+        ask_tell
         from structure_item_parameter
         <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
             ${ew.customSqlSegment}
         </if>
     </select>
+
+    <resultMap id="getInsProductions" type="map">
+        <result property="name" column="inspection_item"/>
+        <collection property="children" resultMap="seProInsListByIdmaps" javaType="List"/>
+    </resultMap>
+    <resultMap id="seProInsListByIdmaps" type="map">
+        <id property="id" column="id"/>
+        <result property="name" column="subclass"/>
+    </resultMap>
+    <select id="getInsProduction" resultMap="getInsProductions">
+        select id, inspection_item,
+               case when inspection_item_subclass='' then inspection_item
+            else inspection_item_subclass end  as subclass
+        from structure_item_parameter
+    </select>
 </mapper>

--
Gitblit v1.9.3