1.PBom复制
This commit is contained in:
parent
9fdf28fc8c
commit
298a70817e
|
|
@ -11,9 +11,11 @@ import com.nflg.product.bomnew.pojo.dto.BomNewOriginalExcelDTO;
|
|||
import com.nflg.product.bomnew.pojo.dto.OriginalSaveBomDTO;
|
||||
import com.nflg.product.bomnew.pojo.query.OriginalBomQuery;
|
||||
import com.nflg.product.bomnew.pojo.vo.BomOriginalListVO;
|
||||
import com.nflg.product.bomnew.pojo.vo.MaterialMateVO;
|
||||
import com.nflg.product.bomnew.service.BomNewEbomParentService;
|
||||
import com.nflg.product.bomnew.service.BomNewOriginalParentService;
|
||||
import com.nflg.product.bomnew.service.MaterialService;
|
||||
import com.nflg.product.bomnew.service.cache.MaterialMateCache;
|
||||
import com.nflg.product.bomnew.util.EecExcelUtil;
|
||||
import com.nflg.product.bomnew.util.TreeNode;
|
||||
import com.nflg.product.bomnew.util.VUtils;
|
||||
|
|
@ -212,6 +214,16 @@ public class OriginalBomApi extends BaseApi {
|
|||
}
|
||||
|
||||
|
||||
@ApiOperation("test匹配")
|
||||
@PostMapping("testpiPEI")
|
||||
public ResultVO<String> test(@RequestParam("mname") String mname , @RequestParam("textrue")String textrue){
|
||||
MaterialMateCache mateCache = new MaterialMateCache();
|
||||
MaterialMateVO materialMate = mateCache.findMaterialByNameOrmaterialTexture(mname, textrue);
|
||||
return ResultVO.success(materialMate.getMaterialNo());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -291,6 +291,10 @@ public class OriginalBomToEBomConvert extends BaseConvert {
|
|||
* 构建EBom父级
|
||||
*/
|
||||
private Long buildEBomParent(BomOriginalListVO parentEnt) {
|
||||
Map<String, BomNewEbomParentEntity> parentMap = ListCommonUtil.listToMap(this.getEBomParentResult(), BomNewEbomParentEntity::getMaterialNo);
|
||||
if(parentMap.containsKey(parentEnt.getMaterialNo())){
|
||||
return parentMap.get(parentEnt.getMaterialNo()).getRowId();
|
||||
}
|
||||
BomNewEbomParentEntity ebom = SpringUtil.getBean(BomNewEbomParentService.class).lambdaQuery().eq(BomNewEbomParentEntity::getMaterialNo, parentEnt.getMaterialNo()).eq(BomNewEbomParentEntity::getLastVersionIs, 1).one();
|
||||
BomNewEbomParentEntity eBomParent = new BomNewEbomParentEntity();
|
||||
BeanUtil.copyProperties(parentEnt, eBomParent, "materialGetType");
|
||||
|
|
|
|||
Loading…
Reference in New Issue