| | |
| | | <if test="schemestatus != null ">and b.schemestatus = #{schemestatus}</if> |
| | | <if test="outWayId != null ">and b.out_way_id = #{outWayId}</if> |
| | | <if test="outWayName != null ">and b.out_way_name = #{outWayName}</if> |
| | | <if test="leaveldeptcode != null ">and b.leaveldeptcode = #{leaveldeptcode}</if> |
| | | <if test="leavediagname != null and leavediagname != ''">and b.leavediagname like concat('%', |
| | | #{leavediagname}, '%') |
| | | </if> |
| | | <if test="drname != null and drname != ''">and b.drname like concat('%', #{drname}, '%')</if> |
| | | <if test="leaveldeptname != null and leaveldeptname != ''">and b.leaveldeptname like concat('%', |
| | | #{leaveldeptname}, '%') |
| | | </if> |
| | | <if test="deptname != null and deptname != ''">and b.deptname like concat('%', |
| | | #{deptname}, '%') |
| | | </if> |
| | | <if test="patid != null and patid != ''">and a.id =#{patid} |
| | | </if> |
| | |
| | | </insert> |
| | | |
| | | |
| | | <insert id="insertPatMedInhospBatch" parameterType="java.util.List"> |
| | | <insert id="insertPatMedInhospBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="item.inhospid"> |
| | | insert into pat_med_inhosp ( |
| | | serialnum, hospitalname, hospitalcode, hospitaldistrictcode, hospitaldistrictname, |
| | | icd10code, diagname, starttime, endtime, deptcode, deptname, roomno, bed_no, |