Przeglądaj źródła

1.修改了药品目录分页获取接口

zjh 2 lat temu
rodzic
commit
99f0048ee0

BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/controller/drug/BMaterialController.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/controller/drug/TDrugListController.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/mapper/drug/TDrugListMapper.java


BIN
cbkj_web_parameter/src/main/java/com/jiuzhekan/cbkj/service/drug/TDrugListService.java


+ 16 - 0
cbkj_web_parameter/src/main/resources/mappers/drug/TDrugListMapper.xml

@@ -98,5 +98,21 @@
             </if>
         </where>
     </select>
+    <select id="getPageListByObj2" resultMap="BaseResultMap" parameterType="TDrugList">
+        select <include refid="Base_Column_List" />
+        from t_drug_list
+<where>
+            status = '1'
+    <if test="drugName != null and drugName !=''">
+        and drug_name  like CONCAT('%',trim(#{drugName}),'%')
+    </if>
+    <if test="drugType != null and drugType != ''">
+        and drug_type = #{ drugType }
+    </if>
+    <if test="drugId != null and drugId != ''">
+        and drug_id = #{drugId}
+    </if>
+</where>
+    </select>
 
 </mapper>