From 1c52eefe3b76605f225ef4726adb8fc1eef8dd07 Mon Sep 17 00:00:00 2001 From: lzq Date: Tue, 2 Sep 2025 02:12:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/SupervisionStatisticsMapper.java | 2 + .../supervisory/statistics/pojo/Order.java | 172 ++---------------- .../supervisory/statistics/pojo/Project.java | 22 +++ .../service/SupervisionStatisticsService.java | 2 + .../mapper/SupervisionStatisticsMapper.xml | 112 +++++------- 5 files changed, 80 insertions(+), 230 deletions(-) create mode 100644 njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/pojo/Project.java diff --git a/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/mapper/SupervisionStatisticsMapper.java b/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/mapper/SupervisionStatisticsMapper.java index 3d95e2a..9b7363f 100644 --- a/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/mapper/SupervisionStatisticsMapper.java +++ b/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/mapper/SupervisionStatisticsMapper.java @@ -25,4 +25,6 @@ public interface SupervisionStatisticsMapper { List getOrders(); + List getProjects(); + } diff --git a/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/pojo/Order.java b/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/pojo/Order.java index 1903e21..eb3a822 100644 --- a/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/pojo/Order.java +++ b/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/pojo/Order.java @@ -5,173 +5,27 @@ import lombok.Setter; import lombok.ToString; import lombok.experimental.Accessors; -import java.math.BigDecimal; - @Getter @Setter @ToString @Accessors(chain = true) public class Order { - private static final long serialVersionUID = 1L; - - private Integer id; private String orderNo; - - private Integer userId; - - private String carNumber; - - private Integer goodsCategoryId; - - private Integer goodsId; - - private Byte unit; - - private Integer tare; - - private Integer weightRough; - - private Integer weight; - - private Integer deduct; - - private Integer priceUnit; - - private Integer priceTotal; - - private Integer priceFix; - - private Integer priceDiscount; - - private Integer price; - - private Byte status; - - private Byte carStatus; - - private Long carUpdated; - - private String carInFront; - - private String carInBody; - - private String carOutFront; - - private String carOutBody; - - private Integer feeOil; - - private String remark; - - private Byte feeType; - - private Byte whoPay; - - private Byte type; - - private Integer vipUser; - - private Long createTime; - - private Long updateTime; - - private String laneId; - - private Byte adminStatus; - - private Long adminTime; - - private Long payTime; - - private Integer amountRefund; - - private Byte vipCheck; - - private Byte payType; - + private String realname; private String mobile; - - private Integer klUid; - - private String klNote; - - private Integer payAmount; - - private Byte doType; - - private Byte finish; - - private Byte ownerPay; - - private Long inTime; - - private Long outTime; - - private Integer suffixNo; - - private Integer companyId; - - private String noteBf; - - private String noteCw; - - private Integer amount; - - private Integer fare; - - private Integer fareUnit; - - private Byte fareType; - - private Integer stationId; - - private Byte weightCheck; - + private String goodsCategoryName; + private String createTime; + private String orderStatus; + private String carNumber; + private String driverName; private String goodsName; - - private String companyName; - - private Integer transferSid; - - private Byte transferType; - - private Integer qualityPrice; - - private Integer elasticPrice; - - private Byte useRole; - - private Integer cube; - - private Integer transferUid; - - private Integer points; - - private String tspPhotos; - - private String zcPhotos; - + private String company; private String address; - - private BigDecimal lon; - - private BigDecimal lat; - - private BigDecimal km; - - private Integer transportUid; - - private Integer driverUid; - - - private Long dispatchTime; - - - private Long workTime; - - private Integer projectId; - - private Integer communityId; - + private String lon; + private String lat; + private String km; + private Integer finish; + private Integer carStatus; + private Integer status; } diff --git a/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/pojo/Project.java b/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/pojo/Project.java new file mode 100644 index 0000000..f63ae5e --- /dev/null +++ b/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/pojo/Project.java @@ -0,0 +1,22 @@ +package com.njzscloud.supervisory.statistics.pojo; + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import lombok.experimental.Accessors; + +@Getter +@Setter +@ToString +@Accessors(chain = true) +public class Project { + private String projectName; + private String area; + private String street; + private String address; + private String km; + private String realname; + private String mobile; + private Integer estimate; + private String projectStatus; +} diff --git a/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/service/SupervisionStatisticsService.java b/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/service/SupervisionStatisticsService.java index 4861e4b..df6359c 100644 --- a/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/service/SupervisionStatisticsService.java +++ b/njzscloud-svr/src/main/java/com/njzscloud/supervisory/statistics/service/SupervisionStatisticsService.java @@ -31,6 +31,7 @@ public class SupervisionStatisticsService { List companySummary = supervisionStatisticsMapper.getCompanySummary(); List stationInfo = supervisionStatisticsMapper.getStationInfo(); List orders = supervisionStatisticsMapper.getOrders(); + List projects = supervisionStatisticsMapper.getProjects(); return MapUtil.builder() .put("dispatchSummary", dispatchSummary == null ? new DispatchSummary() : dispatchSummary) @@ -42,6 +43,7 @@ public class SupervisionStatisticsService { .put("companySummary", companySummary == null ? new ArrayList<>() : companySummary) .put("stationInfo", stationInfo == null ? new ArrayList<>() : stationInfo) .put("orders", orders == null ? new ArrayList<>() : orders) + .put("projects", projects == null ? new ArrayList<>() : projects) .build(); } diff --git a/njzscloud-svr/src/main/resources/mapper/SupervisionStatisticsMapper.xml b/njzscloud-svr/src/main/resources/mapper/SupervisionStatisticsMapper.xml index b1a49b9..884f31a 100644 --- a/njzscloud-svr/src/main/resources/mapper/SupervisionStatisticsMapper.xml +++ b/njzscloud-svr/src/main/resources/mapper/SupervisionStatisticsMapper.xml @@ -103,86 +103,56 @@ + +