pull/1121/head
liujiang 2025-10-09 22:17:10 +08:00
commit 625019f09f
4 changed files with 14 additions and 0 deletions

View File

@ -2555,6 +2555,9 @@ CREATE TABLE `store_order_detail`
KEY `idx_eid_ewno` (`express_id`,`express_waybill_no`) USING BTREE KEY `idx_eid_ewno` (`express_id`,`express_waybill_no`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='代发订单明细'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='代发订单明细';
ALTER TABLE `store_order_detail`
ADD COLUMN `delivery_over_time` datetime NULL COMMENT '发货完成时间' AFTER `refund_reject_reason`;
DROP TABLE IF EXISTS `store_order_operation_record`; DROP TABLE IF EXISTS `store_order_operation_record`;
CREATE TABLE `store_order_operation_record` CREATE TABLE `store_order_operation_record`
( (

View File

@ -7,6 +7,7 @@ import lombok.EqualsAndHashCode;
import lombok.ToString; import lombok.ToString;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
/** /**
* *
@ -114,6 +115,10 @@ public class StoreOrderDetail extends SimpleEntity {
* 退 * 退
*/ */
private String refundRejectReason; private String refundRejectReason;
/**
*
*/
private Date deliveryOverTime;
/** /**
* *
*/ */

View File

@ -113,6 +113,10 @@ public class StoreOrderDetailDTO {
* 退 * 退
*/ */
private String refundRejectReason; private String refundRejectReason;
/**
*
*/
private Date deliveryOverTime;
/** /**
* 0 2 * 0 2
*/ */

View File

@ -856,6 +856,7 @@ public class StoreOrderServiceImpl implements IStoreOrderService {
for (StoreOrderDetail orderDetail : orderDetails) { for (StoreOrderDetail orderDetail : orderDetails) {
//明细->已发货 //明细->已发货
orderDetail.setDetailStatus(EOrderStatus.SHIPPED.getValue()); orderDetail.setDetailStatus(EOrderStatus.SHIPPED.getValue());
orderDetail.setDeliveryOverTime(new Date());
int orderDetailSuccess = storeOrderDetailMapper.updateById(prepareUpdate(orderDetail)); int orderDetailSuccess = storeOrderDetailMapper.updateById(prepareUpdate(orderDetail));
if (orderDetailSuccess == 0) { if (orderDetailSuccess == 0) {
throw new ServiceException(Constants.VERSION_LOCK_ERROR_COMMON_MSG); throw new ServiceException(Constants.VERSION_LOCK_ERROR_COMMON_MSG);
@ -938,6 +939,7 @@ public class StoreOrderServiceImpl implements IStoreOrderService {
} }
//明细->已发货 //明细->已发货
orderDetail.setDetailStatus(EOrderStatus.SHIPPED.getValue()); orderDetail.setDetailStatus(EOrderStatus.SHIPPED.getValue());
orderDetail.setDeliveryOverTime(new Date());
orderDetail.setExpressId(expressId); orderDetail.setExpressId(expressId);
orderDetail.setExpressType(EExpressType.STORE.getValue()); orderDetail.setExpressType(EExpressType.STORE.getValue());
orderDetail.setExpressStatus(EExpressStatus.COMPLETED.getValue()); orderDetail.setExpressStatus(EExpressStatus.COMPLETED.getValue());