Commit a87647f1 authored by suhuiguang's avatar suhuiguang

1.报检推送自测修改

parent b3669623
......@@ -3,6 +3,7 @@ server.servlet.context-path=/jg
server.port=11007
spring.profiles.active=dev
spring.feign.client.config.default.clockSkew=0m
spring.jackson.time-zone=GMT+8
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
logging.config=classpath:logback-${spring.profiles.active}.xml
......@@ -138,8 +139,8 @@ spring.security.user.password=a1234560
spring.security.user.roles=SBA_ADMIN
## \u540E\u53F0\u6267\u884C\u673A\u5668\u4EBA\u8D26\u53F7\u914D\u7F6E
amos.system.user.user-name=robot_admin
amos.system.user.password=a1234567
amos.system.user.user-name=jyjg04
amos.system.user.password=a1234560
amos.system.user.app-key=AMOS_STUDIO
amos.system.user.product=AMOS_STUDIO_WEB
......
......@@ -291,7 +291,7 @@ public class JyjcInspectionApplicationController extends BaseController {
return ResponseHelper.buildResponse(jyjcInspectionApplicationServiceImpl.listByCategory(page, equipClassify));
}
@TycloudOperation(ApiLevel = UserType.AGENCY,needAuth = false)
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET", value = "报检信息推送测试", notes = "报检信息推送测试")
@GetMapping(value = "/test-push")
public void pushTest(
......
......@@ -97,7 +97,7 @@ public class InspectionApplicationPushEventListener implements ApplicationListen
/**
* 报检推送主题, 第一位为接收单位标识
*/
private String INSPECTION_APPLICATION_PUSH_TOPIC = "%s_INSPECTION_APPLICATION_TOPIC";
private final String INSPECTION_APPLICATION_PUSH_TOPIC = "%s_INSPECTION_APPLICATION_TOPIC";
@Override
......
......@@ -5,6 +5,9 @@ import org.springframework.context.ApplicationEventPublisher;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
/**
* @author Administrator
*/
@Component
public class EventPublisher {
private ApplicationEventPublisher publisher;
......
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