✨ 司机端运单卡片补运输组织类型字段

DriverWaybillCardVO 加 transportOrgType,toCard 按运单是否带配载单号判定 common/load;司机端详情、首页当前任务与列表共用该出口
This commit is contained in:
2026-10-13 13:54:51 +08:00
parent ea1829cd75
commit 6fecc262b1
2 changed files with 8 additions and 0 deletions
@@ -150,6 +150,9 @@ public class DriverWaybillCardVO implements Serializable {
@Schema(description = "运输方式文案:公路运输等")
private String transportType;
@Schema(description = "运输组织:common普通 / load配载")
private String transportOrgType;
@Schema(description = "计划发货时间")
private String planShipTime;
@@ -102,6 +102,10 @@ public class DriverWaybillServiceImpl implements IDriverWaybillService {
private static final String STATUS_COMPLETED = "completed";
private static final String STATUS_CANCELLED = "cancelled";
/** 运输组织类型:运单有配载单号即配载(load),否则普通(common) */
private static final String TRANSPORT_COMMON = "common";
private static final String TRANSPORT_LOAD = "load";
/** 小程序「待接单」对应的后端业务状态 */
private static final List<String> PENDING_STATUSES = Arrays.asList(
STATUS_PENDING, STATUS_WAITING_DISPATCH, STATUS_DISPATCHING
@@ -734,6 +738,7 @@ public class DriverWaybillServiceImpl implements IDriverWaybillService {
card.setCargoQuantity(weightText);
card.setTotalWeight(weightText);
card.setTransportType(toTransportTypeLabel(waybill.getTransportType()));
card.setTransportOrgType(Func.isNotBlank(waybill.getLoadingNo()) ? TRANSPORT_LOAD : TRANSPORT_COMMON);
card.setPlanShipTime(formatLocalDateYmd(waybill.getEstimatedStartTime()));
card.setPlanFinishTime(formatLocalDateYmd(waybill.getEstimatedEndTime()));
card.setRemark(Func.toStr(waybill.getRemark(), ""));