| | |
| | | package com.vincent.rsf.server.api.controller.erp; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.vincent.rsf.server.api.service.ReceiveMsgService; |
| | | import com.vincent.rsf.framework.common.R; |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | import com.vincent.rsf.server.api.controller.erp.params.*; |
| | | import com.vincent.rsf.server.api.controller.erp.params.InventoryQueryConditionParam; |
| | | import com.vincent.rsf.server.api.controller.erp.params.QueryOrderParam; |
| | | import com.vincent.rsf.server.api.service.ReceiveMsgService; |
| | | import com.vincent.rsf.server.common.annotation.OperationLog; |
| | | import com.vincent.rsf.server.common.domain.BaseParam; |
| | | import com.vincent.rsf.server.common.domain.PageParam; |
| | | import com.vincent.rsf.framework.common.R; |
| | | |
| | | import com.vincent.rsf.server.manager.entity.Loc; |
| | | import com.vincent.rsf.server.manager.service.MatnrGroupService; |
| | | import com.vincent.rsf.server.manager.service.*; |
| | | import com.vincent.rsf.server.system.controller.BaseController; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | |
| | | |
| | | @Autowired |
| | | private ReceiveMsgService receiveMsgService; |
| | | |
| | | @Autowired |
| | | private MatnrGroupService matnrGroupService; |
| | | |
| | |
| | | return receiveMsgService.syncLocsDetl(pageParam, wrapper); |
| | | } |
| | | |
| | | /** |
| | | * @author Ryan |
| | | * @date 2025/8/21 |
| | | * @description: 调拔单信息查询 |
| | | * @version 1.0 |
| | | */ |
| | | @PostMapping("/query/transfer") |
| | | @ApiOperation("查询调拔单及明细") |
| | | @OperationLog("调拔单及明细查询") |
| | | public R queryTransfer(@RequestBody QueryOrderParam queryParams) { |
| | | if (Objects.isNull(queryParams)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | return receiveMsgService.queryTransfer(queryParams); |
| | | } |
| | | |
| | | /** |
| | | * ERP库存查询明细(供open-api模块调用) |
| | | * 对应open-api的 /inventory/details 接口 |
| | | * @param condition 查询条件 |
| | | * @return 库存明细列表 |
| | | */ |
| | | @PostMapping("/inventory/details") |
| | | @ApiOperation(value = "ERP库存查询明细", hidden = true) |
| | | @OperationLog("ERP库存查询明细") |
| | | public R erpQueryInventoryDetails(@RequestBody InventoryQueryConditionParam condition) { |
| | | // 参数验证 |
| | | if (condition == null) { |
| | | return R.error("查询条件不能为空"); |
| | | } |
| | | |
| | | return receiveMsgService.erpQueryInventoryDetails(condition); |
| | | } |
| | | |
| | | } |