记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
6d97bbc2
Commit
6d97bbc2
authored
Jul 28, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
2be89f87
570bd394
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
11777 additions
and
23 deletions
+11777
-23
AdamRedisConst.java
...a/com/liquidnet/service/adam/constant/AdamRedisConst.java
+3
-1
db_liquidnet_admin_data.sql
...quidnet-client-admin-web/docu/db_liquidnet_admin_data.sql
+2
-2
FeignKylinPerformanceClient.java
.../service/feign/kylin/api/FeignKylinPerformanceClient.java
+5
-0
AdamRdmService.java
...va/com/liquidnet/service/adam/service/AdamRdmService.java
+16
-0
AdamUserServiceImpl.java
...uidnet/service/adam/service/impl/AdamUserServiceImpl.java
+3
-1
NknameUtil.java
...main/java/com/liquidnet/service/adam/util/NknameUtil.java
+52
-0
library_nickname.csv
...dam-impl/src/main/resources/META-FIL/library_nickname.csv
+11614
-0
SweetConstant.java
...a/com/liquidnet/service/sweet/constant/SweetConstant.java
+2
-0
SweetLoginController.java
...uidnet/service/sweet/controller/SweetLoginController.java
+1
-2
SweetTemplateController.java
...net/service/sweet/controller/SweetTemplateController.java
+8
-16
SweetLoginServiceImpl.java
...net/service/sweet/service/impl/SweetLoginServiceImpl.java
+6
-1
SweetTemplateServiceImpl.java
.../service/sweet/service/impl/SweetTemplateServiceImpl.java
+16
-0
RedisDataUtils.java
...ava/com/liquidnet/service/sweet/utils/RedisDataUtils.java
+20
-0
SweetRemindVo.java
...in/java/com/liquidnet/service/sweet/vo/SweetRemindVo.java
+29
-0
No files found.
liquidnet-bus-api/liquidnet-service-adam-api/src/main/java/com/liquidnet/service/adam/constant/AdamRedisConst.java
View file @
6d97bbc2
...
@@ -18,7 +18,7 @@ public class AdamRedisConst {
...
@@ -18,7 +18,7 @@ public class AdamRedisConst {
public
static
final
String
INFO_TAGS_MUSIC
=
INFO
.
concat
(
"tags:music"
);
public
static
final
String
INFO_TAGS_MUSIC
=
INFO
.
concat
(
"tags:music"
);
public
static
final
String
INFO_USER
=
INFO
.
concat
(
"user:"
);
public
static
final
String
INFO_USER
=
INFO
.
concat
(
"user:"
);
public
static
final
String
INFO_USER_MEMBER
=
INFO
_USER
.
concat
(
"
member:"
);
public
static
final
String
INFO_USER_MEMBER
=
INFO
.
concat
(
"u
member:"
);
public
static
final
String
INFO_REAL_NAME
=
INFO
.
concat
(
"real_name:"
);
public
static
final
String
INFO_REAL_NAME
=
INFO
.
concat
(
"real_name:"
);
public
static
final
String
INFO_THIRD_PARTY
=
INFO
.
concat
(
"third_party:"
);
public
static
final
String
INFO_THIRD_PARTY
=
INFO
.
concat
(
"third_party:"
);
public
static
final
String
INFO_ENTERS
=
INFO
.
concat
(
"enters:"
);
public
static
final
String
INFO_ENTERS
=
INFO
.
concat
(
"enters:"
);
...
@@ -32,6 +32,8 @@ public class AdamRedisConst {
...
@@ -32,6 +32,8 @@ public class AdamRedisConst {
public
static
final
String
INFO_MEMBER_AGREEMENT
=
INFO
.
concat
(
"member:agreement"
);
public
static
final
String
INFO_MEMBER_AGREEMENT
=
INFO
.
concat
(
"member:agreement"
);
public
static
final
String
INFO_MEMBER_CODE
=
INFO
.
concat
(
"member:code:"
);
public
static
final
String
INFO_MEMBER_CODE
=
INFO
.
concat
(
"member:code:"
);
public
static
final
String
INFO_LIBRARY_NKNAME
=
INFO
.
concat
(
"library:nkname"
);
public
static
final
String
BLACK_LIST
=
ADAM
.
concat
(
"blacklist:"
);
public
static
final
String
BLACK_LIST
=
ADAM
.
concat
(
"blacklist:"
);
public
static
final
String
BLK_LIST_MEMBER_UID
=
BLACK_LIST
.
concat
(
"member:uid"
);
public
static
final
String
BLK_LIST_MEMBER_UID
=
BLACK_LIST
.
concat
(
"member:uid"
);
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/docu/db_liquidnet_admin_data.sql
View file @
6d97bbc2
...
@@ -13,14 +13,14 @@ INSERT INTO test_ln_scene.sys_menu (menu_id, menu_name, parent_id, order_num, ur
...
@@ -13,14 +13,14 @@ INSERT INTO test_ln_scene.sys_menu (menu_id, menu_name, parent_id, order_num, ur
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2007
,
'订单退款列表'
,
2006
,
0
,
'/kylin/refund'
,
'menuItem'
,
'C'
,
'0'
,
'1'
,
'kylin:refund:list'
,
'#'
,
'admin'
,
'2021-06-01 11:05:54'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2007
,
'订单退款列表'
,
2006
,
0
,
'/kylin/refund'
,
'menuItem'
,
'C'
,
'0'
,
'1'
,
'kylin:refund:list'
,
'#'
,
'admin'
,
'2021-06-01 11:05:54'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2009
,
'详情'
,
2007
,
0
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refund:detail'
,
'#'
,
'admin'
,
'2021-06-01 15:59:09'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2009
,
'详情'
,
2007
,
0
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refund:detail'
,
'#'
,
'admin'
,
'2021-06-01 15:59:09'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2012
,
'取消'
,
2007
,
1
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refund:cancel'
,
'#'
,
'admin'
,
'2021-06-02 16:48:35'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2012
,
'取消'
,
2007
,
1
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refund:cancel'
,
'#'
,
'admin'
,
'2021-06-02 16:48:35'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2013
,
'
拒绝后重新发起审核'
,
2007
,
2
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refund:re
apple'
,
'#'
,
'admin'
,
'2021-06-02 16:49:18'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2013
,
'
提交申请'
,
2007
,
2
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refund:
apple'
,
'#'
,
'admin'
,
'2021-06-02 16:49:18'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2014
,
'一审'
,
2007
,
3
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refund:review'
,
'#'
,
'admin'
,
'2021-06-02 16:50:17'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2014
,
'一审'
,
2007
,
3
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refund:review'
,
'#'
,
'admin'
,
'2021-06-02 16:50:17'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2015
,
'二审'
,
2007
,
4
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refund:execute'
,
'#'
,
'admin'
,
'2021-06-02 16:50:44'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2015
,
'二审'
,
2007
,
4
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refund:execute'
,
'#'
,
'admin'
,
'2021-06-02 16:50:44'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2016
,
'主动完成退款'
,
2007
,
5
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refund:completed'
,
'#'
,
'admin'
,
'2021-06-02 16:53:42'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2016
,
'主动完成退款'
,
2007
,
5
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refund:completed'
,
'#'
,
'admin'
,
'2021-06-02 16:53:42'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2008
,
'演出退款管理'
,
2006
,
1
,
'/kylin/refundBatch'
,
'menuItem'
,
'C'
,
'0'
,
'1'
,
'kylin:refundBatch:list'
,
'#'
,
'admin'
,
'2021-06-01 11:07:19'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2008
,
'演出退款管理'
,
2006
,
1
,
'/kylin/refundBatch'
,
'menuItem'
,
'C'
,
'0'
,
'1'
,
'kylin:refundBatch:list'
,
'#'
,
'admin'
,
'2021-06-01 11:07:19'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2018
,
'详情'
,
2008
,
0
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refundBatch:detail'
,
'#'
,
'admin'
,
'2021-06-03 19:21:53'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2018
,
'详情'
,
2008
,
0
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refundBatch:detail'
,
'#'
,
'admin'
,
'2021-06-03 19:21:53'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2019
,
'取消'
,
2008
,
1
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refundBatch:cancel'
,
'#'
,
'admin'
,
'2021-06-03 19:22:25'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2019
,
'取消'
,
2008
,
1
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refundBatch:cancel'
,
'#'
,
'admin'
,
'2021-06-03 19:22:25'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2020
,
'
拒绝后重新发起审核'
,
2008
,
2
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refundBatch:re
apply'
,
'#'
,
'admin'
,
'2021-06-03 19:22:55'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2020
,
'
提交申请'
,
2008
,
2
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refundBatch:
apply'
,
'#'
,
'admin'
,
'2021-06-03 19:22:55'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2021
,
'一审'
,
2008
,
3
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refundBatch:review'
,
'#'
,
'admin'
,
'2021-06-03 19:23:27'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2021
,
'一审'
,
2008
,
3
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refundBatch:review'
,
'#'
,
'admin'
,
'2021-06-03 19:23:27'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2022
,
'二审'
,
2008
,
4
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refundBatch:execute'
,
'#'
,
'admin'
,
'2021-06-03 19:23:52'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2022
,
'二审'
,
2008
,
4
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:refundBatch:execute'
,
'#'
,
'admin'
,
'2021-06-03 19:23:52'
,
''
,
null
,
''
);
...
...
liquidnet-bus-feign/liquidnet-api-feign-kylin/src/main/java/com/liquidnet/service/feign/kylin/api/FeignKylinPerformanceClient.java
View file @
6d97bbc2
...
@@ -6,6 +6,7 @@ import feign.hystrix.FallbackFactory;
...
@@ -6,6 +6,7 @@ import feign.hystrix.FallbackFactory;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.List
;
import
java.util.List
;
...
@@ -19,4 +20,8 @@ public interface FeignKylinPerformanceClient {
...
@@ -19,4 +20,8 @@ public interface FeignKylinPerformanceClient {
// 演出列表
// 演出列表
@GetMapping
(
value
=
"kylin/performance/list"
)
@GetMapping
(
value
=
"kylin/performance/list"
)
ResponseDto
<
List
<
KylinPerformanceVo
>>
performanceList
(
@RequestParam
(
"performancesIds"
)
String
...
performancesIds
);
ResponseDto
<
List
<
KylinPerformanceVo
>>
performanceList
(
@RequestParam
(
"performancesIds"
)
String
...
performancesIds
);
// 演出详情
@GetMapping
(
"kylin/performance/{performancesId}"
)
ResponseDto
<
KylinPerformanceVo
>
detail
(
@PathVariable
(
"performancesId"
)
String
performancesId
);
}
}
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/java/com/liquidnet/service/adam/service/AdamRdmService.java
View file @
6d97bbc2
...
@@ -4,6 +4,7 @@ import com.liquidnet.common.cache.redis.util.RedisUtil;
...
@@ -4,6 +4,7 @@ import com.liquidnet.common.cache.redis.util.RedisUtil;
import
com.liquidnet.commons.lang.util.SensitizeUtil
;
import
com.liquidnet.commons.lang.util.SensitizeUtil
;
import
com.liquidnet.service.adam.constant.AdamRedisConst
;
import
com.liquidnet.service.adam.constant.AdamRedisConst
;
import
com.liquidnet.service.adam.dto.vo.*
;
import
com.liquidnet.service.adam.dto.vo.*
;
import
com.liquidnet.service.adam.util.NknameUtil
;
import
com.liquidnet.service.kylin.constant.KylinRedisConst
;
import
com.liquidnet.service.kylin.constant.KylinRedisConst
;
import
com.liquidnet.service.kylin.dto.vo.mongo.KylinPerformanceVo
;
import
com.liquidnet.service.kylin.dto.vo.mongo.KylinPerformanceVo
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -17,6 +18,7 @@ import org.springframework.util.CollectionUtils;
...
@@ -17,6 +18,7 @@ import org.springframework.util.CollectionUtils;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Optional
;
import
java.util.Optional
;
...
@@ -30,11 +32,25 @@ public class AdamRdmService {
...
@@ -30,11 +32,25 @@ public class AdamRdmService {
@Autowired
@Autowired
RedisUtil
redisUtil
;
RedisUtil
redisUtil
;
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | Switch config */
public
Integer
getSwitch
(
String
rk
)
{
public
Integer
getSwitch
(
String
rk
)
{
Integer
i
=
(
Integer
)
redisUtil
.
get
(
rk
);
Integer
i
=
(
Integer
)
redisUtil
.
get
(
rk
);
return
null
==
i
?
1
:
i
;
return
null
==
i
?
1
:
i
;
}
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | Loader meta-fil */
public
List
<
String
>
getNknameList
()
{
ArrayList
<
String
>
list
=
(
ArrayList
<
String
>)
redisUtil
.
get
(
AdamRedisConst
.
INFO_LIBRARY_NKNAME
);
if
(
CollectionUtils
.
isEmpty
(
list
))
{
list
=
NknameUtil
.
readForStringList
();
if
(!
CollectionUtils
.
isEmpty
(
list
))
redisUtil
.
set
(
AdamRedisConst
.
INFO_LIBRARY_NKNAME
,
list
);
}
return
list
;
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <Mobile, SMS CODE> */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | <Mobile, SMS CODE> */
public
boolean
setSmsCodeByMobile
(
String
mobile
,
String
smsCode
)
{
public
boolean
setSmsCodeByMobile
(
String
mobile
,
String
smsCode
)
{
...
...
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/java/com/liquidnet/service/adam/service/impl/AdamUserServiceImpl.java
View file @
6d97bbc2
...
@@ -22,6 +22,7 @@ import com.mongodb.client.model.ReturnDocument;
...
@@ -22,6 +22,7 @@ import com.mongodb.client.model.ReturnDocument;
import
com.mongodb.client.result.DeleteResult
;
import
com.mongodb.client.result.DeleteResult
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.RandomStringUtils
;
import
org.apache.commons.lang3.RandomStringUtils
;
import
org.apache.commons.lang3.RandomUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.bson.Document
;
import
org.bson.Document
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
...
@@ -81,7 +82,8 @@ public class AdamUserServiceImpl implements IAdamUserService {
...
@@ -81,7 +82,8 @@ public class AdamUserServiceImpl implements IAdamUserService {
userInfoVo
=
AdamUserInfoVo
.
getNew
();
userInfoVo
=
AdamUserInfoVo
.
getNew
();
userInfoVo
.
setUid
(
IDGenerator
.
nextSnowId
()
+
""
);
userInfoVo
.
setUid
(
IDGenerator
.
nextSnowId
()
+
""
);
userInfoVo
.
setMobile
(
mobile
);
userInfoVo
.
setMobile
(
mobile
);
userInfoVo
.
setNickname
(
"Now_"
.
concat
(
RandomStringUtils
.
randomAlphanumeric
(
3
)).
concat
(
mobile
.
substring
(
6
)));
List
<
String
>
nknameList
=
adamRdmService
.
getNknameList
();
userInfoVo
.
setNickname
(
"宇航员"
.
concat
(
nknameList
.
get
(
RandomUtils
.
nextInt
(
0
,
nknameList
.
size
()))));
userInfoVo
.
setIsComplete
(
0
);
userInfoVo
.
setIsComplete
(
0
);
userInfoVo
.
setState
(
1
);
userInfoVo
.
setState
(
1
);
userInfoVo
.
setQrCode
(
"lN"
.
concat
(
userInfoVo
.
getUid
()).
concat
(
RandomStringUtils
.
randomAlphanumeric
(
5
).
toUpperCase
()));
userInfoVo
.
setQrCode
(
"lN"
.
concat
(
userInfoVo
.
getUid
()).
concat
(
RandomStringUtils
.
randomAlphanumeric
(
5
).
toUpperCase
()));
...
...
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/java/com/liquidnet/service/adam/util/NknameUtil.java
0 → 100644
View file @
6d97bbc2
package
com
.
liquidnet
.
service
.
adam
.
util
;
import
com.liquidnet.commons.lang.util.CollectionUtil
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
java.io.BufferedReader
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.InputStreamReader
;
import
java.nio.charset.StandardCharsets
;
import
java.util.ArrayList
;
public
class
NknameUtil
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
NknameUtil
.
class
);
public
static
ArrayList
<
String
>
readForStringList
()
{
ArrayList
<
String
>
nknameList
=
CollectionUtil
.
arrayListString
();
InputStream
inputStream
=
null
;
InputStreamReader
inputStreamReader
=
null
;
BufferedReader
bufferedReader
=
null
;
try
{
inputStream
=
NknameUtil
.
class
.
getClassLoader
().
getResourceAsStream
(
"META-FIL/library_nickname.csv"
);
inputStreamReader
=
new
InputStreamReader
(
inputStream
,
StandardCharsets
.
UTF_8
);
bufferedReader
=
new
BufferedReader
(
inputStreamReader
);
String
line
;
while
((
line
=
bufferedReader
.
readLine
())
!=
null
)
{
int
l
=
StringUtils
.
length
(
line
);
if
(
l
==
0
)
{
break
;
}
if
(
l
>
11
)
{
line
=
line
.
substring
(
0
,
11
);
}
nknameList
.
add
(
line
);
}
}
catch
(
IOException
e
)
{
log
.
error
(
"Read CSV[library_nickname.csv] failure."
,
e
);
}
finally
{
try
{
if
(
null
!=
bufferedReader
)
bufferedReader
.
close
();
if
(
null
!=
inputStreamReader
)
inputStreamReader
.
close
();
if
(
null
!=
inputStream
)
inputStream
.
close
();
}
catch
(
IOException
e
)
{
log
.
error
(
"Close stream failure."
,
e
);
}
}
return
nknameList
;
}
}
\ No newline at end of file
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/resources/META-FIL/library_nickname.csv
0 → 100644
View file @
6d97bbc2
This diff is collapsed.
Click to expand it.
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/constant/SweetConstant.java
View file @
6d97bbc2
...
@@ -13,6 +13,8 @@ public class SweetConstant {
...
@@ -13,6 +13,8 @@ public class SweetConstant {
public
final
static
String
REDIS_KEY_SWEET_ARTISTS_RELATION
=
"sweet:artists:relation:uid:"
;
public
final
static
String
REDIS_KEY_SWEET_ARTISTS_RELATION
=
"sweet:artists:relation:uid:"
;
public
final
static
String
REDIS_KEY_SWEET_REMIND
=
"sweet:remind:unionId:"
;
public
enum
ManualPosition
{
public
enum
ManualPosition
{
POSITION_1
(
"艺人"
),
POSITION_1
(
"艺人"
),
POSITION_2
(
"签售时间"
),
POSITION_2
(
"签售时间"
),
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/SweetLoginController.java
View file @
6d97bbc2
...
@@ -34,8 +34,7 @@ public class SweetLoginController {
...
@@ -34,8 +34,7 @@ public class SweetLoginController {
@RequestParam
()
String
iv
,
@RequestParam
()
String
iv
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
type
@RequestParam
(
defaultValue
=
"1"
)
Integer
type
)
{
)
{
sweetLoginService
.
userInfo
(
code
,
encryptedData
,
iv
,
type
);
return
sweetLoginService
.
userInfo
(
code
,
encryptedData
,
iv
,
type
);
return
ResponseDto
.
success
();
}
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/SweetTemplateController.java
View file @
6d97bbc2
...
@@ -7,10 +7,7 @@ import io.swagger.annotations.ApiImplicitParam;
...
@@ -7,10 +7,7 @@ import io.swagger.annotations.ApiImplicitParam;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
@Api
(
tags
=
"公众号模版消息"
)
@Api
(
tags
=
"公众号模版消息"
)
@RestController
@RestController
...
@@ -21,7 +18,7 @@ public class SweetTemplateController {
...
@@ -21,7 +18,7 @@ public class SweetTemplateController {
private
SweetTemplateServiceImpl
sweetTemplateService
;
private
SweetTemplateServiceImpl
sweetTemplateService
;
@GetMapping
(
"send"
)
@GetMapping
(
"send"
)
@ApiOperation
(
"
code获取用户信
息"
)
@ApiOperation
(
"
发送模版消
息"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"code"
,
value
=
"微信code"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"code"
,
value
=
"微信code"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"encryptedData"
,
value
=
"encryptedData"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"encryptedData"
,
value
=
"encryptedData"
,
required
=
true
),
...
@@ -38,22 +35,17 @@ public class SweetTemplateController {
...
@@ -38,22 +35,17 @@ public class SweetTemplateController {
return
ResponseDto
.
success
();
return
ResponseDto
.
success
();
}
}
@
Ge
tMapping
(
"remind"
)
@
Pos
tMapping
(
"remind"
)
@ApiOperation
(
"提醒记录"
)
@ApiOperation
(
"提醒记录"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"code"
,
value
=
"微信code"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"unionId"
,
value
=
"微信unionId"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"encryptedData"
,
value
=
"encryptedData"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"performancesId"
,
value
=
"演出ID"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"String"
,
name
=
"iv"
,
value
=
"iv"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"type"
,
value
=
"1草莓 2五百里 3mdsk"
),
})
})
public
ResponseDto
remind
(
public
ResponseDto
remind
(
@RequestParam
()
String
code
,
@RequestParam
()
String
unionId
,
@RequestParam
()
String
encryptedData
,
@RequestParam
()
String
performancesId
@RequestParam
()
String
iv
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
type
)
{
)
{
sweetTemplateService
.
sendMsg
();
return
sweetTemplateService
.
remind
(
unionId
,
performancesId
);
return
ResponseDto
.
success
();
}
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetLoginServiceImpl.java
View file @
6d97bbc2
...
@@ -12,6 +12,7 @@ import org.apache.commons.lang3.StringUtils;
...
@@ -12,6 +12,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.HashMap
;
import
java.util.Objects
;
import
java.util.Objects
;
/**
/**
...
@@ -82,7 +83,11 @@ public class SweetLoginServiceImpl {
...
@@ -82,7 +83,11 @@ public class SweetLoginServiceImpl {
String
unionId
=
sessionInfo
.
getUnionid
();
String
unionId
=
sessionInfo
.
getUnionid
();
String
openId
=
sessionInfo
.
getOpenid
();
String
openId
=
sessionInfo
.
getOpenid
();
return
ResponseDto
.
success
();
HashMap
userInfo
=
new
HashMap
();
userInfo
.
put
(
"unionId"
,
unionId
);
userInfo
.
put
(
"openId"
,
openId
);
return
ResponseDto
.
success
(
userInfo
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
();
return
ResponseDto
.
failure
();
}
}
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetTemplateServiceImpl.java
View file @
6d97bbc2
package
com
.
liquidnet
.
service
.
sweet
.
service
.
impl
;
package
com
.
liquidnet
.
service
.
sweet
.
service
.
impl
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.feign.kylin.api.FeignKylinPerformanceClient
;
import
com.liquidnet.service.kylin.dto.vo.mongo.KylinPerformanceVo
;
import
com.liquidnet.service.sweet.utils.RedisDataUtils
;
import
me.chanjar.weixin.common.error.WxErrorException
;
import
me.chanjar.weixin.common.error.WxErrorException
;
import
me.chanjar.weixin.mp.api.WxMpService
;
import
me.chanjar.weixin.mp.api.WxMpService
;
import
me.chanjar.weixin.mp.api.impl.WxMpServiceImpl
;
import
me.chanjar.weixin.mp.api.impl.WxMpServiceImpl
;
...
@@ -8,6 +11,7 @@ import me.chanjar.weixin.mp.bean.template.WxMpTemplateData;
...
@@ -8,6 +11,7 @@ import me.chanjar.weixin.mp.bean.template.WxMpTemplateData;
import
me.chanjar.weixin.mp.bean.template.WxMpTemplateMessage
;
import
me.chanjar.weixin.mp.bean.template.WxMpTemplateMessage
;
import
me.chanjar.weixin.mp.config.WxMpConfigStorage
;
import
me.chanjar.weixin.mp.config.WxMpConfigStorage
;
import
me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl
;
import
me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -27,6 +31,12 @@ public class SweetTemplateServiceImpl {
...
@@ -27,6 +31,12 @@ public class SweetTemplateServiceImpl {
@Value
(
"${liquidnet.wechat.zhengzai.service.secret}"
)
@Value
(
"${liquidnet.wechat.zhengzai.service.secret}"
)
private
String
secret
;
private
String
secret
;
@Autowired
private
RedisDataUtils
redisDataUtils
;
@Autowired
private
FeignKylinPerformanceClient
feignKylinPerformanceClient
;
public
ResponseDto
send
(
String
openId
,
String
templateId
)
{
public
ResponseDto
send
(
String
openId
,
String
templateId
)
{
// 发送模板消息接口
// 发送模板消息接口
WxMpTemplateMessage
templateMessage
=
WxMpTemplateMessage
.
builder
()
WxMpTemplateMessage
templateMessage
=
WxMpTemplateMessage
.
builder
()
...
@@ -74,4 +84,10 @@ public class SweetTemplateServiceImpl {
...
@@ -74,4 +84,10 @@ public class SweetTemplateServiceImpl {
service
.
setWxMpConfigStorage
(
mpConfig
);
service
.
setWxMpConfigStorage
(
mpConfig
);
return
service
;
return
service
;
}
}
public
ResponseDto
remind
(
String
unionId
,
String
performancesId
)
{
ResponseDto
<
KylinPerformanceVo
>
performanceVo
=
feignKylinPerformanceClient
.
detail
(
performancesId
);
redisDataUtils
.
setSweetRemind
(
unionId
,
performancesId
);
return
ResponseDto
.
success
();
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/utils/RedisDataUtils.java
View file @
6d97bbc2
...
@@ -9,6 +9,7 @@ import com.liquidnet.service.sweet.dto.SweetManualAppletDto;
...
@@ -9,6 +9,7 @@ import com.liquidnet.service.sweet.dto.SweetManualAppletDto;
import
com.liquidnet.service.sweet.dto.SweetManualArtistList2Dto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistList2Dto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistListDto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistListDto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistStageListDto
;
import
com.liquidnet.service.sweet.dto.SweetManualArtistStageListDto
;
import
com.liquidnet.service.sweet.vo.SweetRemindVo
;
import
com.liquidnet.service.sweet.entity.SweetManualNotify
;
import
com.liquidnet.service.sweet.entity.SweetManualNotify
;
import
com.liquidnet.service.sweet.entity.SweetManualSort
;
import
com.liquidnet.service.sweet.entity.SweetManualSort
;
import
com.liquidnet.service.sweet.entity.SweetRichtext
;
import
com.liquidnet.service.sweet.entity.SweetRichtext
;
...
@@ -226,4 +227,23 @@ public class RedisDataUtils {
...
@@ -226,4 +227,23 @@ public class RedisDataUtils {
return
(
SweetArtistsRelationVo
)
obj
;
return
(
SweetArtistsRelationVo
)
obj
;
}
}
}
}
// 小程序演出提醒
public
void
setSweetRemind
(
String
unionId
,
String
performancesId
)
{
String
redisKey
=
SweetConstant
.
REDIS_KEY_SWEET_REMIND
.
concat
(
unionId
);
SweetRemindVo
sweetRemindVo
=
SweetRemindVo
.
getNew
();
sweetRemindVo
.
setCreatedAt
(
DateUtil
.
getNowTime
());
sweetRemindVo
.
setPerformancesId
(
performancesId
);
sweetRemindVo
.
setUnionId
(
unionId
);
/*String redisKeyPer = KylinRedisConst.PERFORMANCES.concat(performancesId);
KylinPerformanceVo perInfo = (KylinPerformanceVo) redisUtil.get(redisKeyPer);
if (null != perInfo) {
sweetRemindVo.setFieldName(perInfo.getFieldName());
sweetRemindVo.setTitle(perInfo.getTitle());
sweetRemindVo.setTimeStart(perInfo.getTimeStart());
sweetRemindVo.setSellTime(perInfo.getSellTime());
}*/
redisUtil
.
set
(
redisKey
,
sweetRemindVo
);
}
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/vo/SweetRemindVo.java
0 → 100644
View file @
6d97bbc2
package
com
.
liquidnet
.
service
.
sweet
.
vo
;
import
lombok.Data
;
import
java.io.Serializable
;
@Data
public
class
SweetRemindVo
implements
Serializable
,
Cloneable
{
private
String
performancesId
;
private
String
unionId
;
private
String
title
;
private
String
timeStart
;
private
String
sellTime
;
private
String
fieldName
;
private
String
createdAt
;
private
String
updatedAt
;
private
static
final
SweetRemindVo
obj
=
new
SweetRemindVo
();
public
static
SweetRemindVo
getNew
()
{
try
{
return
(
SweetRemindVo
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
SweetRemindVo
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment