Browse Source

fix: 航次日历图接口添加游轮简称字段

luofeiyun 1 week ago
parent
commit
6175ab31d1

+ 1 - 0
ship-module-product/ship-module-product-biz/src/main/java/com/yc/ship/module/product/controller/admin/voyage/VoyageController.java

@@ -141,6 +141,7 @@ public class VoyageController {
         Map<Long, RouteRespDTO> longRouteRespDTOMap = routeApi.queryRoute(routeIds);
         voyageRespVOS.stream().forEach(item -> {
             MapUtils.findAndThen(shipDOMap, item.getShipId(), shipDO -> item.setShipName(shipDO.getName()));
+            MapUtils.findAndThen(shipDOMap, item.getShipId(), shipDO -> item.setShortShipName(shipDO.getShortName()));
             MapUtils.findAndThen(longRouteRespDTOMap, item.getRouteId(), routeRespDTO -> {
                 item.setRouteResp(routeRespDTO);
                 item.setRouteName(routeRespDTO.getName());

+ 3 - 0
ship-module-product/ship-module-product-biz/src/main/java/com/yc/ship/module/product/controller/admin/voyage/vo/VoyageRespVO.java

@@ -112,6 +112,9 @@ public class VoyageRespVO {
     @Schema(description = "船名")
     private String shipName;
 
+    @Schema(description = "船名简称")
+    private String shortShipName;
+
     @Schema(description = "线路名称")
     private String routeName;