| | |
| | | <result property="hpi" column="hpi"/> |
| | | <result property="mainsuit" column="mainsuit"/> |
| | | <result property="outhospno" column="outhospno"/> |
| | | <result property="patname" column="patname"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatMedOuthospVo"> |
| | |
| | | deptid, |
| | | schemetime, |
| | | hpi, |
| | | patname, |
| | | mainsuit |
| | | from pat_med_outhosp |
| | | </sql> |
| | |
| | | <if test="hpi != null">hpi,</if> |
| | | <if test="mainsuit != null">mainsuit,</if> |
| | | <if test="outhospno != null">outhospno,</if> |
| | | <if test="patname != null">patname,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="serialnum != null">#{serialnum},</if> |
| | |
| | | <if test="hpi != null">#{hpi},</if> |
| | | <if test="mainsuit != null">#{mainsuit},</if> |
| | | <if test="outhospno != null">#{outhospno},</if> |
| | | <if test="patname != null">#{patname},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="hpi != null">hpi = #{hpi},</if> |
| | | <if test="mainsuit != null">mainsuit = #{mainsuit},</if> |
| | | <if test="outhospno != null">outhospno = #{outhospno},</if> |
| | | <if test="patname != null">patname = #{patname},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |