From 64c137c7d5bcdba2ff6be176f58e40e71d500aa5 Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期五, 19 九月 2025 18:46:55 +0800 Subject: [PATCH] 拉卡拉支付 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TErpSupplierWarehousingController.java | 30 ++++++++++++++++++++++-------- 1 files changed, 22 insertions(+), 8 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TErpSupplierWarehousingController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TErpSupplierWarehousingController.java index 84d697f..3b3a210 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TErpSupplierWarehousingController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TErpSupplierWarehousingController.java @@ -8,7 +8,7 @@ import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.framework.web.service.TokenService; import com.ruoyi.system.dto.InventoryDto; -import com.ruoyi.system.dto.InventoryGoodsDto; +import com.ruoyi.system.dto.OutboundGoodsDto; import com.ruoyi.system.dto.WarehousingGoodsDto; import com.ruoyi.system.model.TCrmClinic; import com.ruoyi.system.model.TCrmSupplier; @@ -18,15 +18,15 @@ import com.ruoyi.system.service.TErpGoodsService; import com.ruoyi.system.service.TErpSupplierWarehousingService; import com.ruoyi.system.vo.*; -import com.ruoyi.web.core.config.LakalaAlipayConfig; +import com.ruoyi.web.core.config.LakalaConfig; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; -import org.apache.poi.ss.formula.functions.T; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import javax.validation.Valid; import java.util.List; +import java.util.stream.Collectors; /** * <p> @@ -65,10 +65,6 @@ @ApiOperation(value = "供应商获取库存分页列表") @PostMapping(value = "/pageList") public R<PageInfo<TErpGoodsVO>> pageList(@RequestBody TErpGoodsQuery query) { - V3LabsTransPreorderRequest request = new V3LabsTransPreorderRequest(); - request.setLklAppId(LakalaAlipayConfig.appId); - request.setMerchantNo(LakalaAlipayConfig.MerchantNo); - request.setTermNo(LakalaAlipayConfig.TermNo); SysUser user = tokenService.getLoginUser().getUser(); Integer roleType = user.getRoleType(); @@ -117,6 +113,14 @@ return R.ok(); } + @ApiOperation(value = "供应商库存出库") + @PostMapping(value = "/outbountGoods") + public R<?> outbountGoods(@RequestBody @Valid OutboundGoodsDto dto) { + SysUser user = tokenService.getLoginUser().getUser(); + erpSupplierWarehousingService.outbountGoods(dto,user); + return R.ok(); + } + @ApiOperation(value = "有效期预警") @PostMapping(value = "/validityPeriodWarning") @@ -145,12 +149,22 @@ } - @ApiOperation(value = "供应商 盘点 商品选择") + @ApiOperation(value = "供应商 盘点 出库 商品选择") @PostMapping(value = "/pageInventoryGoodsPageList") public R<PageInfo<TErpGoodsInventoryVO>> pageInventoryGoodsPageList(@RequestBody @Valid TErpGoodsInventoryQuery query) { SysUser user = tokenService.getLoginUser().getUser(); return R.ok(erpGoodsService.pageInventoryGoodsPageList(query,user)); } + @ApiOperation(value = "有效期预警商品选择") + @GetMapping(value = "/pageInventoryGoodsList") + public R<List<TErpGoodsInventoryVO>> pageInventoryGoodsList(@RequestParam String warehouseId,@RequestParam(required = false)String batchId) { + SysUser user = tokenService.getLoginUser().getUser(); + List<TErpGoodsInventoryVO> tErpGoodsInventoryVOS = erpGoodsService.pageInventoryGoodsList(warehouseId, user); + if(batchId!=null && !"".equals(batchId)){ + tErpGoodsInventoryVOS = tErpGoodsInventoryVOS.stream().filter(e->e.getId().equals(batchId)).collect(Collectors.toList()); + } + return R.ok(tErpGoodsInventoryVOS); + } @ApiOperation(value = "供应商 确认盘点") @PostMapping(value = "/inventoryGoods") -- Gitblit v1.7.1