Commit 69925aac2e9deb1bf4c713ef220d319f41aea531
1 parent
6c06dc23
添加前端查询未完成入库单明细接口,和查询指定id的入库单明细接口
Showing
1 changed file
with
20 additions
and
0 deletions
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/controller/ReceiptHeaderController.java
1 | 1 | package org.jeecg.modules.wms.receipt.receiptHeader.controller; |
2 | 2 | |
3 | 3 | import com.aliyun.oss.ServiceException; |
4 | +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | |
5 | +import com.baomidou.mybatisplus.core.toolkit.Wrappers; | |
4 | 6 | import org.apache.shiro.authz.annotation.RequiresPermissions; |
5 | 7 | import org.jeecg.common.system.query.QueryGenerator; |
6 | 8 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
... | ... | @@ -195,6 +197,24 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec |
195 | 197 | return Result.OK(pageList); |
196 | 198 | } |
197 | 199 | |
200 | + @ApiOperation(value = "入库单详情-通过多个明细id查询", notes = "入库单详情-通过多个明细id查询") | |
201 | + @PostMapping(value = "/listReceiptDetailByIds") | |
202 | + public Result<List<ReceiptDetail>> listReceiptDetailByIds(@RequestBody List<Integer> ids ) { | |
203 | + return Result.ok(receiptDetailService.listByIds(ids)); | |
204 | + } | |
205 | + | |
206 | + @ApiOperation(value = "入库单详情-查询未收完的明细", notes = "入库单详情-查询未收完的明细") | |
207 | + @GetMapping(value = "/listReceiptDetailByCode") | |
208 | + public Result<IPage<ReceiptDetail>> listReceiptDetailByCode(String code, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, | |
209 | + @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) { | |
210 | + LambdaQueryWrapper<ReceiptDetail> query = Wrappers.lambdaQuery(); | |
211 | + query.eq(StringUtils.isNotEmpty(code), ReceiptDetail::getReceiptCode, code) | |
212 | + .lt(ReceiptDetail::getStatus, QuantityConstant.RECEIPT_HEADER_COMPLETED); | |
213 | + Page<ReceiptDetail> page = new Page<ReceiptDetail>(pageNo, pageSize); | |
214 | + IPage<ReceiptDetail> pageList = receiptDetailService.page(page, query); | |
215 | + return Result.ok(pageList); | |
216 | + } | |
217 | + | |
198 | 218 | /** |
199 | 219 | * 添加 |
200 | 220 | * @param receiptDetail |
... | ... |