| | |
| | | import com.oying.modules.sh.domain.vo.OrderResponse; |
| | | import com.oying.modules.sh.domain.vo.ProductInfo; |
| | | import com.oying.modules.sh.service.*; |
| | | import com.oying.service.PayConfigService; |
| | | import com.oying.utils.*; |
| | | import com.oying.utils.enums.*; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.oying.modules.sh.domain.dto.OrderQueryCriteria; |
| | | import com.oying.modules.sh.mapper.OrderMapper; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | private final StoreService storeService; |
| | | private final OrderOperationLogService operationLogService; |
| | | private final ProductInventoryService productInventoryService; |
| | | private final PayConfigService payConfigService; |
| | | @Value("${oying.enabled}") |
| | | private Boolean oyingEnabled; |
| | | private static final String DESCRIBE = "哦应:"; |
| | | private static final String ORDER_KEY = "oying:order"; |
| | | private static final String ORDER_STORE_KEY = "oying:order:store"; |
| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public synchronized Order submitOrder(SubmitOrder submit, HttpServletRequest request) { |
| | | submit.setPayType(payConfigService.findInfo(oyingEnabled)); |
| | | switch (submit.getPayType()) { |
| | | case HWC: |
| | | case HWC2: |