智慧保安后台管理-外网
Administrator
2021-07-30 0ffd29c2af0476ffd9416cf5eb555de9bbf0d6f9
src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java
@@ -13,6 +13,7 @@
import org.springblade.modules.apply.excel.ApplyExcel;
import org.springblade.modules.apply.mapper.ApplyMapper;
import org.springblade.modules.apply.service.ApplyService;
import org.springblade.modules.apply.vo.ApplyPaPerVO;
import org.springblade.modules.apply.vo.ApplyVO;
import org.springblade.modules.exam.entity.ExamPaper;
import org.springblade.modules.exam.service.ExamPaperService;
@@ -230,4 +231,20 @@
      }
      return pinyinStr;
   }
   /**
    * 获取准考证信息
    * @param apply
    * @return
    */
   @Override
   public ApplyPaPerVO getApplyInfo(Apply apply) {
      ApplyPaPerVO applyPaPerVO = baseMapper.getApplyInfo(apply);
      String time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(applyPaPerVO.getStartTime()).split(" ")[0];
      String startTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(applyPaPerVO.getStartTime()).split(" ")[1];
      String endTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(applyPaPerVO.getEndTime()).split(" ")[1];
      applyPaPerVO.setStringTime(time+" "+startTime.substring(0,startTime.length()-3) +"-"+ endTime.substring(0,endTime.length()-3));
      return applyPaPerVO;
   }
}