危化品全生命周期管理后端
“djh”
2025-04-21 437f8e2b89a18363a1073fdbb3ab99bcd840a757
hazmat-admin/src/main/java/com/gkhy/hazmat/admin/controller/web/HzProductFlowController.java
@@ -31,7 +31,9 @@
    @ApiOperation(value = "流向列表(分页)")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10")
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"),
            @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "long", required = false, value = "公司id"),
    })
    @GetMapping("/list")
    public CommonResult list(HzProductFlow productFlow){
@@ -40,9 +42,13 @@
    @ApiOperation(value = "根据成品id查询危化品所有流向")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "productId", dataType = "long", required = false, value = "产品ID"),
            @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "long", required = false, value = "公司id"),
    })
    @GetMapping(value = { "/getAllProductFlowByProductId" })
    public CommonResult getAllProductFlowByProductId(Long productId){
        return CommonResult.success(productFlowService.getAllProductFlowByProductId(productId));
    public CommonResult getAllProductFlowByProductId(Long productId,Long companyId){
        return CommonResult.success(productFlowService.getAllProductFlowByProductId(productId,companyId));
    }
    @RepeatSubmit