| 文件名从 smartor/src/main/resources/mapper/smartor/PatArchiveOutMapper.xml 修改 |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.PatArchiveOutMapper"> |
| | | <mapper namespace="com.ruoyi.patarchive.mapper.PatArchiveOutMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.PatArchiveOut" id="PatArchiveOutResult"> |
| | | <resultMap type="com.ruoyi.patarchive.domain.PatArchiveOut" id="PatArchiveOutResult"> |
| | | <result property="patid" column="patid"/> |
| | | <result property="patientno" column="patientno"/> |
| | | <result property="pattype" column="pattype"/> |
| | |
| | | from pat_archive_out |
| | | </sql> |
| | | |
| | | <select id="selectPatArchiveOutList" parameterType="com.smartor.domain.PatArchiveOut" |
| | | <select id="selectPatArchiveOutList" parameterType="com.ruoyi.patarchive.domain.PatArchiveOut" |
| | | resultMap="PatArchiveOutResult"> |
| | | <include refid="selectPatArchiveOutVo"/> |
| | | where 1=1 |
| | |
| | | where patid = #{patid} |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveCount" parameterType="Long" resultType="com.smartor.domain.PerSonWorkbenchDto"> |
| | | <select id="selectPatArchiveCount" parameterType="Long" resultType="com.ruoyi.patarchive.domain.PerSonWorkbenchDto"> |
| | | select aa.name1 as name, aa.count as count |
| | | from ( |
| | | SELECT "浣忛櫌" as name1, count(1) as count FROM `pat_med_inhosp` |
| | |
| | | |
| | | </select> |
| | | |
| | | <insert id="insertPatArchiveOut" parameterType="com.smartor.domain.PatArchiveOut" useGeneratedKeys="true" |
| | | <insert id="insertPatArchiveOut" parameterType="com.ruoyi.patarchive.domain.PatArchiveOut" useGeneratedKeys="true" |
| | | keyProperty="patid"> |
| | | insert into pat_archive_out |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePatArchiveOut" parameterType="com.smartor.domain.PatArchiveOut"> |
| | | <update id="updatePatArchiveOut" parameterType="com.ruoyi.patarchive.domain.PatArchiveOut"> |
| | | update pat_archive_out |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="patientno != null">patientno = #{patientno},</if> |