|
|
|
@ -16,6 +16,7 @@
|
|
|
|
|
*/ |
|
|
|
|
package com.logpm.distribution.controller; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
import com.logpm.distribution.dto.DistributionStockListDTO; |
|
|
|
@ -79,7 +80,10 @@ public class DistributionStockListController extends BladeController {
|
|
|
|
|
@ApiOperationSupport(order = 2) |
|
|
|
|
@ApiOperation(value = "分页", notes = "传入distributionStockList") |
|
|
|
|
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); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|