Commit 765006fb authored by youxiaoji's avatar youxiaoji

* [增加空值判断,空值不保存]

parent d288793f
...@@ -3,6 +3,7 @@ package pangea.hiagent.web.service; ...@@ -3,6 +3,7 @@ package pangea.hiagent.web.service;
import com.alibaba.fastjson2.JSONArray; import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject; import com.alibaba.fastjson2.JSONObject;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import pangea.hiagent.tool.impl.HisenseTripTool; import pangea.hiagent.tool.impl.HisenseTripTool;
import pangea.hiagent.tool.impl.VisitorAppointmentTool; import pangea.hiagent.tool.impl.VisitorAppointmentTool;
...@@ -35,6 +36,9 @@ public class InfoCollectorService { ...@@ -35,6 +36,9 @@ public class InfoCollectorService {
public void saveValue(String key, Object value) { public void saveValue(String key, Object value) {
log.info("key {} value {}", key, value); log.info("key {} value {}", key, value);
if(value == null || StringUtils.isEmpty(value.toString())) {
return;
}
values.put(key, value); values.put(key, value);
} }
public void clearValue() { public void clearValue() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment