...
|
...
|
@@ -76,8 +76,10 @@ public class GrassUserDataCheckServiceImpl implements IGrassUserDataCheckService |
|
|
private JSONObject checkVirtualUserData(Integer startTime, Integer endTime){
|
|
|
logger.info("syncVirtualUserData begin, startTime is {}, endTime is {}", startTime, endTime);
|
|
|
|
|
|
Long startTimeLong = (long)startTime * 1000;
|
|
|
Long endTimeLong = (long)endTime * 1000;
|
|
|
int grass_count = grassVirtualUserRepository.countByCreateTimeBetween(startTime, endTime);
|
|
|
int public_count = publicVirtualUserRepository.countByCreateTimeBetween(startTime, endTime);
|
|
|
int public_count = publicVirtualUserRepository.countByCreateTimeBetween(startTimeLong, endTimeLong);
|
|
|
|
|
|
JSONObject result = new JSONObject();
|
|
|
result.put("checkVirtualUserResult", grass_count == public_count? CHECK_SUCCESS : CHECK_FAIL);
|
...
|
...
|
|