|
@@ -32,6 +32,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="qrs" column="qrs" />
|
|
|
<result property="jlst" column="jlst" />
|
|
|
<result property="zcd" column="zcd" />
|
|
|
+ <result property="wlfws" column="wlfws" />
|
|
|
+ <result property="yljg" column="yljg" />
|
|
|
+ <result property="znsb" column="znsb" />
|
|
|
+ <result property="sqyljg" column="sqyljg" />
|
|
|
+ <result property="jklx" column="jklx" />
|
|
|
<result property="createTimeStr" column="create_time_str" />
|
|
|
<result property="createUserId" column="create_user_id" />
|
|
|
<result property="createBy" column="create_by" />
|
|
@@ -57,6 +62,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
(select id, 'sqyljg' as lb, fxlb as fxlb, jgmc as mc, lat, lng from yljgsq_jcxx where szxzqh like concat(#{code}, '%') and sczt = '01')
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectYljg" parameterType="String" resultType="java.util.Map">
|
|
|
+ -- 养老机构单查
|
|
|
+ select * from yljg_jcxx where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectYljgsq" parameterType="String" resultType="java.util.Map">
|
|
|
+ -- 社区养老机构单查
|
|
|
+ select * from yljgsq_jcxx where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectLr" parameterType="WlfwXzqh" resultType="java.util.Map">
|
|
|
-- 老人
|
|
|
select id, xm, lat, lng, 'jg' as lb from v_yljg_kh_jg where szxzqh like concat(#{code}, '%') and sczt = '01'
|
|
@@ -64,21 +79,41 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select id, xm, lat, lng, 'sqjg' as lb from v_yljg_kh_sqjg where szxzqh like concat(#{code}, '%') and sczt = '01'
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectLrdc" parameterType="String" resultType="java.util.Map">
|
|
|
+ -- 老人单查
|
|
|
+ select * from yljg_kh_jbxx where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectFws" parameterType="WlfwXzqh" resultType="java.util.Map">
|
|
|
-- 为老服务商
|
|
|
select id, jgxz as lb, jgfl as fxlb, jgmc as mc, lat, lng from wlfw_jg where xzqh like concat(#{code}, '%')
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectFwsdc" parameterType="String" resultType="java.util.Map">
|
|
|
+ -- 为老服务商单查
|
|
|
+ select * from wlfw_jg where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectSst" parameterType="WlfwXzqh" resultType="java.util.Map">
|
|
|
-- 摄像头
|
|
|
select id, lat, lng, sstbh, sstwzms, cj, spjrdz, is_yckz, zt from wlfw_sst where create_area_code like concat(#{code}, '%')
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectSstdc" parameterType="String" resultType="java.util.Map">
|
|
|
+ -- 摄像头单查
|
|
|
+ select * from wlfw_sst where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectZnsb" parameterType="WlfwXzqh" resultType="java.util.Map">
|
|
|
-- 智能设备
|
|
|
select wlfw_jkyj.id, sblb as lb, sbmc as mc, sccj as sccj, yljg_jcxx.lat, yljg_jcxx.lng from wlfw_jkyj left join yljg_jcxx on yljg_jcxx.id = wlfw_jkyj.jg_id where wlfw_jkyj.create_area_code like concat(#{code}, '%')
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectZnsbdc" parameterType="String" resultType="java.util.Map">
|
|
|
+ -- 智能设备单查
|
|
|
+ select * from wlfw_jkyj where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectSqxq" parameterType="WlfwXzqh" resultMap="WlfwXzqhResult">
|
|
|
-- 社区
|
|
|
select * from wlfw_xzqh where code in (select code from sys_dept_jl where find_in_set(#{code}, ancestors) and level = 5) and lat is not null and lng is not null
|