Authored by 张帅

字段类型更改

... ... @@ -7,5 +7,5 @@ import org.springframework.stereotype.Repository;
@Repository
public interface PublicVirtualUserRepository extends JpaRepository<PublicVirtualUser, Integer>{
int countByCreateTimeBetween(Integer startTime, Integer endTime);
int countByCreateTimeBetween(Long startTime, Long endTime);
}
... ...
... ... @@ -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);
... ...