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.server.collection.mapper.TBasicMapper">
|
|
|
|
<insert id="insert">
|
|
|
|
INSERT INTO `docus_medicalrecord`.`t_basic`
|
|
|
|
(`patient_id`, `admiss_times`, `inpatient_no`,`name`, `admiss_date`, `admiss_dept_name`, `dis_date`, `dis_dept_name`,`attending_name`,`jzh`)
|
|
|
|
VALUES
|
|
|
|
(#{tBasic.patientId},#{tBasic.admissTimes},#{tBasic.inpatientNo},#{tBasic.name},
|
|
|
|
#{tBasic.admissDate},#{tBasic.admissDeptName},#{tBasic.disDate},#{tBasic.disDeptName},#{tBasic.attendingName},#{tBasic.jzh})
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<select id="selectOne" resultType="java.lang.Integer">
|
|
|
|
select count(patient_id) from t_basic where jzh=#{jzh}
|
|
|
|
</select>
|
|
|
|
</mapper>
|