记得上下班打卡 | 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
fbad7776
Commit
fbad7776
authored
Jul 18, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 热卖改回老逻辑,修改 dragon消费
parent
b2bdcea3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
KylinPerformancesController.java
...service/kylin/controller/KylinPerformancesController.java
+2
-2
MqHandleUtil.java
...java/com/liquidnet/service/dragon/utils/MqHandleUtil.java
+4
-3
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/KylinPerformancesController.java
View file @
fbad7776
...
@@ -85,8 +85,8 @@ public class KylinPerformancesController {
...
@@ -85,8 +85,8 @@ public class KylinPerformancesController {
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"type"
,
value
=
"type为1的时候合并巡演"
)
@ApiImplicitParam
(
type
=
"query"
,
dataType
=
"Integer"
,
name
=
"type"
,
value
=
"type为1的时候合并巡演"
)
})
})
public
ResponseDto
<
HashMap
<
String
,
Object
>>
noticeList
(
@RequestParam
(
defaultValue
=
""
)
Integer
type
)
{
public
ResponseDto
<
HashMap
<
String
,
Object
>>
noticeList
(
@RequestParam
(
defaultValue
=
""
)
Integer
type
)
{
HashMap
<
String
,
Object
>
result
=
kylinPerformancesService
.
noticeList
(
type
);
//
HashMap<String, Object> result = kylinPerformancesService.noticeList(type);
//
HashMap<String, Object> result = kylinPerformancesService.noticeListOld(type);
HashMap
<
String
,
Object
>
result
=
kylinPerformancesService
.
noticeListOld
(
type
);
return
ResponseDto
.
success
(
result
);
return
ResponseDto
.
success
(
result
);
}
}
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/dragon/utils/MqHandleUtil.java
View file @
fbad7776
package
com
.
liquidnet
.
service
.
dragon
.
utils
;
package
com
.
liquidnet
.
service
.
dragon
.
utils
;
import
com.liquidnet.common.cache.redis.util.RedisDataSourceUtil
;
import
com.liquidnet.service.base.SqlMapping
;
import
com.liquidnet.service.base.SqlMapping
;
import
com.liquidnet.service.dragon.bo.PayNotifyReqBo
;
import
com.liquidnet.service.dragon.bo.PayNotifyReqBo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -23,7 +24,7 @@ import java.util.LinkedList;
...
@@ -23,7 +24,7 @@ import java.util.LinkedList;
@Component
@Component
public
class
MqHandleUtil
{
public
class
MqHandleUtil
{
@Autowired
@Autowired
StringRedisTemplate
stringRedisTemplate
;
RedisDataSourceUtil
redisDataSourceUtil
;
/**
/**
* REDIS 队列发送消息 通知商户相关
* REDIS 队列发送消息 通知商户相关
...
@@ -35,7 +36,7 @@ public class MqHandleUtil {
...
@@ -35,7 +36,7 @@ public class MqHandleUtil {
HashMap
<
String
,
String
>
map
=
ObjectUtilDragon
.
cloneHashMapStringAndString
();
HashMap
<
String
,
String
>
map
=
ObjectUtilDragon
.
cloneHashMapStringAndString
();
map
.
put
(
"message"
,
payNotifyReqBo
.
toString
());
map
.
put
(
"message"
,
payNotifyReqBo
.
toString
());
MapRecord
<
String
,
String
,
String
>
record
=
StreamRecords
.
mapBacked
(
map
).
withStreamKey
(
queueKey
);
MapRecord
<
String
,
String
,
String
>
record
=
StreamRecords
.
mapBacked
(
map
).
withStreamKey
(
queueKey
);
stringRedisTemplate
.
opsForStream
().
add
(
record
);
redisDataSourceUtil
.
getRedisQueueUtil
().
getStringRedisTemplate
()
.
opsForStream
().
add
(
record
);
return
true
;
return
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
@@ -61,7 +62,7 @@ public class MqHandleUtil {
...
@@ -61,7 +62,7 @@ public class MqHandleUtil {
HashMap
<
String
,
String
>
map
=
ObjectUtilDragon
.
cloneHashMapStringAndString
();
HashMap
<
String
,
String
>
map
=
ObjectUtilDragon
.
cloneHashMapStringAndString
();
map
.
put
(
"message"
,
sqlData
);
map
.
put
(
"message"
,
sqlData
);
MapRecord
<
String
,
String
,
String
>
record
=
StreamRecords
.
mapBacked
(
map
).
withStreamKey
(
redisKey
);
MapRecord
<
String
,
String
,
String
>
record
=
StreamRecords
.
mapBacked
(
map
).
withStreamKey
(
redisKey
);
stringRedisTemplate
.
opsForStream
().
add
(
record
);
redisDataSourceUtil
.
getRedisQueueUtil
().
getStringRedisTemplate
()
.
opsForStream
().
add
(
record
);
return
true
;
return
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
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