提交 5bad343a 作者: zhangqiliang

查询列表中查询条件优化

父级 3671caa7
......@@ -116,8 +116,10 @@
from t_delivery
<where>
<if test="deliveryOrder != null and deliveryOrder != ''"> and delivery_order = #{deliveryOrder}</if>
<if test="logisticStatus != null and logisticStatus != ''"> and logistic_status = #{logisticStatus}</if>
<if test="installOrder != null and installOrder != ''"> and install_order like concat('%', #{installOrder}, '%')</if>
<if test="productBatch != null and productBatch != ''"> and product_batch = #{productBatch}</if>
<if test="productBatch != null and productBatch != ''"> and product_batch like concat('%', #{productBatch}, '%')</if>
<if test="arrivalWarehouse != null and arrivalWarehouse != ''"> and arrival_warehouse like concat('%', #{arrivalWarehouse}, '%')</if>
<if test="quantity != null "> and quantity = #{quantity}</if>
<if test="materialCategory != null and materialCategory != ''"> and material_category = #{materialCategory}</if>
<if test="materialCode != null and materialCode != ''"> and material_code like concat('%', #{materialCode}, '%')</if>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论