| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatArchiveImportVo"> |
| | | select id, patientno, pattype, name, sex, idcardno, age, telcode, openid, del_flag, update_by, update_time, create_by, create_time, batch_name, batch_no |
| | | select id, |
| | | patientno, |
| | | pattype, |
| | | name, |
| | | sex, |
| | | idcardno, |
| | | age, |
| | | telcode, |
| | | openid, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | batch_name, |
| | | batch_no |
| | | from pat_archive_import |
| | | </sql> |
| | | |
| | |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPatArchiveImport" parameterType="com.smartor.domain.PatArchiveImport" useGeneratedKeys="true" keyProperty="id"> |
| | | <insert id="insertPatArchiveImport" parameterType="com.smartor.domain.PatArchiveImport" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into pat_archive_import |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="patientno != null">patientno, |
| | |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | |
| | | |
| | | |
| | | </mapper> |