| | |
| | | <result property="ageUnit" column="age_unit"/> |
| | | <result property="leavehospitaldistrictname" column="leavehospitaldistrictname"/> |
| | | <result property="leavehospitaldistrictcode" column="leavehospitaldistrictcode"/> |
| | | <result property="careFacilities" column="care_facilities"/> |
| | | <result property="casePath" column="case_path"/> |
| | | <result property="degreeOfEducation" column="degree_of_education"/> |
| | | <result property="maritalStatus" column="marital_status"/> |
| | | <result property="income" column="income"/> |
| | | <result property="medicareType" column="medicare_type"/> |
| | | <result property="carePerson" column="care_person"/> |
| | | <result property="casePersonAge" column="case_person_age"/> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | isupload, |
| | | pattype, |
| | | viptype, |
| | | upload_time |
| | | upload_time, |
| | | care_facilities, |
| | | case_path, |
| | | degree_of_education, |
| | | marital_status, |
| | | income, |
| | | medicare_type, |
| | | care_person, |
| | | case_person_age |
| | | from pat_archive |
| | | </sql> |
| | | |
| | |
| | | <if test="ageUnit != null ">and age_unit = #{ageUnit}</if> |
| | | <if test="notrequiredFlag != null ">and notrequired_flag = #{notrequiredFlag}</if> |
| | | <if test="notrequiredreason != null ">and notrequiredreason = #{notrequiredreason}</if> |
| | | <if test="careFacilities != null ">and care_facilities = #{careFacilities}</if> |
| | | <if test="casePath != null ">and case_path = #{casePath}</if> |
| | | <if test="degreeOfEducation != null ">and degree_of_education = #{degreeOfEducation}</if> |
| | | <if test="maritalStatus != null ">and marital_status = #{maritalStatus}</if> |
| | | <if test="income != null ">and income = #{income}</if> |
| | | <if test="medicareType != null ">and medicare_type = #{medicareType}</if> |
| | | <if test="carePerson != null ">and care_person = #{carePerson}</if> |
| | | <if test="casePersonAge != null ">and case_person_age = #{casePersonAge}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | a.create_time, |
| | | a.update_time, |
| | | a.viptype, |
| | | a.birthdate |
| | | a.birthdate, |
| | | a.care_facilities, |
| | | a.case_path, |
| | | a.degree_of_education, |
| | | a.marital_status, |
| | | a.income, |
| | | a.medicare_type, |
| | | a.care_person, |
| | | a.case_person_age |
| | | from pat_archive a,pat_archivetag b ,base_tag c |
| | | <where> |
| | | a.del_flag=0 and |
| | |
| | | <if test="ageUnit != null">age_unit,</if> |
| | | <if test="notrequiredFlag != null ">notrequired_flag,</if> |
| | | <if test="notrequiredreason != null ">notrequiredreason,</if> |
| | | <if test="careFacilities != null ">care_facilities,</if> |
| | | <if test="casePath != null ">case_path,</if> |
| | | <if test="degreeOfEducation != null ">degree_of_education,</if> |
| | | <if test="maritalStatus != null ">marital_status,</if> |
| | | <if test="income != null ">income,</if> |
| | | <if test="medicareType != null ">medicare_type,</if> |
| | | <if test="carePerson != null ">care_person,</if> |
| | | <if test="casePersonAge != null ">case_person_age,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="patientno != null">#{patientno},</if> |
| | |
| | | <if test="ageUnit != null">#{ageUnit},</if> |
| | | <if test="notrequiredFlag != null ">#{notrequiredFlag},</if> |
| | | <if test="notrequiredreason != null ">#{notrequiredreason},</if> |
| | | <if test="careFacilities != null ">#{careFacilities},</if> |
| | | <if test="casePath != null ">#{casePath},</if> |
| | | <if test="degreeOfEducation != null ">#{degreeOfEducation},</if> |
| | | <if test="maritalStatus != null ">#{maritalStatus},</if> |
| | | <if test="income != null ">#{income},</if> |
| | | <if test="medicareType != null ">#{medicareType},</if> |
| | | <if test="carePerson != null ">#{carePerson},</if> |
| | | <if test="casePersonAge != null ">#{casePersonAge},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <insert id="insertPatArchive"> |
| | | insert into |
| | | pat_archive(name,viptype,sex,idcardno,birthdate,place_of_residence,age,sourcefrom,archivetime,archiveby,telcode,relativetelcode,idcardtype,orgid,openid,dduserid,update_by,update_time |
| | | ,create_by,create_time,isupload,upload_time,pattype,nation,birthplace,native_place,patientno,patid_his,sd_flag,age_unit,notrequired_flag,notrequiredreason) |
| | | ,create_by,create_time,isupload,upload_time,pattype,nation,birthplace,native_place,patientno,patid_his,sd_flag,age_unit,notrequired_flag,notrequiredreason,care_facilities,case_path, |
| | | degree_of_education,marital_status,income,medicare_type,care_person,case_person_age) |
| | | values |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | (#{item.name},#{item.viptype},#{item.sex},#{item.idcardno},#{item.birthdate},#{item.placeOfResidence},#{item.age},#{item.sourcefrom},#{item.archivetime},#{item.archiveby} |
| | | ,#{item.telcode},#{item.archiveby},#{item.idcardtype},#{item.orgid},#{item.openid},#{item.dduserid},#{item.updateBy}, |
| | | #{item.updateTime},#{item.createBy},#{item.createTime},#{item.isupload},#{item.uploadTime},#{item.pattype},#{item.nation},#{item.birthplace},#{item.nativePlace},#{item.patientno},#{item.patidHis},#{item.sdFlag},#{item.ageUnit},#{item.notrequiredFlag},#{item.notrequiredreason} |
| | | #{item.updateTime},#{item.createBy},#{item.createTime},#{item.isupload},#{item.uploadTime},#{item.pattype},#{item.nation},#{item.birthplace},#{item.nativePlace},#{item.patientno}, |
| | | #{item.patidHis},#{item.sdFlag},#{item.ageUnit},#{item.notrequiredFlag},#{item.notrequiredreason} |
| | | ,#{item.careFacilities},#{item.casePath},#{item.degreeOfEducation},#{item.maritalStatus},#{item.income},#{item.medicareType},#{item.carePerson},#{item.casePersonAge}) |
| | | </foreach> |
| | | </insert> |
| | | |
| | |
| | | <if test="ageUnit != null">age_unit = #{ageUnit},</if> |
| | | <if test="notrequiredFlag != null ">notrequired_flag = #{notrequiredFlag},</if> |
| | | <if test="notrequiredreason != null ">notrequiredreason = #{notrequiredreason},</if> |
| | | <if test="careFacilities != null ">care_facilities = #{careFacilities},</if> |
| | | <if test="casePath != null ">case_path = #{casePath},</if> |
| | | <if test="degreeOfEducation != null ">degree_of_education = #{degreeOfEducation},</if> |
| | | <if test="maritalStatus != null ">marital_status = #{maritalStatus},</if> |
| | | <if test="income != null ">income = #{income},</if> |
| | | <if test="medicareType != null ">medicare_type = #{medicareType},</if> |
| | | <if test="carePerson != null ">care_person = #{carePerson},</if> |
| | | <if test="casePersonAge != null ">case_person_age = #{casePersonAge},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |