fix:签证增加加急回写

This commit is contained in:
lulz1 2024-07-11 10:52:42 +08:00
parent 2c0d4ab13a
commit 5ebc8607f9
7 changed files with 44 additions and 2 deletions

View File

@ -125,6 +125,10 @@ public class ScheduleDetail {
private String amountTypeName;
@JsonProperty("AmountTypeEnName")
private String amountTypeEnName;
@JsonProperty("AmountDescription")
private String amountDescription;
@JsonProperty("amountDescription")
private String amountDescription2;
@JsonProperty("ExpenseExplanation")
private String expenseExplanation;
@JsonProperty("OriginDescription")
@ -175,6 +179,17 @@ public class ScheduleDetail {
return this;
}
public ScheduleDetailBuilder amountDescription(String amountDescription) {
scheduleDetail.setAmountDescription(amountDescription);
return this;
}
public ScheduleDetailBuilder amountDescription2(String amountDescription2) {
scheduleDetail.setAmountDescription2(amountDescription2);
return this;
}
public ScheduleDetailBuilder originDescription(String originDescription) {
scheduleDetail.setOriginDescription(originDescription);
return this;

View File

@ -469,7 +469,16 @@ public class OrderQuery {
scheduleDetailBuilder
.locationList(locationList1.stream().map(LocationRes::copyFrom).toList());
}
Integer amountType = legExtensionField.getAmountType();
if (amountType != null && amountType.equals(LEG_OTHER_AMOUNT_TYPE_VISA)) {
scheduleDetailBuilder.amountDescription("类型:" +
legExtensionField.getExtension() + " 理由:" +
legExtensionField.getExpenseExplanation());
}
}
return scheduleDetailBuilder
.scheduleNum(leg.getLegNo())
.scheduleType(translateLegType(leg.getLegType()))

View File

@ -0,0 +1,5 @@
package com.chint.domain.aggregates.approval;
public enum ApprovalMethod {
NOTIFY, APPROVE
}

View File

@ -24,6 +24,8 @@ public abstract class ApprovalProcess {
public ApprovalType approvalType;
private ApprovalMethod approvalMethod;
public ApprovalProcess(ApprovalPlatform bpmPlatform) {
this.bpmPlatform = bpmPlatform;
}
@ -99,7 +101,6 @@ public abstract class ApprovalProcess {
// 通用的通知方法
public void notifyUser(String message) {
// 发送通知的逻辑
System.out.println("Notify user: " + message);
}

View File

@ -63,6 +63,10 @@ public class ApprovalRecord implements Serializable {
return 1;
}
public static Integer notifyApprovalStatus() {
return 2;
}
public static Integer rejectApprovalStatus() {
return -1;
}
@ -74,6 +78,9 @@ public class ApprovalRecord implements Serializable {
if (Objects.equals(this.approvalStatus, successApprovalStatus())) {
return "已通过";
}
if (Objects.equals(this.approvalStatus, notifyApprovalStatus())) {
return "已知会";
}
if (Objects.equals(this.approvalStatus, rejectApprovalStatus())) {
return "已驳回";
}

View File

@ -297,7 +297,10 @@ public class SupplierServiceImpl implements SupplierService {
orderEventType.equals(ORDER_EVENT_REFUND);
}
private List<RefundOrderGenerateCommand> handleSpecialEvent(OrderDetail orderDetail, OrderStatusChangeCommand command, Integer orderEventType, Object outOrderDetailData) {
private List<RefundOrderGenerateCommand> handleSpecialEvent(OrderDetail orderDetail,
OrderStatusChangeCommand command,
Integer orderEventType,
Object outOrderDetailData) {
// orderDetail.getExtensionDataByProductType();
//异步推送审批流
CompletableFuture.runAsync(() -> sendBPMAuditCommand(orderDetail, command, orderEventType));

View File

@ -33,6 +33,8 @@ public class LegConstant {
public static final String LEG_APPROVAL_STATUS_SUCCESS_NAME = "已通过";
public static final int LEG_APPROVAL_STATUS_REJECT = 3;
public static final String LEG_APPROVAL_STATUS_REJECT_NAME = "已驳回";
public static final int LEG_APPROVAL_STATUS_NOTIFY = 4;
public static final String LEG_APPROVAL_STATUS_NOTIFY_NAME = "已知会";
// 规划节点运输方式