|
|
|
@ -432,8 +432,8 @@ public class MesReportWorkServiceImpl implements IMesReportWorkService {
|
|
|
|
|
quantityDto.setMachineCode(machineCode);
|
|
|
|
|
//影响效率原因
|
|
|
|
|
String reasons = mesReportWorkMapper.getProductReason(quantityDto);
|
|
|
|
|
if(StringUtils.isNotBlank(reasons)&&!reasons.equals(";;")){
|
|
|
|
|
dto.setReason(reasons);
|
|
|
|
|
if(StringUtils.isNotBlank(reasons)){
|
|
|
|
|
dto.setReason(reasons.replaceAll(";+", " "));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QuantityDto parentMesReport = mesReportWorkMapper.getRealQuantity(quantityDto);
|
|
|
|
@ -866,5 +866,11 @@ public class MesReportWorkServiceImpl implements IMesReportWorkService {
|
|
|
|
|
}
|
|
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
String originalString = "这是;;一个;测试;字符串;;;;用来测试替换功能";
|
|
|
|
|
String replacedString = originalString.replaceAll(";+", " ");
|
|
|
|
|
|
|
|
|
|
System.out.println("原始字符串: " + originalString);
|
|
|
|
|
System.out.println("替换后的字符串: " + replacedString);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|