|
|
|
|
@ -1,26 +1,27 @@
|
|
|
|
|
package org.dromara.wms.controller;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
|
|
import jakarta.validation.constraints.*;
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
|
|
|
import org.dromara.common.web.core.BaseController;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import org.dromara.common.core.domain.R;
|
|
|
|
|
import org.dromara.common.core.validate.AddGroup;
|
|
|
|
|
import org.dromara.common.core.validate.EditGroup;
|
|
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
|
|
import org.dromara.common.excel.utils.ExcelUtil;
|
|
|
|
|
import org.dromara.wms.domain.vo.WmsOutStockDetailsVo;
|
|
|
|
|
import org.dromara.wms.domain.bo.WmsOutStockDetailsBo;
|
|
|
|
|
import org.dromara.wms.service.IWmsOutStockDetailsService;
|
|
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
import org.dromara.common.web.core.BaseController;
|
|
|
|
|
import org.dromara.wms.domain.bo.WmsOutStockDetailsBo;
|
|
|
|
|
import org.dromara.wms.domain.vo.WmsOutStockDetailsVo;
|
|
|
|
|
import org.dromara.wms.service.IWmsOutStockDetailsService;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 出库单明细
|
|
|
|
|
@ -65,7 +66,7 @@ public class WmsOutStockDetailsController extends BaseController {
|
|
|
|
|
@SaCheckPermission("wms:outStockDetails:query")
|
|
|
|
|
@GetMapping("/{outStockDetailsId}")
|
|
|
|
|
public R<WmsOutStockDetailsVo> getInfo(@NotNull(message = "主键不能为空")
|
|
|
|
|
@PathVariable("outStockDetailsId") Long outStockDetailsId) {
|
|
|
|
|
@PathVariable("outStockDetailsId") Long outStockDetailsId) {
|
|
|
|
|
return R.ok(wmsOutStockDetailsService.queryById(outStockDetailsId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -113,4 +114,14 @@ public class WmsOutStockDetailsController extends BaseController {
|
|
|
|
|
return R.ok(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 统计相同库存ID的,未出库的出库单明细数量
|
|
|
|
|
*
|
|
|
|
|
* @return 未出库的出库单明细数量
|
|
|
|
|
*/
|
|
|
|
|
@SaCheckPermission("wms:outStockDetails:query")
|
|
|
|
|
@GetMapping("/countUnOutStockDetails")
|
|
|
|
|
public R<WmsOutStockDetailsVo> countUnOutStockDetails(WmsOutStockDetailsBo bo) {
|
|
|
|
|
return R.ok(wmsOutStockDetailsService.countUnOutStockDetailsByInventoryDetailsId(bo));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|