bom-查看变更记录
This commit is contained in:
parent
4fe36d5b9c
commit
5ba4960667
|
|
@ -21,12 +21,10 @@ import com.nflg.product.bomnew.util.EecExcelUtil;
|
||||||
import com.nflg.product.bomnew.util.VUtils;
|
import com.nflg.product.bomnew.util.VUtils;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
import nflg.product.common.constant.STATE;
|
import nflg.product.common.constant.STATE;
|
||||||
import nflg.product.common.vo.ResultVO;
|
import nflg.product.common.vo.ResultVO;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
import org.ttzero.excel.entity.ListSheet;
|
import org.ttzero.excel.entity.ListSheet;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
@ -127,6 +125,12 @@ public class BomReportApi extends BaseApi {
|
||||||
return ResultVO.success(forwardReportService.factoryBomType(query));
|
return ResultVO.success(forwardReportService.factoryBomType(query));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("getUpdateLog")
|
||||||
|
@ApiOperation("bom-变更记录(和上一版本对比)")
|
||||||
|
public ResultVO<List<UpdateLogVO>> getUpdateLog(@ApiParam("bom版本RowId") @RequestParam("bomRowId") Long bomRowId) {
|
||||||
|
return ResultVO.success(forwardReportService.getUpdateLog(bomRowId));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("compareReport")
|
@PostMapping("compareReport")
|
||||||
@ApiOperation("bom-比对")
|
@ApiOperation("bom-比对")
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
||||||
|
package com.nflg.product.bomnew.pojo.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 版本变更-记录VO
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class UpdateLogVO {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "序号")
|
||||||
|
private String orderNumber;
|
||||||
|
|
||||||
|
@ApiModelProperty("项目类别")
|
||||||
|
private String projectType;
|
||||||
|
|
||||||
|
@ApiModelProperty("物料编码")
|
||||||
|
private String materialNo;
|
||||||
|
|
||||||
|
@ApiModelProperty("物料名称")
|
||||||
|
private String materialName;
|
||||||
|
|
||||||
|
@ApiModelProperty("物料描述")
|
||||||
|
private String materialDesc;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "数量")
|
||||||
|
private BigDecimal num;
|
||||||
|
|
||||||
|
@ApiModelProperty("单位")
|
||||||
|
private String materialUnit;
|
||||||
|
|
||||||
|
@ApiModelProperty("排序字符串")
|
||||||
|
private String orderStr;
|
||||||
|
|
||||||
|
@ApiModelProperty("操作类型")
|
||||||
|
private String opType;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -402,4 +402,9 @@ public class ForwardReportService {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public List<UpdateLogVO> getUpdateLog(Long bomRowId){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue