|
@@ -95,6 +95,34 @@ public class MsReportService {
|
|
|
return listSuspected;
|
|
|
}
|
|
|
|
|
|
+ //获取日历前一天数据
|
|
|
+ public List<MsSuspected> getByReportReportDateStatus(String reportDate, Long userCreate) {
|
|
|
+ List<MsReport> listReport = msReportMapper.selectByReportDateStatus(reportDate, userCreate);
|
|
|
+ List<MsSuspected> listSuspected = null;
|
|
|
+ if (listReport != null && listReport.size() > 0) {
|
|
|
+ listSuspected = msSuspectedMapper.selectByReportId(Long.parseLong(listReport.get(0).getReportId().toString()));
|
|
|
+ if (listSuspected != null && listSuspected.size() > 0) {
|
|
|
+ String tripDet;
|
|
|
+ for (MsSuspected msSuspected : listSuspected) {
|
|
|
+ tripDet = "";
|
|
|
+ //出行详细
|
|
|
+ List<MsTripDet> listDet = msSuspectedMapper.selectTripSuspected(msSuspected.getSuspectedId());
|
|
|
+ if (listDet != null && listDet.size() > 0) {
|
|
|
+ for (MsTripDet msTripDet : listDet) {
|
|
|
+ tripDet += "出发地:" + getLocalOther(msTripDet.getStartLocal(), msTripDet.getStartLocalOther()) + ",";
|
|
|
+ tripDet += "目的地:" + getLocalOther(msTripDet.getEndLocal(), msTripDet.getEndLocalOther()) + ",";
|
|
|
+ tripDet += "出行方式:" + getTripType(msTripDet.getTripType()) + ",";
|
|
|
+ tripDet += "车次/航班/车牌:" + msTripDet.getTripTypeDesp() + ",";
|
|
|
+ }
|
|
|
+ msSuspected.setTripDet(tripDet.substring(0, tripDet.length() - 1));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return listSuspected;
|
|
|
+ }
|
|
|
+
|
|
|
public String getLocalOther(Integer local, String localOther) {
|
|
|
String localDet = "";
|
|
|
if (local == 1) {
|