Commit 93c909330109aa6678caa528805cf0be5e981e30
1 parent
7b2c0e2f
feat(*): 升级和对接新版会员
- 升级和对接新版会员
Showing
7 changed files
with
48 additions
and
5 deletions
fw-hestia-domain/src/main/java/cn/fw/hestia/domain/vo/HistoryQuery.java
1 | 1 | package cn.fw.hestia.domain.vo; |
2 | 2 | |
3 | 3 | import cn.fw.common.page.BasePageQuery; |
4 | +import cn.fw.common.web.annotation.PassportContextField; | |
4 | 5 | import lombok.Data; |
5 | 6 | import lombok.EqualsAndHashCode; |
6 | 7 | import lombok.ToString; |
... | ... | @@ -15,5 +16,9 @@ import lombok.ToString; |
15 | 16 | @ToString(callSuper = true) |
16 | 17 | @EqualsAndHashCode(callSuper = true) |
17 | 18 | public class HistoryQuery extends BasePageQuery { |
19 | + @PassportContextField(PassportContextField.Name.MEMBER_ID) | |
18 | 20 | private Long memberId; |
21 | + | |
22 | + @PassportContextField(PassportContextField.Name.ACCOUNT_ID) | |
23 | + private Long accId; | |
19 | 24 | } | ... | ... |
fw-hestia-server/src/main/java/cn/fw/hestia/server/controller/wx/MessageCenterController.java
... | ... | @@ -55,8 +55,7 @@ public class MessageCenterController { |
55 | 55 | |
56 | 56 | @GetMapping("/query/history") |
57 | 57 | @ControllerMethod("查询消息历史记录") |
58 | - public Message<AppPage<MessageHistoryVO>> queryHistory(@CurrentUser PassportAuthBean user, HistoryQuery query) { | |
59 | - query.setMemberId(user.getUserId()); | |
58 | + public Message<AppPage<MessageHistoryVO>> queryHistory(HistoryQuery query) { | |
60 | 59 | return success(messageCenterBizService.queryHistory(query)); |
61 | 60 | } |
62 | 61 | } | ... | ... |
fw-hestia-server/src/main/resources/application-dev.yml
... | ... | @@ -19,4 +19,6 @@ logging: |
19 | 19 | org.zalando.logbook: trace |
20 | 20 | nacos: |
21 | 21 | plugin: |
22 | - namespace: df959b8c-de58-4d02-b9fb-d65ca3be05f3 | |
23 | 22 | \ No newline at end of file |
23 | + namespace: df959b8c-de58-4d02-b9fb-d65ca3be05f3 | |
24 | +p6spy-db: | |
25 | + url: jdbc:p6spy:mysql://192.168.0.234:3306/fw_hestia?characterEncoding=UTF-8&useSSL=false&rewriteBatchedStatements=true | |
24 | 26 | \ No newline at end of file | ... | ... |
fw-hestia-server/src/main/resources/application-local.yml
... | ... | @@ -4,14 +4,27 @@ logging: |
4 | 4 | max-size: 1GB |
5 | 5 | level: |
6 | 6 | root: info |
7 | - cn.fw: DEBUG | |
7 | + cn.fw: info | |
8 | 8 | org.zalando.logbook: trace |
9 | 9 | nacos: |
10 | 10 | plugin: |
11 | 11 | namespace: df959b8c-de58-4b02-b9fb-d65ca3be05f3 |
12 | 12 | spring: |
13 | + cloud: | |
14 | + nacos: | |
15 | + discovery: | |
16 | + metadata: | |
17 | + grayTag: kurisu | |
18 | + inetutils: | |
19 | + preferred-networks: | |
20 | + - 10.8 | |
13 | 21 | application: |
14 | 22 | name: fw-hestia |
23 | + datasource: | |
24 | + hikari: | |
25 | + connection-test-query: '' | |
26 | + driver-class-name: com.p6spy.engine.spy.P6SpyDriver | |
27 | + url: ${p6spy-db.url} | |
15 | 28 | |
16 | 29 | task: |
17 | 30 | switch: 'off' | ... | ... |
fw-hestia-server/src/main/resources/application-test.yml
fw-hestia-server/src/main/resources/spy.properties
0 → 100644
1 | +#3.2.1???? | |
2 | +modulelist=com.baomidou.mybatisplus.extension.p6spy.MybatisPlusLogFactory,com.p6spy.engine.outage.P6OutageFactory | |
3 | +# ??????? | |
4 | +logMessageFormat=com.baomidou.mybatisplus.extension.p6spy.P6SpyLogger | |
5 | +#???????? | |
6 | +appender=com.baomidou.mybatisplus.extension.p6spy.StdoutLogger | |
7 | +# ???????? sql | |
8 | +#appender=com.p6spy.engine.spy.appender.Slf4JLogger | |
9 | +# ?? p6spy driver ?? | |
10 | +deregisterdrivers=true | |
11 | +# ??JDBC URL?? | |
12 | +useprefix=true | |
13 | +# ???? Log ??,????????error,info,batch,debug,statement,commit,rollback,result,resultset. | |
14 | +excludecategories=info,debug,result,commit,resultset | |
15 | +# ???? | |
16 | +dateformat=yyyy-MM-dd HH:mm:ss | |
17 | +# ??????? | |
18 | +#driverlist=org.h2.Driver | |
19 | +# ?????SQL?? | |
20 | +outagedetection=true | |
21 | +# ?SQL???? 2 ? | |
22 | +outagedetectioninterval=2 | ... | ... |