|
|
@@ -33,7 +33,6 @@ public class MhApiClient { |
|
|
|
private static final String COMPANY_URL = "/sync/company"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public MhRetDTO<List<MhUnitDTO>> queryUnits() { |
|
|
|
String requestUrl = mhApiHost + UNIT_URL; |
|
|
|
String retBody = HttpUtil.get(requestUrl); |
|
|
@@ -52,7 +51,7 @@ public class MhApiClient { |
|
|
|
String requestUrl = mhApiHost + USER_URL; |
|
|
|
if (syncDateTime != null) { |
|
|
|
String timeString = LocalDateTimeUtil.format(syncDateTime, NORM_DATETIME_FORMATTER); |
|
|
|
requestUrl = "?syncDateTime=" + timeString; |
|
|
|
requestUrl += "?syncDateTime=" + timeString; |
|
|
|
} |
|
|
|
String retBody = HttpUtil.get(requestUrl); |
|
|
|
return JSONUtil.toBean(retBody, new TypeReference<MhRetDTO<List<MhUserDTO>>>() { |
|
|
@@ -63,7 +62,7 @@ public class MhApiClient { |
|
|
|
String requestUrl = mhApiHost + EXPERT_URL; |
|
|
|
if (syncDateTime != null) { |
|
|
|
String timeString = LocalDateTimeUtil.format(syncDateTime, NORM_DATETIME_FORMATTER); |
|
|
|
requestUrl = "?syncDateTime=" + timeString; |
|
|
|
requestUrl += "?syncDateTime=" + timeString; |
|
|
|
} |
|
|
|
String retBody = HttpUtil.get(requestUrl); |
|
|
|
return JSONUtil.toBean(retBody, new TypeReference<MhRetDTO<MhExpertDTO>>() { |
|
|
|