|
|
|
@ -236,10 +236,12 @@ public class PlateGoodsRecordServiceImpl extends BaseServiceImpl<PlateGoodsRecor |
|
|
|
for(CraftAbilityEntity craftAbility : craftAbilityList){ |
|
|
|
for(CraftAbilityEntity craftAbility : craftAbilityList){ |
|
|
|
if(StringUtils.isNotEmpty(craftAbility.getWxLimit())){ |
|
|
|
if(StringUtils.isNotEmpty(craftAbility.getWxLimit())){ |
|
|
|
abilityName = DictCache.getValue("ProcessCapabilityType",craftAbility.getWxLimit()); |
|
|
|
abilityName = DictCache.getValue("ProcessCapabilityType",craftAbility.getWxLimit()); |
|
|
|
if(abilityName.contains("镀金") || abilityName.contains("镀银")){ |
|
|
|
if(StringUtils.isNotEmpty(abilityName)){ |
|
|
|
localArea = craftAbility.getLocalArea().doubleValue(); |
|
|
|
if(abilityName.contains("镀金") || abilityName.contains("镀银")){ |
|
|
|
isContains = true; |
|
|
|
localArea = craftAbility.getLocalArea().doubleValue(); |
|
|
|
break; |
|
|
|
isContains = true; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -263,17 +265,21 @@ public class PlateGoodsRecordServiceImpl extends BaseServiceImpl<PlateGoodsRecor |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(h1 == null){ |
|
|
|
if(h1 == null){ |
|
|
|
//根据配置码查询镀种信息
|
|
|
|
String matCode = dsPart.getPlateCode(); |
|
|
|
BsPlatingEntity bsPlatingEntity =bsPlatingService.selectBsPlatingConfigNo(dsPart.getConfigCode()); |
|
|
|
if(StringUtils.isEmpty(matCode)){ |
|
|
|
if(bsPlatingEntity == null){ |
|
|
|
//根据配置码查询镀种信息
|
|
|
|
log.info("配置码"+dsPart.getConfigCode()+"未查询到镀种信息"); |
|
|
|
BsPlatingEntity bsPlatingEntity =bsPlatingService.selectBsPlatingConfigNo(dsPart.getConfigCode()); |
|
|
|
//将订单状态标记为数据异常,记录异常原因,并退出
|
|
|
|
if(bsPlatingEntity == null){ |
|
|
|
yieldOrder.setValidationMomo("配置码"+dsPart.getConfigCode()+"未查询到镀种信息"); |
|
|
|
log.info("配置码"+dsPart.getConfigCode()+"未查询到镀种信息"); |
|
|
|
this.updateYieldOrder(yieldOrder); |
|
|
|
//将订单状态标记为数据异常,记录异常原因,并退出
|
|
|
|
return false; |
|
|
|
yieldOrder.setValidationMomo("配置码"+dsPart.getConfigCode()+"未查询到镀种信息"); |
|
|
|
|
|
|
|
this.updateYieldOrder(yieldOrder); |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//镀层代码
|
|
|
|
|
|
|
|
matCode = bsPlatingEntity.getMatCode(); |
|
|
|
} |
|
|
|
} |
|
|
|
//镀层代码
|
|
|
|
|
|
|
|
String matCode=bsPlatingEntity.getMatCode(); |
|
|
|
|
|
|
|
//根据零件号、镀层代码、质量等级,从镀层厚度对应表中查询镀层厚度
|
|
|
|
//根据零件号、镀层代码、质量等级,从镀层厚度对应表中查询镀层厚度
|
|
|
|
int start_f21e8=0; |
|
|
|
int start_f21e8=0; |
|
|
|
if(partCode.startsWith("21E8-210")){ |
|
|
|
if(partCode.startsWith("21E8-210")){ |
|
|
|
|