Prechádzať zdrojové kódy

20230724_sun新增大屏接口

15143018065 1 rok pred
rodič
commit
5673628632

+ 2 - 2
ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/WlfwXzqhMapper.xml

@@ -64,12 +64,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
 
     <select id="selectYljg" parameterType="String" resultType="java.util.Map">
     <select id="selectYljg" parameterType="String" resultType="java.util.Map">
         -- 养老机构单查
         -- 养老机构单查
-        select * from yljg_jcxx where id = #{id}
+        select *, (select jgjs from yljg_jgjs where jg_id = #{id} limit 1) as jgjs from yljg_jcxx where id = #{id}
     </select>
     </select>
 
 
     <select id="selectYljgsq" parameterType="String" resultType="java.util.Map">
     <select id="selectYljgsq" parameterType="String" resultType="java.util.Map">
         -- 社区养老机构单查
         -- 社区养老机构单查
-        select * from yljgsq_jcxx where id = #{id}
+        select *, (select jgjs from yljg_jgjs where jg_id = #{id} limit 1) as jgjs from yljgsq_jcxx where id = #{id}
     </select>
     </select>
 
 
     <select id="selectLr" parameterType="WlfwXzqh" resultType="java.util.Map">
     <select id="selectLr" parameterType="WlfwXzqh" resultType="java.util.Map">