pbom-报表获取变更记录

This commit is contained in:
luolm 2024-10-04 19:38:47 +08:00
parent b46d67dc4e
commit 6e3d37d1ad
2 changed files with 17 additions and 2 deletions

View File

@ -10,6 +10,7 @@ import com.google.common.collect.ImmutableList;
import com.nflg.product.base.core.api.BaseApi;
import com.nflg.product.base.core.exception.NflgBusinessException;
import com.nflg.product.bomnew.constant.ReportConstant;
import com.nflg.product.bomnew.pojo.dto.PdateLogDTO;
import com.nflg.product.bomnew.pojo.entity.MaterialMainEntity;
import com.nflg.product.bomnew.pojo.query.ChildBomReportQuery;
import com.nflg.product.bomnew.pojo.query.CompareReportQuery;
@ -166,8 +167,8 @@ public class BomReportApi extends BaseApi {
@PostMapping("getUpdateLog")
@ApiOperation("bom-变更记录(和上一版本对比)")
public ResultVO<List<UpdateLogVO>> getUpdateLog(@ApiParam("bom版本RowId") @RequestParam("bomRowId") Long bomRowId , @ApiParam("BOM 类型 1-EBom 2-PBom") @RequestParam("bomType") Integer bomType) {
return ResultVO.success(forwardReportService.getUpdateLog(bomRowId,bomType));
public ResultVO<List<UpdateLogVO>> getUpdateLog(@RequestBody PdateLogDTO pdateLogDTO) {
return ResultVO.success(forwardReportService.getUpdateLog(pdateLogDTO.getBomRowId(),pdateLogDTO.getBomType()));
}

View File

@ -0,0 +1,14 @@
package com.nflg.product.bomnew.pojo.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class PdateLogDTO {
@ApiModelProperty("bom版本RowId")
private Long bomRowId;
@ApiModelProperty("BOM 类型 1-EBom 2-PBom")
private Integer bomType;
}