Browse Source

Merge branch '1.0' of http://gogs.tcmbrain.com/zjh/pre_paramater into 1.0

guxinyu 2 years ago
parent
commit
023be2b2e0

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>
             </if>
         </where>
         </where>
     </select>
     </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>
 </mapper>