mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
新增webcad生产单导入:webcad拆单数据修正板件备注
This commit is contained in:
+24
-1
@@ -577,7 +577,7 @@ public class WebCadOrderImportFactory {
|
||||
.sealRight(BigDecimal.ZERO)
|
||||
.sealUp(BigDecimal.ZERO)
|
||||
.sealDown(BigDecimal.ZERO)
|
||||
.remark(block.getRemark())
|
||||
.remark(getPlateRemark(blockInfo))
|
||||
.deleted(false)
|
||||
.organId(organId)
|
||||
.build();
|
||||
@@ -619,6 +619,29 @@ public class WebCadOrderImportFactory {
|
||||
analyzeBlockProcessGroup(orderBodyDO, block, plateId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取板件备注
|
||||
*
|
||||
* @param infoDTO
|
||||
* @return
|
||||
*/
|
||||
private String getPlateRemark(WebCadDataBlockReqVO.InfoDTO infoDTO) {
|
||||
if (ObjectUtil.isNull(infoDTO)) {
|
||||
return EMPTY_STRING;
|
||||
}
|
||||
|
||||
List<List<String>> remarks = infoDTO.getRemarks();
|
||||
if (CollUtil.isEmpty(remarks)) {
|
||||
return EMPTY_STRING;
|
||||
}
|
||||
|
||||
return remarks.stream()
|
||||
.filter(remark -> CollUtil.isNotEmpty(remark) && remark.size() == 2)
|
||||
.filter(remark -> !"#extra".equals(remark.get(0)) && !"#drills".equals(remark.get(0)))
|
||||
.map(remark -> remark.get(1))
|
||||
.collect(Collectors.joining(","));
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成自定义板编号
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user