From 7eb4c98f4d96bebf28685d801e7b978d6c3d251e Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 24 七月 2025 22:23:40 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml index d26ad2d..1ea6f47 100644 --- a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml @@ -266,6 +266,15 @@ where id = #{id} and del_flag=0 </select> + <select id="selectPatArchiveByPatnos" resultMap="PatArchiveResult"> + SELECT id, patientno + FROM pat_archive + WHERE patientno IN + <foreach item="patno" collection="patnos" open="(" separator="," close=")"> + #{patno} + </foreach> + </select> + <insert id="insertPatArchiveSingle" parameterType="com.smartor.domain.PatArchive" useGeneratedKeys="true" keyProperty="id"> insert into pat_archive @@ -369,7 +378,7 @@ </trim> </insert> - <insert id="insertPatArchive"> + <insert id="insertPatArchive" useGeneratedKeys="true" keyProperty="id"> insert into pat_archive(name,viptype,sex,idcardno,birthdate,place_of_residence,age,age2,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,age_unit2,notrequired_flag,notrequiredreason,care_facilities,case_path, -- Gitblit v1.9.3