fix: 修改包名,模块名。

This commit is contained in:
tianyongbao
2025-01-15 22:06:44 +08:00
parent ab3f319823
commit 34ccd2ed25
874 changed files with 3328 additions and 5344 deletions

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.intc</groupId>
<artifactId>intc-api</artifactId>
<version>3.6.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>intc-api-invest</artifactId>
<description>
intc-api-invest
</description>
<dependencies>
<!-- RuoYi Common Core-->
<dependency>
<groupId>com.intc</groupId>
<artifactId>intc-common-core</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,81 @@
package com.intc.api.invest;
import com.intc.common.core.constant.ServiceNameConstants;
import com.intc.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* 基础服务
*
* @author YaphetS
*/
@FeignClient(contextId = "remoteInvestProdService", value = ServiceNameConstants.INTC_INVEST_PROD, fallbackFactory = com.intc.api.invest.factory.RemoteInvestProdFallbackFactory.class)
public interface RemoteInvestProdService
{
/**
* 生成未出信用卡账单数据
*
* @return 结果
*/
@RequestMapping(value = "/job/generateUnpaidCreditBill",method = RequestMethod.POST)
public R generateUnpaidCreditBillTask();
/**
* 更新未出信用卡分期账单入账数据
*
* @return 结果
*/
@RequestMapping(value = "/job/updateUnpaidInstallmentData",method = RequestMethod.POST)
public R updateUnpaidInstallmentDataTask();
/**
* 生成未出投资账单数据
*
* @return 结果
*/
@RequestMapping(value = "/job/generateFutureStocksBill",method = RequestMethod.POST)
public R generateFutureStocksBill();
/**
* 批量修改用户随机预约的时间
*
* @return 结果
*/
@RequestMapping(value = "/job/updateUserMinuteBatch",method = RequestMethod.POST)
public R updateUserMinuteBatch();
/**
* 11点期间每分钟执行一次批量获得旅行奖励
*
* @return 结果
*/
@RequestMapping(value = "/job/getTravelRewardBatch",method = RequestMethod.POST)
public R getTravelRewardBatch();
/**
* 9点期间每分钟执行一次预约茅台
*
* @return 结果
*/
@RequestMapping(value = "/job/reservationBatchTask",method = RequestMethod.POST)
public R reservationBatchTask();
/**
* 更新茅台版本,门店列表,预约商品列表
*
* @return 结果
*/
@RequestMapping(value = "/job/refreshAll",method = RequestMethod.POST)
public R refreshAll();
/**
* 18.05分获取申购结果
*
* @return 结果
*/
@RequestMapping(value = "/job/appointmentResults",method = RequestMethod.POST)
public R appointmentResults();
}

View File

@@ -0,0 +1,79 @@
package com.intc.api.invest;
import com.intc.common.core.constant.ServiceNameConstants;
import com.intc.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
/**
* 基础服务
*
* @author YaphetS
*/
@FeignClient(contextId = "remoteInvestService", value = ServiceNameConstants.INTC_INVEST, fallbackFactory = com.intc.api.invest.factory.RemoteInvestFallbackFactory.class)
public interface RemoteInvestService
{
/**
* 生成未出信用卡账单数据
*
* @return 结果
*/
@RequestMapping(value = "/job/generateUnpaidCreditBill",method = RequestMethod.POST)
public R generateUnpaidCreditBillTask();
/**
* 更新未出信用卡分期账单入账数据
*
* @return 结果
*/
@RequestMapping(value = "/job/updateUnpaidInstallmentData",method = RequestMethod.POST)
public R updateUnpaidInstallmentDataTask();
/**
* 更新未出信用卡分期账单入账数据
*
* @return 结果
*/
@RequestMapping(value = "/job/generateFutureStocksBill",method = RequestMethod.POST)
public R generateFutureStocksBill();
/**
* 批量修改用户随机预约的时间
*
* @return 结果
*/
@RequestMapping(value = "/job/updateUserMinuteBatch",method = RequestMethod.POST)
public R updateUserMinuteBatch();
/**
* 11点期间每分钟执行一次批量获得旅行奖励
*
* @return 结果
*/
@RequestMapping(value = "/job/getTravelRewardBatch",method = RequestMethod.POST)
public R getTravelRewardBatch();
/**
* 9点期间每分钟执行一次预约茅台
*
* @return 结果
*/
@RequestMapping(value = "/job/reservationBatchTask",method = RequestMethod.POST)
public R reservationBatchTask();
/**
* 更新茅台版本,门店列表,预约商品列表
*
* @return 结果
*/
@RequestMapping(value = "/job/refreshAll",method = RequestMethod.POST)
public R refreshAll();
/**
* 18.05分获取申购结果
*
* @return 结果
*/
@RequestMapping(value = "/job/appointmentResults",method = RequestMethod.POST)
public R appointmentResults();
}

