|
@@ -8,6 +8,7 @@ import java.sql.DriverManager;
|
|
|
import java.sql.PreparedStatement;
|
|
|
import java.sql.ResultSet;
|
|
|
import java.text.DecimalFormat;
|
|
|
+import java.text.ParseException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
import java.io.IOException;
|
|
@@ -1273,7 +1274,7 @@ public class FbsWorkingStatisticsController {
|
|
|
queryWrapper.orderByAsc("ftpi.sort");
|
|
|
Page<FbsWorkingStatistics> page = new Page<FbsWorkingStatistics>(pageNo, pageSize);
|
|
|
IPage<FbsWorkingStatistics> pageList = fbsWorkingStatisticsService.getEfficiencyReport(page, queryWrapper);
|
|
|
-
|
|
|
+ getFirstFinalTime(pageList.getRecords());
|
|
|
//获取工单完工情况
|
|
|
// if(pageList.getRecords()!=null&&pageList.getRecords().size()>0){
|
|
|
// for(FbsWorkingStatistics fbsWorkingStatistics1:pageList.getRecords()){
|
|
@@ -1806,4 +1807,15 @@ public class FbsWorkingStatisticsController {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ //获取工单最晚扫码日期
|
|
|
+ public void getFirstFinalTime(List<FbsWorkingStatistics> fbsWorkingStatisticsList){
|
|
|
+ List<Map<String,Object>> list=new ArrayList<>();
|
|
|
+ for(FbsWorkingStatistics fbsWorkingStatistics:fbsWorkingStatisticsList){
|
|
|
+ FbsWorkshopDispatchList fbsWorkshopDispatchListTime=fbsWorkshopDispatchListService.getFirstFinalTime(fbsWorkingStatistics.getPkWorkshopDispatchList());
|
|
|
+ if(fbsWorkshopDispatchListTime!=null){
|
|
|
+ fbsWorkingStatistics.setLatestTime(fbsWorkshopDispatchListTime.getFinalTime());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|