From 50481d224b2184e73756953f39d6799d94041a0b Mon Sep 17 00:00:00 2001 From: gaojuan1 Date: Sat, 22 Feb 2025 19:50:21 +0800 Subject: [PATCH] update --- .../script/gj/data_handle/TownStandardBatch.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/TownStandardBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/TownStandardBatch.groovy index 3ace39f53..79569b74a 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/TownStandardBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/TownStandardBatch.groovy @@ -380,12 +380,12 @@ class TownStandardBatch extends BaseBatch{ o.put("district", arrs[4]) o.put("lng", arrs[5]) o.put("lat", arrs[6]) - if(arrs[7]){ - o.put("data_source", arrs[7]) + println arrs.size() + if(arrs.size()<=7){ + o.put("data_source","") }else{ - o.put("data_source", "") + o.put("data_source", arrs[7]) } - rets << o }catch(Exception e){ println arrs