View File

@@ -0,0 +1,69 @@
package com.intc.api.invest.factory;
import com.intc.api.invest.RemoteInvestService;
import com.intc.common.core.domain.R;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;
/**
* 用户服务降级处理
*
* @author ruoyi
*/
@Component
public class RemoteInvestFallbackFactory implements FallbackFactory<RemoteInvestService>
{
private static final Logger log = LoggerFactory.getLogger(com.intc.api.invest.factory.RemoteInvestFallbackFactory.class);
@Override
public RemoteInvestService create(Throwable throwable)
{
log.error("投资服务调用失败:{}", throwable.getMessage());
return new RemoteInvestService()
{
@Override
public R generateUnpaidCreditBillTask() {
return R.fail("投资服务调用生成未出信用卡账单数据失败");
}
@Override
public R updateUnpaidInstallmentDataTask() {
return R.fail("投资服务调用更新未出信用卡分期账单入账数据失败");
}
@Override
public R generateFutureStocksBill() {
return R.fail("投资服务调用生成未出投资账单数据失败");
}
@Override
public R updateUserMinuteBatch() {
return R.fail("投资服务调用批量修改用户随机预约的时间失败");
}
@Override
public R getTravelRewardBatch() {
return R.fail("投资服务调用每分钟执行一次批量获得旅行奖励失败");
}
@Override
public R reservationBatchTask() {
return R.fail("投资服务调用每分钟执行一次预约茅台失败");
}
@Override
public R refreshAll() {
return R.fail("投资服务调用更新茅台版本、门店列表、预约商品列表失败");
}
@Override
public R appointmentResults() {
return R.fail("投资服务调用获取申购结果失败");
}
};
}
}

View File

@@ -0,0 +1,69 @@
package com.intc.api.invest.factory;
import com.intc.api.invest.RemoteInvestProdService;
import com.intc.common.core.domain.R;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;
/**
* 用户服务降级处理
*
* @author ruoyi
*/
@Component
public class RemoteInvestProdFallbackFactory implements FallbackFactory<RemoteInvestProdService>
{
private static final Logger log = LoggerFactory.getLogger(RemoteInvestProdFallbackFactory.class);
@Override
public RemoteInvestProdService create(Throwable throwable)
{
log.error("投资服务调用失败:{}", throwable.getMessage());
return new RemoteInvestProdService()
{
@Override
public R generateUnpaidCreditBillTask() {
return R.fail("投资服务调用生成未出信用卡账单数据失败");
}
@Override
public R updateUnpaidInstallmentDataTask() {
return R.fail("投资服务调用更新未出信用卡分期账单入账数据失败");
}
@Override
public R generateFutureStocksBill() {
return R.fail("投资服务调用生成未出投资账单数据失败");
}
@Override
public R updateUserMinuteBatch() {
return R.fail("投资服务调用批量修改用户随机预约的时间失败");
}
@Override
public R getTravelRewardBatch() {
return R.fail("投资服务调用每分钟执行一次批量获得旅行奖励失败");
}
@Override
public R reservationBatchTask() {
return R.fail("投资服务调用每分钟执行一次预约茅台失败");
}
@Override
public R refreshAll() {
return R.fail("投资服务调用更新茅台版本、门店列表、预约商品列表失败");
}
@Override
public R appointmentResults() {
return R.fail("投资服务调用获取申购结果失败");
}
};
}
}

View File

@@ -0,0 +1,2 @@
com.intc.api.invest.factory.RemoteInvestFallbackFactory
com.intc.api.invest.factory.RemoteInvestProdFallbackFactory