You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<?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.docus.bgts.mapper.AfCollectTaskMapper">
|
|
|
|
|
|
|
|
|
|
<select id="listJZHByDate" resultType="string">
|
|
|
|
|
select jzh
|
|
|
|
|
from docus_medicalrecord.t_basic a
|
|
|
|
|
where
|
|
|
|
|
a.create_time >=#{date1}
|
|
|
|
|
and a.create_time <=#{date2}
|
|
|
|
|
and a.jzh is not null
|
|
|
|
|
and a.is_archive=0
|
|
|
|
|
and a.dis_dept in ('1211','1252')
|
|
|
|
|
and jzh not in
|
|
|
|
|
(select C3 from af_collect_task where sysflag=22 and state=3)
|
|
|
|
|
order by create_time asc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="getpatientIdByEmpId" resultType="string">
|
|
|
|
|
select patient_id
|
|
|
|
|
from docus_medicalrecord.t_basic
|
|
|
|
|
where jzh=#{jzh}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="getAssortIdByAssortId" resultType="string">
|
|
|
|
|
select assort_id from zd_assort where assort_id=#{assortId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="getAssortIdByAssortName" resultType="string">
|
|
|
|
|
select assort_id from zd_assort where assort_name=#{assortName}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertZdAssort">
|
|
|
|
|
insert into zd_assort(assort_id,assort_name,effective) values(#{zdAssort.assortId},#{zdAssort.assortName},#{zdAssort.effective})
|
|
|
|
|
</insert>
|
|
|
|
|
</mapper>
|