|
|
|
@ -6,6 +6,7 @@ import com.glxp.api.common.enums.ResultEnum;
|
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
import com.glxp.api.req.inv.FilterInvPlaceRequest;
|
|
|
|
|
import com.glxp.api.res.inout.IoOrderResponse;
|
|
|
|
|
import com.glxp.api.res.inv.BindInvSpaceRequest;
|
|
|
|
|
import com.glxp.api.res.inv.InvPlaceDetailResponse;
|
|
|
|
|
import com.glxp.api.service.inv.InvPlaceService;
|
|
|
|
@ -68,4 +69,32 @@ public class InvPlaceController {
|
|
|
|
|
return invPlaceService.checkCodeSpace(bindInvSpaceRequest);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询库存产品信息
|
|
|
|
|
*
|
|
|
|
|
* @param filterInvPlaceRequest
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/spms/inv/product/getInvProductInfo")
|
|
|
|
|
private BaseResponse getInvProductInfo(FilterInvPlaceRequest filterInvPlaceRequest) {
|
|
|
|
|
List<InvPlaceDetailResponse> list = invPlaceService.getInvProductInfo(filterInvPlaceRequest);
|
|
|
|
|
return ResultVOUtils.success(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 从库存详情查询单据列表
|
|
|
|
|
*
|
|
|
|
|
* @param filterInvPlaceRequest
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/spms/inv/product/getInvPlaceOrderList")
|
|
|
|
|
public BaseResponse getInvPlaceOrderList(FilterInvPlaceRequest filterInvPlaceRequest) {
|
|
|
|
|
if (null == filterInvPlaceRequest || StrUtil.isBlank(filterInvPlaceRequest.getInvCode())) {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
|
|
|
|
|
}
|
|
|
|
|
List<IoOrderResponse> list = invPlaceService.getInvPlaceOrderList(filterInvPlaceRequest);
|
|
|
|
|
PageInfo<IoOrderResponse> pageInfo = new PageInfo<>(list);
|
|
|
|
|
return ResultVOUtils.page(pageInfo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|