From efc6cfea74d99a15ec6e568d42299750b74397e6 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Tue, 18 Jun 2024 19:32:21 +0800 Subject: [PATCH] print log --- .../com/fangjia/script/gj/data_handle/PoiLocation.groovy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/PoiLocation.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/PoiLocation.groovy index e46528404..dbe071346 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/PoiLocation.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/PoiLocation.groovy @@ -305,7 +305,12 @@ class PoiLocation { } def q = new BasicDBObject() q.put("_id", m.id) - MAPPOI_CONN.update(q, new BasicDBObject('$set', udata)) + if(udata){ + MAPPOI_CONN.update(q, new BasicDBObject('$set', udata)) + }else{ + println m+" 无法修改-无值" + } + } }