Merge branch 'script_gj' into 'master'

update

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