Browse Source

自提库存品列表不在查询0 的库存品

master
pref_mail@163.com 5 months ago
parent
commit
9fb86c28d3
  1. 6
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockListController.java

6
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockListController.java

@ -16,6 +16,7 @@
*/ */
package com.logpm.distribution.controller; package com.logpm.distribution.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.logpm.distribution.dto.DistributionStockListDTO; import com.logpm.distribution.dto.DistributionStockListDTO;
@ -79,7 +80,10 @@ public class DistributionStockListController extends BladeController {
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入distributionStockList") @ApiOperation(value = "分页", notes = "传入distributionStockList")
public R<IPage<DistributionStockListEntity>> list(@ApiIgnore @RequestParam Map<String, Object> distributionStockList, Query query) { public R<IPage<DistributionStockListEntity>> list(@ApiIgnore @RequestParam Map<String, Object> distributionStockList, Query query) {
IPage<DistributionStockListEntity> pages = distributionStockListService.page(Condition.getPage(query), Condition.getQueryWrapper(distributionStockList, DistributionStockListEntity.class));
QueryWrapper<DistributionStockListEntity> queryWrapper = Condition.getQueryWrapper(distributionStockList, DistributionStockListEntity.class);
queryWrapper.ne("quantity_stock", 0);
IPage<DistributionStockListEntity> pages = distributionStockListService.page(Condition.getPage(query), queryWrapper);
return R.data(pages); return R.data(pages);
} }

Loading…
Cancel
Save