Browse Source

图片标记

master
牧羊人 4 years ago
parent
commit
60d5da8996
2 changed files with 4 additions and 2 deletions
  1. +1
    -1
      src/main/java/com/taauav/admin/service/impl/TauvInspectDriverServiceImpl.java
  2. +3
    -1
      src/main/java/com/taauav/admin/service/impl/TauvInspectFileServiceImpl.java

+ 1
- 1
src/main/java/com/taauav/admin/service/impl/TauvInspectDriverServiceImpl.java View File

// driver.setFormatExecutionStartTime(FunctionUtils.formatTime(driver.getExecutionStartTime(), "yyyy-MM-dd HH:mm:ss")); // driver.setFormatExecutionStartTime(FunctionUtils.formatTime(driver.getExecutionStartTime(), "yyyy-MM-dd HH:mm:ss"));
// driver.setFormatExecutionEndTime(FunctionUtils.formatTime(driver.getExecutionEndTime(), "yyyy-MM-dd HH:mm:ss")); // driver.setFormatExecutionEndTime(FunctionUtils.formatTime(driver.getExecutionEndTime(), "yyyy-MM-dd HH:mm:ss"));
driver.setFormatCreateTime(DateUtil.format(driver.getCreateTime(), "yyyy-MM-dd HH:mm:ss")); driver.setFormatCreateTime(DateUtil.format(driver.getCreateTime(), "yyyy-MM-dd HH:mm:ss"));
driver.setFormatInspectTime(DateUtil.format(driver.getInspectTime(), "yyyy-MM-dd HH:mm:ss"));
driver.setFormatInspectTime(DateUtil.format(driver.getInspectTime(), "yyyy-MM-dd"));
if (!StringUtils.isEmpty(driver.getExecutionTime())) { if (!StringUtils.isEmpty(driver.getExecutionTime())) {
driver.setFormatExecutionTime(DateUtil.format(driver.getExecutionTime(), "yyyy-MM-dd")); driver.setFormatExecutionTime(DateUtil.format(driver.getExecutionTime(), "yyyy-MM-dd"));
} }

+ 3
- 1
src/main/java/com/taauav/admin/service/impl/TauvInspectFileServiceImpl.java View File

Integer status = driverPicDTO.getStatus().intValue(); Integer status = driverPicDTO.getStatus().intValue();
driverPicDTO.setStatusText(StringUtils.isEmpty(status) ? "" : statusList.get(status)); driverPicDTO.setStatusText(StringUtils.isEmpty(status) ? "" : statusList.get(status));
Date reviewTime = driverPicDTO.getReviewTime(); Date reviewTime = driverPicDTO.getReviewTime();
driverPicDTO.setFormatReviewTime(DateUtil.format(reviewTime, format));
if (reviewTime != null) {
driverPicDTO.setFormatReviewTime(DateUtil.format(reviewTime, format));
}
if (!StringUtils.isEmpty(driverPicDTO.getReviewUser())) { if (!StringUtils.isEmpty(driverPicDTO.getReviewUser())) {
SysAdmin adminInfo = iSysAdminService.getAdminInfo(driverPicDTO.getReviewUser()); SysAdmin adminInfo = iSysAdminService.getAdminInfo(driverPicDTO.getReviewUser());
driverPicDTO.setFormatReviewUser(StringUtils.isEmpty(adminInfo) ? "" : adminInfo.getRealname()); driverPicDTO.setFormatReviewUser(StringUtils.isEmpty(adminInfo) ? "" : adminInfo.getRealname());

Loading…
Cancel
Save