|
@@ -1,6 +1,7 @@
|
|
|
package com.bz.smart_city.service.impl.pay;
|
|
|
|
|
|
-import com.bz.smart_city.commom.exception.ServiceException;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.alibaba.fastjson.TypeReference;
|
|
|
import com.bz.smart_city.commom.model.AjaxMessage;
|
|
|
import com.bz.smart_city.commom.model.ResultStatus;
|
|
|
import com.bz.smart_city.commom.util.HttpRequest;
|
|
@@ -24,6 +25,7 @@ import com.bz.smart_city.service.CommunityService;
|
|
|
import com.bz.smart_city.service.pay.PayBaseAccountService;
|
|
|
import com.bz.smart_city.service.pay.PayBaseConfigService;
|
|
|
import com.bz.smart_city.service.pay.PaySyncDataService;
|
|
|
+import org.apache.poi.ss.formula.functions.T;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -85,8 +87,11 @@ public class PaySyncDataServiceImpl implements PaySyncDataService {
|
|
|
url += String.format("?parentId=%d",parentId);
|
|
|
}
|
|
|
String result = HttpRequest.doGet(url);
|
|
|
+ //jackson存在空值时间转换问题
|
|
|
+// AjaxMessage<List<DeviceTypeDto>> ajaxMessage =JacksonUtil.string2Obj(result, new TypeReference<AjaxMessage<List<DeviceTypeDto>>>(){});
|
|
|
+//
|
|
|
+ AjaxMessage<List<DeviceTypeDto>> ajaxMessage = JSONObject.parseObject(result,new TypeReference<AjaxMessage<List<DeviceTypeDto>>>() {});
|
|
|
|
|
|
- AjaxMessage<List<DeviceTypeDto>> ajaxMessage =JacksonUtil.string2Obj(result,AjaxMessage.class);
|
|
|
return ajaxMessage;
|
|
|
}
|
|
|
catch (Exception e){
|