|
@@ -11,6 +11,7 @@ import com.zfire.jiasm.syncdata.service.PublicService;
|
|
|
import com.zfire.jiasm.syncdata.test;
|
|
|
import com.zfire.jiasm.syncdata.utils.HttpUtil;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
@@ -57,6 +58,10 @@ public class SMSSelfGetArrivedServiceImpl {
|
|
|
if (sso !=null){
|
|
|
return Boolean.FALSE;
|
|
|
}
|
|
|
+ // 无数据不处理
|
|
|
+ if (StringUtils.isEmpty(id)){
|
|
|
+ return Boolean.FALSE;
|
|
|
+ }
|
|
|
|
|
|
return Boolean.TRUE;
|
|
|
}
|
|
@@ -98,9 +103,10 @@ public class SMSSelfGetArrivedServiceImpl {
|
|
|
for (int i = 0; i < reports.size(); i++) {
|
|
|
JSONObject data = reports.getJSONObject(i);
|
|
|
|
|
|
+ // 回复数据写入表
|
|
|
saveItfReceiveSms(sdf, data);
|
|
|
|
|
|
- // 同步回复内容信息smsrecord
|
|
|
+ // 同步回复内容信息 smsrecord
|
|
|
syncSmsRecord(data);
|
|
|
}
|
|
|
|