|
|
@@ -832,9 +832,9 @@ public class WbsTreeContractController extends BladeController {
|
|
|
// 对所有value中的单引号进行转义处理
|
|
|
for (Map.Entry<String, String> entry : dataMap.entrySet()) {
|
|
|
String value = entry.getValue();
|
|
|
- if (value != null && value.contains("'")) {
|
|
|
+ if (value != null && value.contains("''")) {
|
|
|
// 将单引号转义为 \'
|
|
|
- value = value.replace("'", "\\'");
|
|
|
+ value = value.replaceAll("'", "''");
|
|
|
entry.setValue(value);
|
|
|
}
|
|
|
}
|