From affabbd21802dacbf943692912a83e63106670e4 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期二, 22 八月 2023 11:47:55 +0800
Subject: [PATCH] 改动

---
 inspection-server/src/main/resources/mapper/PlanMapper.xml |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/inspection-server/src/main/resources/mapper/PlanMapper.xml b/inspection-server/src/main/resources/mapper/PlanMapper.xml
index 16f3557..bf79c9d 100644
--- a/inspection-server/src/main/resources/mapper/PlanMapper.xml
+++ b/inspection-server/src/main/resources/mapper/PlanMapper.xml
@@ -1,19 +1,17 @@
 <?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.limslaboratory.mapper.PlanMapper">
-    <resultMap id="selectAllPlanMap" type="map" >
+    <resultMap id="selectAllPlanMap" type="map">
         <id property="code" column="code"/>
+        <result property="id" column="id"/>
+        <result property="samplename" column="samplename"/>
         <result property="inspectionStatus" column="inspectionStatus"/>
         <result property="startTime" column="startTime"/>
         <result property="endTime" column="endTime"/>
-        <collection property="father" resultMap="selectAllPlanMapTowMap" javaType="List"/>
-    </resultMap>
-    <resultMap id="selectAllPlanMapTowMap" type="map">
-        <id property="samplename" column="samplename"/>
         <collection property="chldren" resultMap="selectAllPlanMapTowsMap" javaType="List"/>
     </resultMap>
     <resultMap id="selectAllPlanMapTowsMap" type="map">
-        <id property="id" column="id"/>
+        <id property="pid" column="pid"/>
         <result property="name" column="name"/>
         <result property="unit" column="unit"/>
         <result property="required" column="required"/>
@@ -24,12 +22,13 @@
     </resultMap>
     <!--鏌ヨ妫�楠岃鍒�-->
     <select id="selectAllPlan" resultMap="selectAllPlanMap">
-        select ip.id,
+        select i.id ,
         i.code,
         inspection_status inspectionStatus,
         DATE_FORMAT(start_time,'%Y-%m-%d') startTime,
         DATE_FORMAT(end_time,'%Y-%m-%d') endTime,
         im.name samplename,
+        ip.id pid,
         ip.name,
         ip.unit,
         required,
@@ -41,7 +40,7 @@
         left join lims_laboratory.inspection_material im on ip.inspection_material_id = im.id
         left join lims_laboratory.inspection i on im.inspection_id = i.id
         left join lims_laboratory.user u on ip.user_id = u.id
-        left join  lims_laboratory.instrument isu on ip.instrument_id = isu.id
+        left join lims_laboratory.instrument isu on ip.instrument_id = isu.id
         <where>
             <if test="code != null and code != null">
                 and i.code like concat('%',#{code},'%')

--
Gitblit v1.9.3