首炬大屏
parent
5470f24f50
commit
2d5a88a202
|
|
@ -31,4 +31,6 @@ public interface SupervisionStatisticsMapper {
|
|||
Integer getTotalCarCount();
|
||||
|
||||
List<Map<String, Object>> getKehuList();
|
||||
|
||||
List<Map<String, Object>> totalOrder();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,6 +24,18 @@ public class SupervisionStatisticsService {
|
|||
YuYueSummary yuYueSummary = supervisionStatisticsMapper.getYuYueSummary();
|
||||
|
||||
Integer disposeTotalWeight = supervisionStatisticsMapper.getDisposeTotalWeight();
|
||||
List<Map<String, Object>> totalOrder = supervisionStatisticsMapper.totalOrder();
|
||||
int orderCount_total = totalOrder.size();
|
||||
int orderCount_sj = 0;
|
||||
long gpsCount = totalOrder.stream()
|
||||
.filter(it -> MapUtil.getInt(it, "lo") == 1)
|
||||
.map(it -> MapUtil.getStr(it, "carNumber")).distinct().count();
|
||||
for (Map<String, Object> map : totalOrder) {
|
||||
Integer lo = MapUtil.getInt(map, "lo");
|
||||
if (lo == 1) {
|
||||
orderCount_sj++;
|
||||
}
|
||||
}
|
||||
|
||||
CarSummary carSummary = supervisionStatisticsMapper.getCarSummary();
|
||||
Integer todayCarCount = supervisionStatisticsMapper.getTodayCarCount();
|
||||
|
|
@ -48,6 +60,10 @@ public class SupervisionStatisticsService {
|
|||
.put("projects", projects == null ? new ArrayList<>() : projects)
|
||||
.put("totalCarCount", totalCarCount == null ? 0 : totalCarCount)
|
||||
.put("kehu", kehu == null ? new ArrayList<>() : kehu)
|
||||
.put("totalOrderCount", orderCount_total)
|
||||
.put("sjOrderCount", orderCount_sj)
|
||||
.put("sjOrderCount", orderCount_sj)
|
||||
.put("gpsCount", gpsCount)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -178,5 +178,12 @@
|
|||
AND a.nickname NOT LIKE '%测试%'
|
||||
ORDER BY a.createtime DESC
|
||||
</select>
|
||||
<select id="totalOrder" resultType="java.util.Map">
|
||||
SELECT a.car_number carNumber, IF(c.license_plate IS NULL, 0, 1) lo
|
||||
FROM ba_order a
|
||||
INNER JOIN ba_order_dispatch b ON b.order_no = a.order_no
|
||||
LEFT JOIN localizer_device c ON c.license_plate = a.car_number
|
||||
WHERE a.status NOT IN (4, 5)
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue