|
|
@@ -0,0 +1,63 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
+<!DOCTYPE mapper
|
|
|
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="org.ruoyi.mapper.ThinkMedicalRecMapper">
|
|
|
+ <select id="findMedicalRec" >
|
|
|
+ SELECT *
|
|
|
+ FROM think_medical_rec
|
|
|
+ WHERE 1=1
|
|
|
+ <if test="id != null">
|
|
|
+ AND id = #{id}
|
|
|
+ </if>
|
|
|
+ <if test="mrId != null and mrId != ''">
|
|
|
+ AND mr_id = #{mrId}
|
|
|
+ </if>
|
|
|
+ <if test="patVisitInfoId != null and patVisitInfoId != ''">
|
|
|
+ AND pat_visit_info_id = #{patVisitInfoId}
|
|
|
+ </if>
|
|
|
+ <if test="typeName != null and typeName != ''">
|
|
|
+ AND type_name = #{typeName}
|
|
|
+ </if>
|
|
|
+ <if test="deptId != null and deptId != ''">
|
|
|
+ AND dept_id = #{deptId}
|
|
|
+ </if>
|
|
|
+ <if test="deptName != null and deptName != ''">
|
|
|
+ AND dept_name = #{deptName}
|
|
|
+ </if>
|
|
|
+ <if test="status != null and status != ''">
|
|
|
+ AND status = #{status}
|
|
|
+ </if>
|
|
|
+ <if test="creator != null and creator != ''">
|
|
|
+ AND creator = #{creator}
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null and createTime != ''">
|
|
|
+ AND create_time = #{createTime}
|
|
|
+ </if>
|
|
|
+ <if test="editor != null and editor != ''">
|
|
|
+ AND editor = #{editor}
|
|
|
+ </if>
|
|
|
+ <if test="editTime != null and editTime != ''">
|
|
|
+ AND edit_time = #{editTime}
|
|
|
+ </if>
|
|
|
+ <if test="cmpltr != null and cmpltr != ''">
|
|
|
+ AND cmpltr = #{cmpltr}
|
|
|
+ </if>
|
|
|
+ <if test="cmpltTime != null and cmpltTime != ''">
|
|
|
+ AND cmplt_time = #{cmpltTime}
|
|
|
+ </if>
|
|
|
+ <if test="sno != null and sno != ''">
|
|
|
+ AND sno = #{sno}
|
|
|
+ </if>
|
|
|
+ <if test="content != null and content != ''">
|
|
|
+ AND content LIKE CONCAT('%', #{content}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="datastatus != null">
|
|
|
+ AND datastatus = #{datastatus}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</mapper>
|