This commit is contained in:
parent
27fc46f294
commit
f8d30f9208
|
|
@ -0,0 +1,27 @@
|
|||
package com.nflg.product.bomnew.api.user;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.nflg.product.bomnew.pojo.query.BomNewEbomParentQuery;
|
||||
import com.nflg.product.bomnew.pojo.vo.BomNewEbomParentVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import nflg.product.common.vo.ResultVO;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "BOM-报表接口")
|
||||
@RestController
|
||||
@RequestMapping("bom/new/report")
|
||||
public class BomReportApi {
|
||||
|
||||
|
||||
|
||||
@PostMapping("reverseReport")
|
||||
@ApiOperation("bom-反查")
|
||||
public ResultVO<Page<BomNewEbomParentVO>> reverseReport(@RequestBody BomNewEbomParentQuery query) {
|
||||
return ResultVO.success(bomNewEbomParentService.formalWorksheet(query));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package com.nflg.product.bomnew.pojo.query;
|
||||
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* bom--反查报表查询参数
|
||||
*/
|
||||
@Data
|
||||
public class ReverseReportQuery {
|
||||
|
||||
@ApiModelProperty("BOM 类型 0-原始BOM 1-EBom 2-PBom 3-MBom")
|
||||
private Integer bomType;
|
||||
|
||||
@ApiModelProperty("物料编码")
|
||||
private String materialNo;
|
||||
|
||||
@ApiModelProperty("工厂编码")
|
||||
private String facCode;
|
||||
|
||||
@ApiModelProperty("查询方式 0-单层 1-多层 2-汇总")
|
||||
private Integer queryType;
|
||||
|
||||
@ApiModelProperty("版本策略 0-最新版 1-全部版本")
|
||||
private Integer versionStrategy;
|
||||
|
||||
@ApiModelProperty("BOM-版本号")
|
||||
private String bomVersion;
|
||||
|
||||
@ApiModelProperty("有效性-开始时间")
|
||||
private String startDate;
|
||||
@ApiModelProperty("有效性-结束时间")
|
||||
private String endDate;
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue