| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.PatArchiveMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.PatArchive" id="PatArchiveResult"> |
| | | <resultMap type="com.ruoyi.common.core.domain.entity.PatArchive" id="PatArchiveResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="patientno" column="patientno"/> |
| | | <result property="sourcefrom" column="sourcefrom"/> |
| | |
| | | from pat_archive |
| | | </sql> |
| | | |
| | | <select id="selectPatArchiveList" parameterType="com.smartor.domain.PatArchive" resultMap="PatArchiveResult"> |
| | | <select id="selectPatArchiveList" parameterType="com.ruoyi.common.core.domain.entity.PatArchive" resultMap="PatArchiveResult"> |
| | | <include refid="selectPatArchiveVo"/> |
| | | where 1=1 |
| | | and del_flag = 0 |
| | |
| | | </foreach> |
| | | </select> |
| | | |
| | | <insert id="insertPatArchiveSingle" parameterType="com.smartor.domain.PatArchive" useGeneratedKeys="true" |
| | | <insert id="insertPatArchiveSingle" parameterType="com.ruoyi.common.core.domain.entity.PatArchive" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into pat_archive |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <update id="updatePatArchive" parameterType="com.smartor.domain.PatArchive"> |
| | | <update id="updatePatArchive" parameterType="com.ruoyi.common.core.domain.entity.PatArchive"> |
| | | update pat_archive |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="name != null">name = #{name},</if> |