|
@@ -9,10 +9,7 @@ import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
import org.dromara.common.core.context.PlatformContext;
|
|
import org.dromara.common.core.context.PlatformContext;
|
|
|
-import org.dromara.common.core.enums.AssigneeTypeConstants;
|
|
|
|
|
-import org.dromara.common.core.enums.OrderAssignStatus;
|
|
|
|
|
-import org.dromara.common.core.enums.OrderSplitStatus;
|
|
|
|
|
-import org.dromara.common.core.enums.SysPlatformCode;
|
|
|
|
|
|
|
+import org.dromara.common.core.enums.*;
|
|
|
import org.dromara.common.core.exception.ServiceException;
|
|
import org.dromara.common.core.exception.ServiceException;
|
|
|
import org.dromara.common.core.utils.MapstructUtils;
|
|
import org.dromara.common.core.utils.MapstructUtils;
|
|
|
import org.dromara.common.core.utils.PlatformContextUtil;
|
|
import org.dromara.common.core.utils.PlatformContextUtil;
|
|
@@ -523,7 +520,7 @@ public class OrderAssignmentServiceImpl extends ServiceImpl<OrderAssignmentMappe
|
|
|
child.setOrderSource(parent.getOrderSource());
|
|
child.setOrderSource(parent.getOrderSource());
|
|
|
child.setProductQuantity(parent.getProductQuantity());
|
|
child.setProductQuantity(parent.getProductQuantity());
|
|
|
child.setQuantityShipped(parent.getQuantityShipped());
|
|
child.setQuantityShipped(parent.getQuantityShipped());
|
|
|
- child.setOrderStatus(parent.getOrderStatus()); // 继承状态,后续由子订单独立流转
|
|
|
|
|
|
|
+ child.setOrderStatus(OrderStatus.PENDING_CONFIRMATION.getCode()); // 子订单状态初始化为待确认 被分配者需要重新确认
|
|
|
child.setOrderTime(parent.getOrderTime());
|
|
child.setOrderTime(parent.getOrderTime());
|
|
|
child.setConfirmTime(parent.getConfirmTime());
|
|
child.setConfirmTime(parent.getConfirmTime());
|
|
|
child.setDeliveryType(parent.getDeliveryType());
|
|
child.setDeliveryType(parent.getDeliveryType());
|
|
@@ -532,7 +529,8 @@ public class OrderAssignmentServiceImpl extends ServiceImpl<OrderAssignmentMappe
|
|
|
child.setDataSource(parent.getDataSource());
|
|
child.setDataSource(parent.getDataSource());
|
|
|
child.setRemark(parent.getRemark());
|
|
child.setRemark(parent.getRemark());
|
|
|
child.setAttachmentPath(parent.getAttachmentPath());
|
|
child.setAttachmentPath(parent.getAttachmentPath());
|
|
|
-
|
|
|
|
|
|
|
+ child.setCreateBy(parent.getCreateBy());
|
|
|
|
|
+ child.setCreateDept(parent.getCreateDept());
|
|
|
// 新增分配字段
|
|
// 新增分配字段
|
|
|
child.setAssigneeId(assigneeId);
|
|
child.setAssigneeId(assigneeId);
|
|
|
child.setAssigneeType(assigneeType);
|
|
child.setAssigneeType(assigneeType);
|