|
@@ -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 *, (select jgjs from yljg_jgjs where jgid = #{id} limit 1) as jgjs from yljg_jcxx where id = #{id}
|
|
|
|
|
|
+ select *, (select jgjs from yljg_jgjs where jgid = #{id} limit 1) as jgjs, (select count(0) from wlfw_ddpj where jg_id = #{id}) as zpj, (select count(xj < '3') from wlfw_ddpj where jg_id = #{id}) as cp, (select count(xj in ('3', '4')) from wlfw_ddpj where jg_id = #{id}) as zp, (select count(xj > '4') from wlfw_ddpj where jg_id = #{id}) as hp 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 *, (select jgjs from yljg_jgjs where jgid = #{id} limit 1) as jgjs from yljgsq_jcxx where id = #{id}
|
|
|
|
|
|
+ select *, (select jgjs from yljg_jgjs where jgid = #{id} limit 1) as jgjs, (select count(0) from wlfw_ddpj where jg_id = #{id}) as zpj, (select count(xj < '3') from wlfw_ddpj where jg_id = #{id}) as cp, (select count(xj in ('3', '4')) from wlfw_ddpj where jg_id = #{id}) as zp, (select count(xj > '4') from wlfw_ddpj where jg_id = #{id}) as hp 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">
|