Browse Source

药品类型搜索

chengyao 4 years ago
parent
commit
bd87c0ec08

+ 5 - 0
src/main/java/com/diagbot/vo/DoctorAdviceVO.java

@@ -39,6 +39,11 @@ public class DoctorAdviceVO extends Page {
      */
      */
     private String doctorAdviceType;
     private String doctorAdviceType;
 
 
+    /**
+     * 药品类型(0.普药 1.抗生素 2.激素)
+     */
+    private String medicineType;
+
     /**
     /**
      * 医嘱项目名称
      * 医嘱项目名称
      */
      */

+ 4 - 1
src/main/resources/mapper/DoctorAdviceMapper.xml

@@ -62,6 +62,9 @@
         <if test="doctorAdviceVO.hospitalId != null">
         <if test="doctorAdviceVO.hospitalId != null">
             and t.hospital_id = #{doctorAdviceVO.hospitalId}
             and t.hospital_id = #{doctorAdviceVO.hospitalId}
         </if>
         </if>
+        <if test="doctorAdviceVO.medicineType != null">
+            and t.medicine_type = #{doctorAdviceVO.medicineType}
+        </if>
         <if test="doctorAdviceVO.behospitalCode != null and doctorAdviceVO.behospitalCode != ''">
         <if test="doctorAdviceVO.behospitalCode != null and doctorAdviceVO.behospitalCode != ''">
             and t.behospital_code = #{doctorAdviceVO.behospitalCode}
             and t.behospital_code = #{doctorAdviceVO.behospitalCode}
         </if>
         </if>
@@ -86,7 +89,7 @@
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="infos = null || infos.size() == 0">
             <if test="infos = null || infos.size() == 0">
-                and b.info in('000000ASDQWEZXC@#$%')
+                and 1 = 2
             </if>
             </if>
         </if>
         </if>
         <if test="doctorAdviceVO.adviceType != null and doctorAdviceVO.adviceType == 2 ">
         <if test="doctorAdviceVO.adviceType != null and doctorAdviceVO.adviceType == 2 ">