wangliang 1 tahun lalu
induk
melakukan
0d2bb956f8

+ 2 - 3
sop-business/src/main/java/com/qmth/sop/business/service/impl/SopAnalyseServiceImpl.java

@@ -351,8 +351,8 @@ public class SopAnalyseServiceImpl extends ServiceImpl<SopAnalyseMapper, TBSopIn
         List<SopMonitor> sopMonitorList = this.baseMapper.findSopMonitorListByServiceId(serviceId);
         Date date = new Date();
         List<Long> times = new ArrayList<>();
-        for (int i = 0; i < 7; i++) {
-            int v = i + 1;
+        for (int i = 8; i > 1; i--) {
+            int v = i - 1;
             Calendar calendar = Calendar.getInstance();
             calendar.setTime(date);
             calendar.add(Calendar.DAY_OF_MONTH, -v);
@@ -363,7 +363,6 @@ public class SopAnalyseServiceImpl extends ServiceImpl<SopAnalyseMapper, TBSopIn
             Long endTime = calendar.getTimeInMillis() - 1;
             times.add(endTime);
         }
-        Collections.sort(times);
 
         // 7天涉及到的所有供应商信息 id - name 补充零用
         Map<Long, String> supplierInfoMap = new HashMap<>();