Commit 0bdd5b54 authored by chenzhao's avatar chenzhao

代码同步

parent 9eac2ec1
...@@ -214,4 +214,79 @@ public interface WorkflowFeignService { ...@@ -214,4 +214,79 @@ public interface WorkflowFeignService {
*/ */
@RequestMapping(value = "/activitiHistory/getTaskListForTaskName/{taskName}/{definitionKey}",method = RequestMethod.GET) @RequestMapping(value = "/activitiHistory/getTaskListForTaskName/{taskName}/{definitionKey}",method = RequestMethod.GET)
JSONObject getTaskListForTaskName(@PathVariable String taskName,@PathVariable String definitionKey) throws Exception ; JSONObject getTaskListForTaskName(@PathVariable String taskName,@PathVariable String definitionKey) throws Exception ;
/*
//// * 发起流程
//// **/
@RequestMapping(value = "/task/startTask", method = RequestMethod.POST)
JSONObject getTaskAssignDB( @RequestBody JSONObject variables);
/*
* 任务详情
**/
@RequestMapping(value = "/task/{taskId}", method = RequestMethod.GET)
JSONObject queryTaskDB(@PathVariable("taskId") String taskId);
/*
* 发起流程
**/
@RequestMapping(value = "/task/startProcess", method = RequestMethod.POST)
JSONObject startByVariableDB( @RequestBody HashMap<String, Object> variables);
/*
* 所有已执行任务详情
**/
@RequestMapping(value = "/activitiHistory/task/detail/{taskId}", method = RequestMethod.GET)
JSONObject queryHistoryTaskDetailDB(@PathVariable("taskId") String taskId);
/*
* 我的待办
**/
@RequestMapping(value = "/task", method = RequestMethod.POST)
JSONObject getTaskDB(@RequestParam(value="processInstanceId", required = false) String processInstanceId);
/*
* 我的待办
**/
@RequestMapping(value = "/task/all-list", method = RequestMethod.GET)
JSONObject getTaskAssignDB(@RequestParam(value="userId", required=false) String userId,
@RequestParam(value="processDefinitionKey", required=false) String processDefinitionKey);
/*
* 我的待办
**/
@RequestMapping(value = "/task/all-list", method = RequestMethod.GET)
JSONObject getTaskAssignDBuser(
@RequestParam(value="processDefinitionKey", required=false) String processDefinitionKey);
/*
* 所有已执行任务详情
**/
@RequestMapping(value = "/activitiHistory/all-historytasks", method = RequestMethod.GET)
JSONObject queryAllHistoryTasksDB(@RequestParam(value="processDefinitionKey", required=false) String processDefinitionKey,
@RequestParam(value="userId", required=false) String username);
/*
* 所有已执行任务详情
**/
@RequestMapping(value = "/activitiHistory/all-historytasks", method = RequestMethod.GET)
JSONObject queryAllHistoryTasksDBuser(@RequestParam(value="processDefinitionKey", required=false) String processDefinitionKey
);
/*
* 所有已执行任务
**/
@RequestMapping(value = "/task/pickupAndCompleteTask/{taskID}", method = RequestMethod.POST)
JSONObject pickupAndCompleteTaskDB(@PathVariable("taskID") String taskID,
@RequestBody(required = false) JSONObject variable);
/*
* 查询当前流程对应的可执行任务,无权限级别
**/
@RequestMapping(value = "/task/getTaskNoAuth/{processInstanceId}", method = RequestMethod.GET)
JSONObject queryTaskNoAuthDB(@PathVariable("processInstanceId") String processInstanceId);
/*
* 我的待办
**/
@RequestMapping(value = "/task/list/all/{instanceId}", method = RequestMethod.GET)
JSONObject getTaskListDB(@PathVariable("instanceId") String instanceId);
} }
...@@ -16,7 +16,7 @@ import lombok.Getter; ...@@ -16,7 +16,7 @@ import lombok.Getter;
@AllArgsConstructor @AllArgsConstructor
public enum ConfigPageTopicEnum { public enum ConfigPageTopicEnum {
INTEGRATE("INTEGRATE_TOPIC/#", "集成页面统配主题"); INTEGRATE("$share/AMOS-EQUIPMANAGE/INTEGRATE_TOPIC/#", "集成页面统配主题");
private String topic; private String topic;
......
...@@ -122,8 +122,8 @@ public class EquipmentIotMqttReceiveConfig { ...@@ -122,8 +122,8 @@ public class EquipmentIotMqttReceiveConfig {
list.add(defaultTopic); list.add(defaultTopic);
} }
list.addAll(ConfigPageTopicEnum.getEnumTopicList()); //大屏数据推送接口订阅 list.addAll(ConfigPageTopicEnum.getEnumTopicList()); //大屏数据推送接口订阅
list.add("+/+/property"); // 添加iot車輛裝備數據上報事件监听 list.add("$share/AMOS-EQUIPMANAGE/+/+/property"); // 添加iot車輛裝備數據上報事件监听
list.add("+/+/event"); // 添加iot事件监听 list.add("$share/AMOS-EQUIPMANAGE/+/+/event"); // 添加iot事件监听
String[] arr = list.toArray(new String[list.size()]); String[] arr = list.toArray(new String[list.size()]);
adapter = new MqttPahoMessageDrivenChannelAdapter(clientId + "_inbound", mqttPahoClientFactory(), arr); adapter = new MqttPahoMessageDrivenChannelAdapter(clientId + "_inbound", mqttPahoClientFactory(), arr);
adapter.setCompletionTimeout(completionTimeout); adapter.setCompletionTimeout(completionTimeout);
......
...@@ -89,6 +89,14 @@ dcs.x.hw.appKey=s+YkvQhwilx91TRJHhNDmw== ...@@ -89,6 +89,14 @@ dcs.x.hw.appKey=s+YkvQhwilx91TRJHhNDmw==
# 故障告警/消防告警/跑马灯权限标识 true 机场 / false 电力 # 故障告警/消防告警/跑马灯权限标识 true 机场 / false 电力
equip.enabled =true equip.enabled =true
management.security.enabled=true
endpoints.enabled=false
endpoints.health.enabled=true
management.endpoint.health.show-details=never
spring.security.user.name=admin
spring.security.user.password=a1234560
#management.endpoints.enabled-by-default=false #management.endpoints.enabled-by-default=false
## 增加接口文档验证 ## 增加接口文档验证
......
...@@ -55,7 +55,7 @@ param.safetyIndexChange.cron = 0 0 2 * * ? ...@@ -55,7 +55,7 @@ param.safetyIndexChange.cron = 0 0 2 * * ?
param.weather.url = http://wthrcdn.etouch.cn/weather_mini?citykey= param.weather.url = http://wthrcdn.etouch.cn/weather_mini?citykey=
# 只用于初始化 # 只用于初始化
emqx.defaultTopic=mqtt_topic emqx.defaultTopic=$share/-${spring.application.name}/mqtt_topic
## 规则配置(风险管控及预案) ## 规则配置(风险管控及预案)
rule.definition.load=false rule.definition.load=false
......
...@@ -39,8 +39,6 @@ spring.liquibase.enabled= false ...@@ -39,8 +39,6 @@ spring.liquibase.enabled= false
## eureka properties: ## eureka properties:
eureka.client.registry-fetch-interval-seconds=5 eureka.client.registry-fetch-interval-seconds=5
eureka.instance.prefer-ip-address=true eureka.instance.prefer-ip-address=true
management.endpoint.health.show-details=always
management.endpoints.web.exposure.include=*
eureka.instance.health-check-url-path=/actuator/health eureka.instance.health-check-url-path=/actuator/health
eureka.instance.lease-expiration-duration-in-seconds=10 eureka.instance.lease-expiration-duration-in-seconds=10
eureka.instance.lease-renewal-interval-in-seconds=5 eureka.instance.lease-renewal-interval-in-seconds=5
...@@ -131,11 +129,10 @@ knife4j.basic.enable=true ...@@ -131,11 +129,10 @@ knife4j.basic.enable=true
knife4j.basic.username= admin knife4j.basic.username= admin
knife4j.basic.password= yeejoin@2020 knife4j.basic.password= yeejoin@2020
management.security.enabled=true
endpoints.enabled=false
#阿里云实时语音识别参数 endpoints.health.enabled=true
speech-config.access-key-id=LTAI5t62oH95jgbjRiNXPsho management.endpoint.health.show-details=always
speech-config.access-key-secret=shy9SpogYgcdDoyTB3bvP21VSRmz8n management.endpoints.web.exposure.include=*
speech-config.app-key=FC84bGUpbNFrexoL spring.security.user.name=admin
spring.security.user.password=a1234560
mqtt.topic.command.car.jw=carCoordinates \ No newline at end of file
\ No newline at end of file
...@@ -33,7 +33,7 @@ import org.springframework.scheduling.annotation.EnableAsync; ...@@ -33,7 +33,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@EnableFeignClients @EnableFeignClients
@EnableAsync @EnableAsync
@EnableEurekaClient @EnableEurekaClient
@ComponentScan({"org.typroject","com.yeejoin.amos"}) @ComponentScan({"com.yeejoin.amos"})
public class JpushApplication { public class JpushApplication {
private static final Logger logger = LoggerFactory.getLogger(JpushApplication.class); private static final Logger logger = LoggerFactory.getLogger(JpushApplication.class);
......
package com.yeejoin.amos.jpush.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@Configuration
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
// 授权
@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable()
.headers()
.frameOptions()
.disable()
.and()
.authorizeRequests()
.regexMatchers("^(?!/actuator).*$").permitAll()
.regexMatchers("/actuator/health").permitAll()
.regexMatchers("/actuator/info").permitAll()
.anyRequest().authenticated().and()
.formLogin();
}
}
...@@ -13,6 +13,10 @@ ...@@ -13,6 +13,10 @@
<packaging>pom</packaging> <packaging>pom</packaging>
<dependencies> <dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
</dependencies> </dependencies>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment