提交 ee13a28e 作者: zhangqiliang

查询列表中查询条件优化

父级 b2e64672
......@@ -193,8 +193,6 @@ public class DeliveryController {
@PostMapping("/query")
@ApiOperation(value = "发货列表查询")
public BaseResponse<List<Delivery>> queryDelivery(Delivery delivery){
List<String> list= Arrays.asList("已发货","已收货","退货已申请","退货已驳回","退货已通过","退货完成");
delivery.setLogisticStatusList(list);
return new BaseResponse(this.deliveryMapper.selectDeliveryList(delivery));
}
@GetMapping("/detail")
......
......@@ -117,7 +117,6 @@
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 like concat('%', #{productBatch}, '%')</if>
<if test="arrivalWarehouse != null and arrivalWarehouse != ''"> and arrival_warehouse like concat('%', #{arrivalWarehouse}, '%')</if>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论