记得上下班打卡 | 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
8227b386
Commit
8227b386
authored
Feb 24, 2022
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sweet_applet_sub_msg 增加字段 union_id
parent
2c7e4965
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
6 deletions
+10
-6
ISweetAppletSubMsgService.java
...dnet/service/sweet/service/ISweetAppletSubMsgService.java
+1
-1
db_applet_push_20211122.sql
.../liquidnet-service-sweet/docu/db_applet_push_20211122.sql
+3
-1
SweetAppletSubMsgController.java
...service/sweet/controller/SweetAppletSubMsgController.java
+3
-1
SweetAppletSubMsgServiceImpl.java
...vice/sweet/service/impl/SweetAppletSubMsgServiceImpl.java
+2
-2
sqlmap.properties
...uidnet-service-sweet/src/main/resources/sqlmap.properties
+1
-1
No files found.
liquidnet-bus-api/liquidnet-service-sweet-api/src/main/java/com/liquidnet/service/sweet/service/ISweetAppletSubMsgService.java
View file @
8227b386
...
@@ -18,7 +18,7 @@ public interface ISweetAppletSubMsgService extends IService<SweetAppletSubMsg> {
...
@@ -18,7 +18,7 @@ public interface ISweetAppletSubMsgService extends IService<SweetAppletSubMsg> {
ResponseDto
sendOfMid
(
String
midList
,
String
targetId
,
Integer
timeType
);
ResponseDto
sendOfMid
(
String
midList
,
String
targetId
,
Integer
timeType
);
ResponseDto
<
Boolean
>
create
(
String
openId
,
String
templateId
,
String
targetId
,
Integer
appletType
,
Integer
activityType
);
ResponseDto
<
Boolean
>
create
(
String
openId
,
String
unionId
,
String
templateId
,
String
targetId
,
Integer
appletType
,
Integer
activityType
);
ResponseDto
<
Integer
>
isSubPerform
(
String
openId
,
String
targetId
);
ResponseDto
<
Integer
>
isSubPerform
(
String
openId
,
String
targetId
);
}
}
liquidnet-bus-service/liquidnet-service-sweet/docu/db_applet_push_20211122.sql
View file @
8227b386
...
@@ -17,4 +17,6 @@ CREATE TABLE `sweet_applet_sub_msg`
...
@@ -17,4 +17,6 @@ CREATE TABLE `sweet_applet_sub_msg`
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
utf8mb4
DEFAULT
CHARSET
utf8mb4
COLLATE
utf8mb4_unicode_ci
COLLATE
utf8mb4_unicode_ci
ROW_FORMAT
=
DYNAMIC
COMMENT
'小程序订阅消息记录表'
;
ROW_FORMAT
=
DYNAMIC
COMMENT
'小程序订阅消息记录表'
;
\ No newline at end of file
alter
table
sweet_applet_sub_msg
add
union_id
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'union_id'
after
open_id
;
\ No newline at end of file
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/SweetAppletSubMsgController.java
View file @
8227b386
...
@@ -66,6 +66,7 @@ public class SweetAppletSubMsgController {
...
@@ -66,6 +66,7 @@ public class SweetAppletSubMsgController {
@ApiOperation
(
"添加订阅记录"
)
@ApiOperation
(
"添加订阅记录"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"openId"
,
value
=
"对应小程序的openId"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"openId"
,
value
=
"对应小程序的openId"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"unionId"
,
value
=
"对应小程序的unionId"
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"templateId"
,
value
=
"模版消息ID,多个用英文逗号分割"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"templateId"
,
value
=
"模版消息ID,多个用英文逗号分割"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"targetId"
,
value
=
"演出id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"targetId"
,
value
=
"演出id"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"appletType"
,
value
=
"小程序类型 1草莓 2五百里 3mdsk 4正在 5跳飞船音乐节"
,
required
=
true
),
@ApiImplicitParam
(
type
=
"form"
,
dataType
=
"String"
,
name
=
"appletType"
,
value
=
"小程序类型 1草莓 2五百里 3mdsk 4正在 5跳飞船音乐节"
,
required
=
true
),
...
@@ -73,12 +74,13 @@ public class SweetAppletSubMsgController {
...
@@ -73,12 +74,13 @@ public class SweetAppletSubMsgController {
})
})
public
ResponseDto
<
Boolean
>
create
(
public
ResponseDto
<
Boolean
>
create
(
@RequestParam
()
String
openId
,
@RequestParam
()
String
openId
,
@RequestParam
(
defaultValue
=
""
)
String
unionId
,
@RequestParam
()
String
templateId
,
@RequestParam
()
String
templateId
,
@RequestParam
()
String
targetId
,
@RequestParam
()
String
targetId
,
@RequestParam
()
Integer
appletType
,
@RequestParam
()
Integer
appletType
,
@RequestParam
()
Integer
activityType
@RequestParam
()
Integer
activityType
)
{
)
{
return
subMsgService
.
create
(
openId
,
templateId
,
targetId
,
appletType
,
activityType
);
return
subMsgService
.
create
(
openId
,
unionId
,
templateId
,
targetId
,
appletType
,
activityType
);
}
}
@PostMapping
(
"isSubPerform"
)
@PostMapping
(
"isSubPerform"
)
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetAppletSubMsgServiceImpl.java
View file @
8227b386
...
@@ -160,7 +160,7 @@ public class SweetAppletSubMsgServiceImpl extends ServiceImpl<SweetAppletSubMsgM
...
@@ -160,7 +160,7 @@ public class SweetAppletSubMsgServiceImpl extends ServiceImpl<SweetAppletSubMsgM
}
}
@Override
@Override
public
ResponseDto
<
Boolean
>
create
(
String
openId
,
String
templateId
,
String
targetId
,
Integer
appletType
,
Integer
activityType
)
{
public
ResponseDto
<
Boolean
>
create
(
String
openId
,
String
unionId
,
String
templateId
,
String
targetId
,
Integer
appletType
,
Integer
activityType
)
{
String
[]
templateIdArray
=
templateId
.
split
(
","
);
String
[]
templateIdArray
=
templateId
.
split
(
","
);
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
...
@@ -168,7 +168,7 @@ public class SweetAppletSubMsgServiceImpl extends ServiceImpl<SweetAppletSubMsgM
...
@@ -168,7 +168,7 @@ public class SweetAppletSubMsgServiceImpl extends ServiceImpl<SweetAppletSubMsgM
sqls
.
add
(
SqlMapping
.
get
(
"sweet_applet_sub_msg.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"sweet_applet_sub_msg.insert"
));
for
(
String
id
:
templateIdArray
)
{
for
(
String
id
:
templateIdArray
)
{
sqlsDataA
.
add
(
new
Object
[]{
sqlsDataA
.
add
(
new
Object
[]{
IDGenerator
.
nextSnowId
(),
openId
,
id
,
targetId
,
appletType
,
activityType
IDGenerator
.
nextSnowId
(),
openId
,
unionId
,
id
,
targetId
,
appletType
,
activityType
});
});
}
}
queueUtils
.
sendMsgByRedis
(
MQConst
.
SweetQueue
.
SWEET_REMIND_INSERT
.
getKey
(),
queueUtils
.
sendMsgByRedis
(
MQConst
.
SweetQueue
.
SWEET_REMIND_INSERT
.
getKey
(),
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/resources/sqlmap.properties
View file @
8227b386
...
@@ -30,7 +30,7 @@ sweet_luck_draw.insert=INSERT INTO sweet_luck_draw (mobile,union_id,luck_draw_nu
...
@@ -30,7 +30,7 @@ sweet_luck_draw.insert=INSERT INTO sweet_luck_draw (mobile,union_id,luck_draw_nu
sweet_answer.insert
=
INSERT INTO sweet_answer (answer_id,phone,answer_json,img_url) VALUES (?,?,?,?)
sweet_answer.insert
=
INSERT INTO sweet_answer (answer_id,phone,answer_json,img_url) VALUES (?,?,?,?)
# --------------------------提醒记录--------------------------
# --------------------------提醒记录--------------------------
sweet_remind.insert
=
INSERT INTO sweet_remind (remind_id,openId,unionId,performancesId) VALUES (?,?,?,?)
sweet_remind.insert
=
INSERT INTO sweet_remind (remind_id,openId,unionId,performancesId) VALUES (?,?,?,?)
sweet_applet_sub_msg.insert
=
INSERT INTO sweet_applet_sub_msg (msg_id,open_id,
template_id,target_id,applet_type,activity_type) VALUES (
?,?,?,?,?,?)
sweet_applet_sub_msg.insert
=
INSERT INTO sweet_applet_sub_msg (msg_id,open_id,
union_id,template_id,target_id,applet_type,activity_type) VALUES (?,
?,?,?,?,?,?)
# --------------------------用户投票记录--------------------------
# --------------------------用户投票记录--------------------------
sweet_city_vote.insert
=
INSERT INTO sweet_city_vote (vote_id,phone,openId,unionId,type,city_code,city_name,day_time) VALUES (?,?,?,?,?,?,?,?)
sweet_city_vote.insert
=
INSERT INTO sweet_city_vote (vote_id,phone,openId,unionId,type,city_code,city_name,day_time) VALUES (?,?,?,?,?,?,?,?)
sweet_city_vote_stat.insert
=
INSERT INTO sweet_city_vote_stat (stat_id,city_code,city_name,vote_num,type) VALUES (?,?,?,?,?)
sweet_city_vote_stat.insert
=
INSERT INTO sweet_city_vote_stat (stat_id,city_code,city_name,vote_num,type) VALUES (?,?,?,?,?)
...
...
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