Explorar o código

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

zjh %!s(int64=2) %!d(string=hai) anos
pai
achega
99f0048ee0

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


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


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


BIN=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>