|
|
@@ -18,6 +18,7 @@ import com.iformall.service.pay.service.pay.PayAdapterService; |
|
|
|
import com.iformall.service.pay.service.pay.entity.PayAdapterResult; |
|
|
|
import com.iformall.service.pay.service.pay.entity.PayQueryAdapterResult; |
|
|
|
import com.iformall.service.pay.service.refund.RefundPayAdapterService; |
|
|
|
import com.iformall.service.project.ProjectFactory; |
|
|
|
import com.iformall.utils.DateUtils; |
|
|
|
import com.iformall.utils.RedisLock; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
@@ -64,6 +65,9 @@ public class ProductOrderPayServiceImpl implements ProductOrderPayService { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
PayServiceFactory payServiceFactory; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
ProjectFactory projectFactory; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
RedisLock redisLock; |
|
|
@@ -265,12 +269,15 @@ public class ProductOrderPayServiceImpl implements ProductOrderPayService { |
|
|
|
productOrderMapper.orderPayUpdStatus(order); |
|
|
|
|
|
|
|
Product product = productMapper.selectById(order.getProductId()); |
|
|
|
if(EnumProductType.product_1.getCode().equals(product.getType())){ |
|
|
|
userBasicPropertyService.updUserGlod(order.getUserId(),product.getProjectType(),EnumPropertyLogType.RECHARGE.getCode(), |
|
|
|
order.getId(),product.getGlod(),now); |
|
|
|
}else if(EnumProductType.product_2.getCode().equals(product.getType())){ |
|
|
|
//todo 处理套餐 |
|
|
|
|
|
|
|
//智象 |
|
|
|
if (product.getProjectType().intValue() == EnumProject.PROJECT_5.getCode().intValue()) { |
|
|
|
if(EnumProductType.product_1.getCode().equals(product.getType())){ |
|
|
|
userBasicPropertyService.updUserGlod(order.getUserId(),product.getProjectType(),EnumPropertyLogType.RECHARGE.getCode(), |
|
|
|
order.getId(),product.getGlod(),now); |
|
|
|
}else if(EnumProductType.product_2.getCode().equals(product.getType())){ |
|
|
|
} |
|
|
|
}else { |
|
|
|
projectFactory.getProjectService(product.getProjectType()).handlePaidOrder(order.getUserId(),order.getFinalTenantId(),product); |
|
|
|
} |
|
|
|
}catch(MallinkException e){ |
|
|
|
throw e; |
|
|
|