Merge remote-tracking branch 'origin/feature/DM/nflg-bom' into feature/DM/nflg-bom
This commit is contained in:
commit
421271510d
|
|
@ -12,6 +12,7 @@ import com.nflg.product.bomnew.pojo.dto.*;
|
||||||
import com.nflg.product.bomnew.pojo.entity.BomNewEbomParentEntity;
|
import com.nflg.product.bomnew.pojo.entity.BomNewEbomParentEntity;
|
||||||
import com.nflg.product.bomnew.pojo.query.BomNewEbomParentQuery;
|
import com.nflg.product.bomnew.pojo.query.BomNewEbomParentQuery;
|
||||||
import com.nflg.product.bomnew.pojo.query.OriginalBomQuery;
|
import com.nflg.product.bomnew.pojo.query.OriginalBomQuery;
|
||||||
|
import com.nflg.product.bomnew.pojo.vo.BomNewEbomEditDetailVO;
|
||||||
import com.nflg.product.bomnew.pojo.vo.BomNewEbomParentVO;
|
import com.nflg.product.bomnew.pojo.vo.BomNewEbomParentVO;
|
||||||
import com.nflg.product.bomnew.pojo.vo.BomOriginalListVO;
|
import com.nflg.product.bomnew.pojo.vo.BomOriginalListVO;
|
||||||
import com.nflg.product.bomnew.service.BomNewEbomParentService;
|
import com.nflg.product.bomnew.service.BomNewEbomParentService;
|
||||||
|
|
@ -194,4 +195,16 @@ public class EbomApi extends BaseApi {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@GetMapping("editDetail")
|
||||||
|
@ApiOperation("编辑物料列表")
|
||||||
|
public ResultVO<BomNewEbomEditDetailVO> editDetail(@RequestParam("bomRowId") Long bomRowId) {
|
||||||
|
|
||||||
|
ResultVO resultVO=new ResultVO();
|
||||||
|
resultVO.setData(bomNewEbomParentService.editDetail(bomRowId));
|
||||||
|
return resultVO;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
package com.nflg.product.bomnew.pojo.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@ApiModel(value = "com-nflg-product-bomnew-pojo-new-vo-BomNewEbomEditDetailVO")
|
||||||
|
public class BomNewEbomEditDetailVO implements Serializable {
|
||||||
|
|
||||||
|
private BomNewEbomParentVO parent;
|
||||||
|
|
||||||
|
private List<BomNewEbomParentVO> list;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -28,6 +28,7 @@ import com.nflg.product.bomnew.pojo.entity.BomNewEbomParentEntity;
|
||||||
import com.nflg.product.bomnew.pojo.entity.MaterialMainEntity;
|
import com.nflg.product.bomnew.pojo.entity.MaterialMainEntity;
|
||||||
import com.nflg.product.bomnew.pojo.query.BomNewEbomParentQuery;
|
import com.nflg.product.bomnew.pojo.query.BomNewEbomParentQuery;
|
||||||
import com.nflg.product.bomnew.pojo.vo.BaseMaterialVO;
|
import com.nflg.product.bomnew.pojo.vo.BaseMaterialVO;
|
||||||
|
import com.nflg.product.bomnew.pojo.vo.BomNewEbomEditDetailVO;
|
||||||
import com.nflg.product.bomnew.pojo.vo.BomNewEbomParentVO;
|
import com.nflg.product.bomnew.pojo.vo.BomNewEbomParentVO;
|
||||||
import com.nflg.product.bomnew.pojo.vo.EbomExcelVO;
|
import com.nflg.product.bomnew.pojo.vo.EbomExcelVO;
|
||||||
import com.nflg.product.bomnew.service.domain.EBom.*;
|
import com.nflg.product.bomnew.service.domain.EBom.*;
|
||||||
|
|
@ -684,4 +685,21 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public BomNewEbomEditDetailVO editDetail(Long bomRowId){
|
||||||
|
|
||||||
|
BomNewEbomEditDetailVO vo=new BomNewEbomEditDetailVO();
|
||||||
|
BomNewEbomParentEntity parent = this.getBaseMapper().selectById(bomRowId);
|
||||||
|
BomNewEbomParentVO parentVO= Convert.convert(BomNewEbomParentVO.class,parent);
|
||||||
|
List<BomNewEbomParentVO> parentList=new ArrayList<>();
|
||||||
|
parentList.add(parentVO);
|
||||||
|
materialMainService.intiMaterialInfo(parentList );
|
||||||
|
vo.setList(getChild(bomRowId));
|
||||||
|
vo.setParent(parentList.get(0));
|
||||||
|
return vo;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue