|
@@ -11,6 +11,7 @@ import com.diagbot.entity.ProductOrder;
|
|
|
import com.diagbot.entity.ServiceInfo;
|
|
|
import com.diagbot.entity.wrapper.OrderDetailsWapper;
|
|
|
import com.diagbot.enums.AuditStatusEnum;
|
|
|
+import com.diagbot.enums.PaymentMethodEnum;
|
|
|
import com.diagbot.enums.TokenTypeEnum;
|
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
|
import com.diagbot.exception.CommonException;
|
|
@@ -85,12 +86,13 @@ public class OrderDetailsFacade extends OrderDetailsServiceImpl {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
"审核状态修改失败");
|
|
|
}
|
|
|
+ orderDetails.setStatus(PaymentMethodEnum.PAY.getKey());
|
|
|
Long userId =Long.parseLong(UserUtils.getCurrentPrincipleID());
|
|
|
OpenedProducts openedProducts =new OpenedProducts();
|
|
|
openedProducts.setGmtCreate(DateUtil.now());
|
|
|
openedProducts.setCreator(UserUtils.getCurrentPrincipleID());
|
|
|
openedProducts.setProductId(orderDetails.getProductId());
|
|
|
- openedProducts.setUserId(userId);
|
|
|
+ openedProducts.setUserId(orderDetails.getUserId());
|
|
|
openedProducts.setStartTime(DateUtil.parseDate(auditStatusVO.getStartTime()));
|
|
|
openedProducts.setEndTime(DateUtil.parseDate(auditStatusVO.getEndTime()));
|
|
|
openedProducts.setOrderId(productOrder.getId());
|