Bläddra i källkod

接送站添加代理商,

caotao 2 veckor sedan
förälder
incheckning
25fa2c1523

+ 1 - 0
ship-module-trade/ship-module-trade-biz/src/main/java/com/yc/ship/module/trade/controller/admin/orderjzdetail/OrderJzDetailController.java

@@ -224,6 +224,7 @@ public class OrderJzDetailController {
       OrderJzDetailExportVO vo = new OrderJzDetailExportVO();
       vo.setIndex(i + 1);
       vo.setOrderNo(detail.getOrderNo());
+      vo.setSourceName(detail.getSourceName());
       vo.setName(detail.getName());
       vo.setIdCard(detail.getIdCard());
       vo.setPhone(detail.getPhone());

+ 19 - 18
ship-module-trade/ship-module-trade-biz/src/main/java/com/yc/ship/module/trade/controller/admin/orderjzdetail/vo/OrderJzDetailExportVO.java

@@ -13,56 +13,57 @@ public class OrderJzDetailExportVO {
 
     @ExcelProperty(value = "订单编号", index = 1)
     private String orderNo;
-
-    @ExcelProperty(value = "站点", index = 2)
+    @ExcelProperty(value = "代理商", index = 2)
+    private String sourceName;
+    @ExcelProperty(value = "站点", index = 3)
     private String address;
 
-    @ExcelProperty(value = "接站时间", index = 3)
+    @ExcelProperty(value = "接站时间", index = 4)
     private String arriveTime;
 
-    @ExcelProperty(value = "姓名", index = 4)
+    @ExcelProperty(value = "姓名", index = 5)
     private String name;
 
-    @ExcelProperty(value = "证件号", index = 5)
+    @ExcelProperty(value = "证件号", index = 6)
     private String idCard;
 
-    @ExcelProperty(value = "联系电话", index = 6)
+    @ExcelProperty(value = "联系电话", index = 7)
     private String phone;
 
-    @ExcelProperty(value = "房型", index = 7)
+    @ExcelProperty(value = "房型", index = 8)
     private String roomModelName;
 
-    @ExcelProperty(value = "车次/航班号", index = 8)
+    @ExcelProperty(value = "车次/航班号", index = 9)
     private String remark;
 
-    @ExcelProperty(value = "核销时间", index = 9)
+    @ExcelProperty(value = "核销时间", index = 10)
     private String signTime;
 
-    @ExcelProperty(value = "分车号", index = 10)
+    @ExcelProperty(value = "分车号", index = 11)
     private String dispatchNo;
 
-    @ExcelProperty(value = "分车组团号", index = 11)
+    @ExcelProperty(value = "分车组团号", index = 12)
     private String groupNo;
 
-    @ExcelProperty(value = "车牌号", index = 12)
+    @ExcelProperty(value = "车牌号", index = 13)
     private String busNumber;
 
-    @ExcelProperty(value = "司机姓名", index = 13)
+    @ExcelProperty(value = "司机姓名", index = 14)
     private String driverName;
 
-    @ExcelProperty(value = "司机联系电话", index = 14)
+    @ExcelProperty(value = "司机联系电话", index = 15)
     private String driverPhone;
 
-    @ExcelProperty(value = "接站人员", index = 15)
+    @ExcelProperty(value = "接站人员", index = 16)
     private String receiverName;
 
-    @ExcelProperty(value = "接站人电话", index = 16)
+    @ExcelProperty(value = "接站人电话", index = 17)
     private String receiverPhone;
 
-    @ExcelProperty(value = "分车情况", index = 17)
+    @ExcelProperty(value = "分车情况", index = 18)
     private String dispatchRemark;
 
-    @ExcelProperty(value = "预约情况", index = 18)
+    @ExcelProperty(value = "预约情况", index = 19)
     private String reservationInfo;
 
 }

+ 3 - 0
ship-module-trade/ship-module-trade-biz/src/main/java/com/yc/ship/module/trade/controller/admin/orderjzdetail/vo/OrderJzDetailRespVO.java

@@ -72,6 +72,9 @@ public class OrderJzDetailRespVO {
     @Schema(description = "订单编号")
     private String orderNo;
 
+    @Schema(description = "代理商")
+    private String sourceName;
+
     @Schema(description = "分车号")
     private String dispatchNo;
 

+ 3 - 0
ship-module-trade/ship-module-trade-biz/src/main/java/com/yc/ship/module/trade/dal/dataobject/orderjzdetail/OrderJzDetailDO.java

@@ -143,4 +143,7 @@ public class OrderJzDetailDO extends BaseDO {
     @TableField(exist = false)
     private String dispatchRemark;
 
+    @TableField(exist = false)
+    private String sourceName;
+
 }

+ 3 - 2
ship-module-trade/ship-module-trade-biz/src/main/resources/mapper/orderjzdetail/OrderJzDetailMapper.xml

@@ -11,7 +11,8 @@
     <select id="selectPage2"
             resultType="com.yc.ship.module.trade.dal.dataobject.orderjzdetail.OrderJzDetailDO">
         select distinct d.* , r.direction , rm.name as room_model_name,
-        SUBSTRING_INDEX(o.order_no, '-', -1) as orderNo, dj.dispatch_no as dispatchNo, dj.group_no as groupNo,
+        o.order_no as orderNo, dj.dispatch_no as dispatchNo, dj.group_no as groupNo,
+        o.source_name as sourceName,
         dj.bus_number as busNumber, dj.driver_name as driverName, dj.driver_phone as driverPhone,
         dj.receiver_name as receiverName, dj.receiver_phone as receiverPhone, d.sign_remark as dispatchRemark
         from trade_order_jz_detail d
@@ -52,7 +53,7 @@
     <select id="selectVisitorExportList"
             resultType="com.yc.ship.module.trade.dal.dataobject.orderjzdetail.OrderJzDetailDO">
         select distinct d.* , r.direction , rm.name as room_model_name,
-        SUBSTRING_INDEX(o.order_no, '-', -1) as orderNo, dj.dispatch_no as dispatchNo, dj.group_no as groupNo, dj.bus_number as busNumber,dj.driver_name as driverName,dj.driver_phone as driverPhone,dj.receiver_name as receiverName,dj.receiver_phone as receiverPhone,d.sign_remark as dispatchRemark
+        o.order_no as orderNo,o.source_name as sourceName, dj.dispatch_no as dispatchNo, dj.group_no as groupNo, dj.bus_number as busNumber,dj.driver_name as driverName,dj.driver_phone as driverPhone,dj.receiver_name as receiverName,dj.receiver_phone as receiverPhone,d.sign_remark as dispatchRemark
         from trade_order_jz_detail d
         inner join trade_order_jz oz on d.jz_id = oz.id
         inner join trade_order o on o.deleted = 0 and o.id = oz.order_id

+ 3 - 2
ship-module-trade/ship-module-trade-biz/src/main/resources/mapper/report/VoyageStockBoardMapper.xml

@@ -400,10 +400,11 @@
     <select id="selectVoyageDataSummaryRoomList" resultType="java.util.HashMap">
         SELECT
             tor.voyage_id as voyageId,
-            torm.room_model_name as roomModelName,
+            rrm.short_name as roomModelName,
             SUM(COALESCE(torm.use_room_num, 0)) as roomNum
         FROM trade_order_room_model torm
         INNER JOIN trade_order tor ON torm.order_id = tor.id AND tor.deleted = 0
+        INNER JOIN resource_room_model rrm ON torm.room_model_id = rrm.id
         WHERE torm.deleted = 0
         AND tor.order_status IN (15, 14, 13, 10, 12, 9, 8, 7, 6, 5, 4, 3, 1, 0)
         AND torm.room_model_name IS NOT NULL
@@ -417,7 +418,7 @@
                 #{item}
             </foreach>
         </if>
-        GROUP BY tor.voyage_id, torm.room_model_name
+        GROUP BY tor.voyage_id, rrm.short_name
         ORDER BY SUM(COALESCE(torm.use_room_num, 0)) DESC
     </select>