This commit is contained in:
2023-06-21 15:56:17 +08:00
parent 9ed8f6dc21
commit 5a1e9a378a
2 changed files with 2 additions and 2 deletions
@@ -322,7 +322,7 @@ class DistrictInfoExportBatch extends BaseBatch{
def s = str.toString();
index++;
if(s && s!="null"){
s = s.replace('"','\"')
s = s.replace('"','\\"')
// if(s.toString().contains(",")){
// s = csvHandlerStr(s.toString())
//
@@ -115,7 +115,7 @@ class HouseExportBatch extends BaseBatch{
// }
// }
def str = StringUtils.join(row.toArray(), "@|@")
str = str.replace('"','\"')
str = str.replace('"','\\"')
sb.append(str)
sb.append(System.getProperty("line.separator"));