王筝的博客
ruby学习

 

 

old
taskReportDataDTO.setUv(Long.valueOf(hbaseData.get(HbaseColumnEnum.uv).toString()));
new

taskReportDataDTO.setPv(MapUtils.getLong(hbaseData, HbaseColumnEnum.pv.name().toLowerCase(), 0L));

 

@RequestMapping(value = {"/list"}, method = RequestMethod.GET)
    @ResponseBody
    public ResponseVO find(@RequestParam(required = false) Long projectId,
                           @RequestParam(required = false) String projectName,
                           @RequestParam(required = false, name = "startTime") String startTimeStr,
                           @RequestParam(required = false, name = "endTime") String endTimeStr) {
        Date startTime = null;
        Date endTime = null;
        if (StringUtils.isNotBlank(startTimeStr)) {
            startTime = SimpleDateUtils.getStartTimeOfDay(
                SimpleDateUtils.parseDate(startTimeStr, SimpleDateUtils.DATE_FORMAT_YYYY_MM_DD_HH_MM_SS_DASH));
        }
        if (StringUtils.isNotBlank(endTimeStr)) {
            endTime = SimpleDateUtils.getEndTimeOfDay(SimpleDateUtils.parseDate(endTimeStr, SimpleDateUtils.DATE_FORMAT_YYYY_MM_DD_HH_MM_SS_DASH));
        }return ReturnUtils.success(taskVOS);
    }