|
|
|
|
@ -166,6 +166,19 @@ public class CertificateOfApprovalService { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.isNotEmpty(equipmentRegistryRespVO.getContractor())){ |
|
|
|
|
if (equipmentRegistryRespVO.getContractor().contains("汽解放")) { |
|
|
|
|
// 获取"汽解放"在字符串中的位置
|
|
|
|
|
int index = equipmentRegistryRespVO.getContractor().indexOf("汽解放"); |
|
|
|
|
|
|
|
|
|
// 检查"汽"前面是否有"一"字
|
|
|
|
|
if (index == 0 || equipmentRegistryRespVO.getContractor().charAt(index - 1) != '一') { |
|
|
|
|
// 在"汽"前面加上"一"
|
|
|
|
|
equipmentRegistryRespVO.setContractor(equipmentRegistryRespVO.getContractor().substring(0, index) + "一" + equipmentRegistryRespVO.getContractor().substring(index)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return equipmentRegistryRespVO; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|