提交 eb605b68 作者: JQW

项目导入

上级
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>clb-boot-parent</artifactId>
<groupId>com.zzsn.clb</groupId>
<version>2.4.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>jxyq</artifactId>
<packaging>pom</packaging>
<modules>
<module>service-web</module>
</modules>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>jxyq</artifactId>
<groupId>com.zzsn.clb</groupId>
<version>2.4.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>service-web</artifactId>
<dependencies>
<dependency>
<groupId>com.zzsn.clb</groupId>
<artifactId>jeecg-boot-base-core</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-quartz</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--引入微服务启动依赖 starter-->
<dependency>
<groupId>com.zzsn.clb</groupId>
<artifactId>jeecg-boot-starter-cloud</artifactId>
</dependency>
<dependency>
<groupId>com.zzsn.clb</groupId>
<artifactId>clb-common</artifactId>
<version>2.4.3</version>
</dependency>
<!-- es-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
<version>2.2.6.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
<version>3.2.6.RELEASE</version>
</dependency>
<!-- druid -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>${druid.version}</version>
</dependency>
<!-- 动态数据源 -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
<version>${dynamic-datasource-spring-boot-starter.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>
</project>
package com.zzsn.clb;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.jmx.support.RegistrationPolicy;
/**
* @author zhang ya nuo
* @Description TODO
* @since 2021/5/27
*/
@SpringBootApplication(scanBasePackages = {"org.jeecg", "com.zzsn.clb"})
@EnableFeignClients(basePackages = {"org.jeecg","com.zzsn.clb"})
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
@MapperScan(value={"com.zzsn.clb.**.mapper*"})
public class ServiceWebApplication {
public static void main(String[] args) {
SpringApplication.run(ServiceWebApplication.class, args);
}
}
package com.zzsn.clb.fegin;
import org.jeecg.common.api.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
/**
* 常规feign接口定义
*/
@FeignClient(value = "service-project")
@Component
public interface IServiceProjectClient {
/**
* 根据专题类型id查询数据
* @param id
* @return
*/
Result<?> getListBySubjectType(@RequestParam(required = true) String id);
/**
* 根据专题id查询数据
* @param id
* @return
*/
Result<?> getSubjectById(@RequestParam(required = true) String id);
/**
* 根据信息id查询数据
* @param id
* @return
*/
Result<?> getListBySubject(@RequestParam(required = true) String id);
}
package com.zzsn.clb.web.controller;
import com.zzsn.clb.fegin.IServiceProjectClient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* @Description: 根据专题获取信息
* @Author: jeecg-boot
* @Date: 2023-02-17
* @Version: V1.0
*/
@Slf4j
@Api(tags="对标分析菜单数据配置")
@RestController
@RequestMapping("/")
public class SubjectController {
@Resource
IServiceProjectClient serviceProjectClient;
/**
* 根据专题类型id查询数据
* @param id
* @return
*/
@AutoLog(value = "根据专题类型id查询数据")
@ApiOperation(value="根据专题类型id查询数据", notes="根据专题类型id查询数据")
@GetMapping(value = "/getListBySubjectType")
public Result<?> getListBySubjectType(@RequestParam(required = true) String id)
{
return serviceProjectClient.getListBySubjectType(id);
}
/**
* 根据专题id查询数据
* @param id
* @return
*/
@AutoLog(value = "根据专题id查询数据")
@ApiOperation(value="根据专题id查询数据", notes="根据专题id查询数据")
@GetMapping(value = "/getListBySubject")
public Result<?> getListBySubject(@RequestParam(required = true) String id)
{
return serviceProjectClient.getListBySubject(id);
}
/**
* 根据信息id查询数据
* @param id
* @return
*/
@AutoLog(value = "根据信息id查询数据")
@ApiOperation(value="根据信息id查询数据", notes="根据信息id查询数据")
@GetMapping(value = "/getSubjectById")
public Result<?> getSubjectById(@RequestParam(required = true) String id)
{
return serviceProjectClient.getSubjectById(id);
}
}
server:
port: 7060
spring:
application:
name: service-web
profiles:
# 当前激活环境
active: @profile.name@
cloud:
#配置Bus id(远程推送事件)
bus:
id: ${spring.application.name}:${server.port}
nacos:
config:
# Nacos 认证用户
username: nacos
# Nacos 认证密码
password: nacos
# 命名空间 常用场景之一是不同环境的配置的区分隔离,例如开发测试环境和生产环境的资源(如配置、服务)隔离等
namespace: @config.namespace@
# 配置中心地址
server-addr: @config.server-addr@
extension-configs[0]:
data‐id: clb-common-0.yaml
group: clb-common
refresh: true
extension-configs[1]:
data‐id: clb-common.yaml
group: clb-common
refresh: true
discovery:
namespace: @config.namespace@
server-addr: @config.server-addr@
watch:
enabled: true
#调用企业微信
wechat:
#企业Id
# corpid: ww187217d77e086f26
corpid: wwb740436999b352d1
#应用私钥
# corpsecret: HCZiXELtruFLkKloV6oGzgkIJjdbFcnwQ8dt2F7jAXU
corpsecret: BXd67p291P2WNiUczw_h8rq-5_2SooIphrHsOw3KGOM
#通讯录私钥
# txlsecret: PfTu5mlzpMG3czuR7NzsOSj79rcQJg6sDp3fOyduTTE
txlsecret: O36wWk8oM_GY98FuyTKX0kKYEgCeN4Rdo4zPDALcWmY
#应用ID
# agentId: 1000002
agentId: 1000019
#获取token地址
accessTokenUrl: https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=CORPID&corpsecret=CORPSECRET
#发送消息地址
sendMessageUrl: https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=
#用户 所有人 ,可指定人员 例如 WangPeng|ZhangShuo123
userId: "@all"
# #获取用户id地址
getUseridUrl: https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token=
# #获取访问用户身份
# getUserInfoUrl: https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&code=CODE
# #获取企业的jsapi_ticket
# getJsapiTicketUrl: https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket?access_token=ACCESS_TOKEN
# #获取部门列表地址(企业微信api地址)
getDepartmentListUrl: https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=
# #获取企业成员地址(企业微信api地址)
getUserListUrl: https://qyapi.weixin.qq.com/cgi-bin/user/list_id?access_token=
task:
cron:
#专题预警每天1点开始执行
subject: 0 9 1 * * ?
#信息源预警每天 1点执行
infosource: 0 20 1 * * ?
#从es采集库中统计每个信息源当天每小采集量,一小时跑一次
staticByHour: 0 3 */1 * * ?
#统计前7天的采集量,每天 1点执行
staticByDays: 0 10 1 * * ?
#定时发送微信消息
sendWechatMsg: 0 0 8 * * ?
#fdfs:
# so-timeout: 1501 # 读取时间
# connect-timeout: 11601 #连接超时时间
# thumb-image: #缩略图
# height: 60
# width: 60
# tracker-list:
# 114.115.215.96:22122
<License>
<Data>
<Products>
<Product>Aspose.Total for Java</Product>
<Product>Aspose.Words for Java</Product>
</Products>
<EditionType>Enterprise</EditionType>
<SubscriptionExpiry>20991231</SubscriptionExpiry>
<LicenseExpiry>20991231</LicenseExpiry>
<SerialNumber>8bfe198c-7f0c-4ef8-8ff0-acc3237bf0d7</SerialNumber>
</Data>
<Signature>sNLLKGMUdF0r8O1kKilWAGdgfs2BvJb/2Xp8p5iuDVfZXmhppo+d0Ran1P9TKdjV4ABwAgKXxJ3jcQTqE/2IRfqwnPf8itN8aFZlV3TJPYeD3yWE7IT55Gz6EijUpC7aKeoohTb4w2fpox58wWoF3SNp6sK6jDfiAUGEHYJ9pjU=</Signature>
</License>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论