| | |
| | | <result property="name" column="name"/> |
| | | <result property="age" column="age"/> |
| | | <result property="sex" column="sex"/> |
| | | <result property="bedno" column="bed_no"/> |
| | | <result property="dept" column="dept"/> |
| | | <result property="bedNo" column="bed_no"/> |
| | | <result property="deptName" column="dept"/> |
| | | <result property="icdName" column="icd_name"/> |
| | | <result property="phone" column="phone"/> |
| | | <result property="medicalRecordNo" column="medical_record_no"/> |
| | |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | | <if test="age != null ">and age = #{age}</if> |
| | | <if test="sex != null ">and sex = #{sex}</if> |
| | | <if test="bedno != null ">and bed_no = #{bedno}</if> |
| | | <if test="dept != null and dept != ''">and dept = #{dept}</if> |
| | | <if test="bedNo != null ">and bed_no = #{bedNo}</if> |
| | | <if test="deptName != null and deptName != ''">and dept = #{deptName}</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">and medical_record_no = #{medicalRecordNo} |
| | | </if> |
| | |
| | | <if test="name != null">name,</if> |
| | | <if test="age != null">age,</if> |
| | | <if test="sex != null">sex,</if> |
| | | <if test="bedno != null">bed_no,</if> |
| | | <if test="dept != null">dept,</if> |
| | | <if test="bedNo != null">bed_no,</if> |
| | | <if test="deptName != null">dept,</if> |
| | | <if test="icdName != null">icd_name,</if> |
| | | <if test="phone != null">phone,</if> |
| | | <if test="medicalRecordNo != null">medical_record_no,</if> |
| | |
| | | <if test="name != null">#{name},</if> |
| | | <if test="age != null">#{age},</if> |
| | | <if test="sex != null">#{sex},</if> |
| | | <if test="bedno != null">#{bedno},</if> |
| | | <if test="dept != null">#{dept},</if> |
| | | <if test="bedNo != null">#{bedNo},</if> |
| | | <if test="deptName != null">#{deptName},</if> |
| | | <if test="icdName != null">#{icdName},</if> |
| | | <if test="phone != null">#{phone},</if> |
| | | <if test="medicalRecordNo != null">#{medicalRecordNo},</if> |
| | |
| | | <if test="name != null">name = #{name},</if> |
| | | <if test="age != null">age = #{age},</if> |
| | | <if test="sex != null">sex = #{sex},</if> |
| | | <if test="bedno != null">bed_no = #{bedno},</if> |
| | | <if test="dept != null">dept = #{dept},</if> |
| | | <if test="bedNo != null">bed_no = #{bedNo},</if> |
| | | <if test="deptName != null">dept = #{deptName},</if> |
| | | <if test="icdName != null">icd_name = #{icdName},</if> |
| | | <if test="phone != null">phone = #{phone},</if> |
| | | <if test="medicalRecordNo != null">medical_record_no = #{medicalRecordNo},</if> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |