记得上下班打卡 | 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
bc3a1155
Commit
bc3a1155
authored
Jul 31, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
3ec31878
a521cbda
Changes
16
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
273 additions
and
222 deletions
+273
-222
PlatformDMController.java
...ervice/platform/controller/adam/PlatformDMController.java
+87
-169
KylinCheckUserPartnerController.java
...m/controller/partner/KylinCheckUserPartnerController.java
+1
-1
DataMigrationProcessorService.java
...m/service/impl/adam/dm/DataMigrationProcessorService.java
+1
-1
DMAddressesProcessor.java
.../service/impl/adam/dm/processor/DMAddressesProcessor.java
+5
-5
DMCollectionProcessor.java
...service/impl/adam/dm/processor/DMCollectionProcessor.java
+5
-5
DMEntersProcessor.java
...orm/service/impl/adam/dm/processor/DMEntersProcessor.java
+5
-5
DMMemberCodeProcessor.java
...service/impl/adam/dm/processor/DMMemberCodeProcessor.java
+5
-5
DMMemberOrderProcessor.java
...ervice/impl/adam/dm/processor/DMMemberOrderProcessor.java
+5
-5
DMRealNameProcessor.java
...m/service/impl/adam/dm/processor/DMRealNameProcessor.java
+5
-5
DMThirdPartsProcessor.java
...service/impl/adam/dm/processor/DMThirdPartsProcessor.java
+5
-5
DMTracesInfoProcessor.java
...service/impl/adam/dm/processor/DMTracesInfoProcessor.java
+1
-1
DMUserInformationProcessor.java
...ce/impl/adam/dm/processor/DMUserInformationProcessor.java
+3
-4
DMUserMemberProcessor.java
...service/impl/adam/dm/processor/DMUserMemberProcessor.java
+5
-5
SubscribeHandler.java
...com/liquidnet/service/sweet/handler/SubscribeHandler.java
+40
-0
UnsubscribeHandler.java
...m/liquidnet/service/sweet/handler/UnsubscribeHandler.java
+32
-0
SweetWechatCallbackServiceImpl.java
...ce/sweet/service/impl/SweetWechatCallbackServiceImpl.java
+68
-6
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/controller/adam/PlatformDMController.java
View file @
bc3a1155
This diff is collapsed.
Click to expand it.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/controller/partner/KylinCheckUserPartnerController.java
View file @
bc3a1155
...
@@ -52,7 +52,7 @@ public class KylinCheckUserPartnerController {
...
@@ -52,7 +52,7 @@ public class KylinCheckUserPartnerController {
return
checkUserPartnerService
.
del
(
merchantId
,
checkUserId
);
return
checkUserPartnerService
.
del
(
merchantId
,
checkUserId
);
}
}
@P
utMapping
(
value
=
"
"
)
@P
ostMapping
(
value
=
"change
"
)
@ApiOperation
(
value
=
"修改验票账号"
,
position
=
1
)
@ApiOperation
(
value
=
"修改验票账号"
,
position
=
1
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
change
(
@RequestParam
(
"merchantId"
)
@NotNull
String
merchantId
,
public
ResponseDto
<
String
>
change
(
@RequestParam
(
"merchantId"
)
@NotNull
String
merchantId
,
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/DataMigrationProcessorService.java
View file @
bc3a1155
...
@@ -46,5 +46,5 @@ public abstract class DataMigrationProcessorService {
...
@@ -46,5 +46,5 @@ public abstract class DataMigrationProcessorService {
return
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_MALL
,
DB_USER
,
DB_PWD
);
return
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_MALL
,
DB_USER
,
DB_PWD
);
}
}
protected
abstract
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
lS
,
String
incrDt
,
String
flg
,
String
flu
);
protected
abstract
void
dataProcessing
(
Integer
dg
,
Integer
lS
,
String
incrDt
,
String
flg
,
String
flu
);
}
}
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMAddressesProcessor.java
View file @
bc3a1155
...
@@ -28,7 +28,7 @@ public class DMAddressesProcessor extends DataMigrationProcessorService {
...
@@ -28,7 +28,7 @@ public class DMAddressesProcessor extends DataMigrationProcessorService {
@SneakyThrows
@SneakyThrows
@Override
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.addresses:{}"
,
userMapper
.
executeForDM
(
"adam_addresses"
));
log
.
info
(
"DM.flush.addresses:{}"
,
userMapper
.
executeForDM
(
"adam_addresses"
));
// log.info("DM.flush.AdamAddressesVo:{}", mongoTemplate.remove(Query.query(Criteria.where("_id").exists(true)), AdamAddressesVo.class.getSimpleName()).getDeletedCount());
// log.info("DM.flush.AdamAddressesVo:{}", mongoTemplate.remove(Query.query(Criteria.where("_id").exists(true)), AdamAddressesVo.class.getSimpleName()).getDeletedCount());
...
@@ -48,12 +48,12 @@ public class DMAddressesProcessor extends DataMigrationProcessorService {
...
@@ -48,12 +48,12 @@ public class DMAddressesProcessor extends DataMigrationProcessorService {
}
}
sql
+=
" order by id limit ?,?"
;
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
ResultSetImpl
row
=
null
;
try
{
try
{
//
Class.forName(DB_DRIVER);
Class
.
forName
(
DB_DRIVER
);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_MALL, DB_USER, DB_PWD);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_MALL
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
row
.
first
();
...
@@ -118,7 +118,7 @@ public class DMAddressesProcessor extends DataMigrationProcessorService {
...
@@ -118,7 +118,7 @@ public class DMAddressesProcessor extends DataMigrationProcessorService {
}
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
}
try
{
try
{
if
(
null
!=
row
)
row
.
close
();
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMCollectionProcessor.java
View file @
bc3a1155
...
@@ -28,7 +28,7 @@ public class DMCollectionProcessor extends DataMigrationProcessorService {
...
@@ -28,7 +28,7 @@ public class DMCollectionProcessor extends DataMigrationProcessorService {
@SneakyThrows
@SneakyThrows
@Override
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.collection:{}"
,
userMapper
.
executeForDM
(
"adam_collection"
));
log
.
info
(
"DM.flush.collection:{}"
,
userMapper
.
executeForDM
(
"adam_collection"
));
...
@@ -49,12 +49,12 @@ public class DMCollectionProcessor extends DataMigrationProcessorService {
...
@@ -49,12 +49,12 @@ public class DMCollectionProcessor extends DataMigrationProcessorService {
}
}
sql
+=
" order by id limit ?,?"
;
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
ResultSetImpl
row
=
null
;
try
{
try
{
//
Class.forName(DB_DRIVER);
Class
.
forName
(
DB_DRIVER
);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_PASSPORT, DB_USER, DB_PWD);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_PASSPORT
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
row
.
first
();
...
@@ -109,7 +109,7 @@ public class DMCollectionProcessor extends DataMigrationProcessorService {
...
@@ -109,7 +109,7 @@ public class DMCollectionProcessor extends DataMigrationProcessorService {
}
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
}
try
{
try
{
if
(
null
!=
row
)
row
.
close
();
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMEntersProcessor.java
View file @
bc3a1155
...
@@ -28,7 +28,7 @@ public class DMEntersProcessor extends DataMigrationProcessorService {
...
@@ -28,7 +28,7 @@ public class DMEntersProcessor extends DataMigrationProcessorService {
@SneakyThrows
@SneakyThrows
@Override
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.enters:{}"
,
userMapper
.
executeForDM
(
"adam_enters"
));
log
.
info
(
"DM.flush.enters:{}"
,
userMapper
.
executeForDM
(
"adam_enters"
));
...
@@ -51,12 +51,12 @@ public class DMEntersProcessor extends DataMigrationProcessorService {
...
@@ -51,12 +51,12 @@ public class DMEntersProcessor extends DataMigrationProcessorService {
}
}
sql
+=
" order by id limit ?,?"
;
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
ResultSetImpl
row
=
null
;
try
{
try
{
//
Class.forName(DB_DRIVER);
Class
.
forName
(
DB_DRIVER
);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_MALL, DB_USER, DB_PWD);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_MALL
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
row
.
first
();
...
@@ -122,7 +122,7 @@ public class DMEntersProcessor extends DataMigrationProcessorService {
...
@@ -122,7 +122,7 @@ public class DMEntersProcessor extends DataMigrationProcessorService {
}
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
}
try
{
try
{
if
(
null
!=
row
)
row
.
close
();
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMMemberCodeProcessor.java
View file @
bc3a1155
...
@@ -182,7 +182,7 @@ public class DMMemberCodeProcessor extends DataMigrationProcessorService {
...
@@ -182,7 +182,7 @@ public class DMMemberCodeProcessor extends DataMigrationProcessorService {
@SneakyThrows
@SneakyThrows
@Override
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.member_code:{}"
,
userMapper
.
executeForDM
(
"adam_member_code"
));
log
.
info
(
"DM.flush.member_code:{}"
,
userMapper
.
executeForDM
(
"adam_member_code"
));
...
@@ -199,12 +199,12 @@ public class DMMemberCodeProcessor extends DataMigrationProcessorService {
...
@@ -199,12 +199,12 @@ public class DMMemberCodeProcessor extends DataMigrationProcessorService {
String
sql
=
sqlCount
.
replace
(
"count(1)"
,
field
);
String
sql
=
sqlCount
.
replace
(
"count(1)"
,
field
);
sql
+=
" order by id limit ?,?"
;
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
ResultSetImpl
row
=
null
;
try
{
try
{
//
Class.forName(DB_DRIVER);
Class
.
forName
(
DB_DRIVER
);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_PASSPORT, DB_USER, DB_PWD);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_PASSPORT
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
row
.
first
();
...
@@ -273,7 +273,7 @@ public class DMMemberCodeProcessor extends DataMigrationProcessorService {
...
@@ -273,7 +273,7 @@ public class DMMemberCodeProcessor extends DataMigrationProcessorService {
}
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
}
try
{
try
{
if
(
null
!=
row
)
row
.
close
();
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMMemberOrderProcessor.java
View file @
bc3a1155
...
@@ -52,7 +52,7 @@ public class DMMemberOrderProcessor extends DataMigrationProcessorService {
...
@@ -52,7 +52,7 @@ public class DMMemberOrderProcessor extends DataMigrationProcessorService {
@SneakyThrows
@SneakyThrows
@Override
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.member_order:{}"
,
userMapper
.
executeForDM
(
"adam_member_order"
));
log
.
info
(
"DM.flush.member_order:{}"
,
userMapper
.
executeForDM
(
"adam_member_order"
));
...
@@ -74,12 +74,12 @@ public class DMMemberOrderProcessor extends DataMigrationProcessorService {
...
@@ -74,12 +74,12 @@ public class DMMemberOrderProcessor extends DataMigrationProcessorService {
}
}
sql
+=
" order by id limit ?,?"
;
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
ResultSetImpl
row
=
null
;
try
{
try
{
//
Class.forName(DB_DRIVER);
Class
.
forName
(
DB_DRIVER
);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_PASSPORT, DB_USER, DB_PWD);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_PASSPORT
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
row
.
first
();
...
@@ -154,7 +154,7 @@ public class DMMemberOrderProcessor extends DataMigrationProcessorService {
...
@@ -154,7 +154,7 @@ public class DMMemberOrderProcessor extends DataMigrationProcessorService {
}
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
}
try
{
try
{
if
(
null
!=
row
)
row
.
close
();
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMRealNameProcessor.java
View file @
bc3a1155
...
@@ -28,7 +28,7 @@ public class DMRealNameProcessor extends DataMigrationProcessorService {
...
@@ -28,7 +28,7 @@ public class DMRealNameProcessor extends DataMigrationProcessorService {
@SneakyThrows
@SneakyThrows
@Override
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.real_name:{}"
,
userMapper
.
executeForDM
(
"adam_real_name"
));
log
.
info
(
"DM.flush.real_name:{}"
,
userMapper
.
executeForDM
(
"adam_real_name"
));
...
@@ -49,12 +49,12 @@ public class DMRealNameProcessor extends DataMigrationProcessorService {
...
@@ -49,12 +49,12 @@ public class DMRealNameProcessor extends DataMigrationProcessorService {
}
}
sql
+=
" order by id limit ?,?"
;
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
ResultSetImpl
row
=
null
;
try
{
try
{
//
Class.forName(DB_DRIVER);
Class
.
forName
(
DB_DRIVER
);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_PASSPORT, DB_USER, DB_PWD);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_PASSPORT
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
row
.
first
();
...
@@ -121,7 +121,7 @@ public class DMRealNameProcessor extends DataMigrationProcessorService {
...
@@ -121,7 +121,7 @@ public class DMRealNameProcessor extends DataMigrationProcessorService {
}
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
}
try
{
try
{
if
(
null
!=
row
)
row
.
close
();
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMThirdPartsProcessor.java
View file @
bc3a1155
...
@@ -30,7 +30,7 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
...
@@ -30,7 +30,7 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
@SneakyThrows
@SneakyThrows
@Override
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.third_party:{}"
,
userMapper
.
executeForDM
(
"adam_third_party"
));
log
.
info
(
"DM.flush.third_party:{}"
,
userMapper
.
executeForDM
(
"adam_third_party"
));
...
@@ -54,12 +54,12 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
...
@@ -54,12 +54,12 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
sql
+=
" order by id limit ?,?"
;
sql
+=
" order by id limit ?,?"
;
LocalDateTime
currentYear
=
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
"2021-01-01 00:00:00"
);
LocalDateTime
currentYear
=
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
"2021-01-01 00:00:00"
);
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
ResultSetImpl
row
=
null
;
try
{
try
{
//
Class.forName(DB_DRIVER);
Class
.
forName
(
DB_DRIVER
);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_PASSPORT, DB_USER, DB_PWD);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_PASSPORT
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
row
.
first
();
...
@@ -130,7 +130,7 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
...
@@ -130,7 +130,7 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
}
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
}
try
{
try
{
if
(
null
!=
row
)
row
.
close
();
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMTracesInfoProcessor.java
View file @
bc3a1155
...
@@ -32,7 +32,7 @@ public class DMTracesInfoProcessor extends DataMigrationProcessorService {
...
@@ -32,7 +32,7 @@ public class DMTracesInfoProcessor extends DataMigrationProcessorService {
AdamMemberPriceMapper
memberPriceMapper
;
AdamMemberPriceMapper
memberPriceMapper
;
@Override
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.member:{}"
,
userMapper
.
executeForDM
(
"adam_member"
));
log
.
info
(
"DM.flush.member:{}"
,
userMapper
.
executeForDM
(
"adam_member"
));
log
.
info
(
"DM.flush.member_price:{}"
,
userMapper
.
executeForDM
(
"adam_member_price"
));
log
.
info
(
"DM.flush.member_price:{}"
,
userMapper
.
executeForDM
(
"adam_member_price"
));
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMUserInformationProcessor.java
View file @
bc3a1155
...
@@ -47,7 +47,7 @@ public class DMUserInformationProcessor extends DataMigrationProcessorService {
...
@@ -47,7 +47,7 @@ public class DMUserInformationProcessor extends DataMigrationProcessorService {
@SneakyThrows
@SneakyThrows
@Override
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.user:{}"
,
userMapper
.
executeForDM
(
"adam_user"
));
log
.
info
(
"DM.flush.user:{}"
,
userMapper
.
executeForDM
(
"adam_user"
));
log
.
info
(
"DM.flush.user_info:{}"
,
userMapper
.
executeForDM
(
"adam_user_info"
));
log
.
info
(
"DM.flush.user_info:{}"
,
userMapper
.
executeForDM
(
"adam_user_info"
));
...
@@ -70,8 +70,7 @@ public class DMUserInformationProcessor extends DataMigrationProcessorService {
...
@@ -70,8 +70,7 @@ public class DMUserInformationProcessor extends DataMigrationProcessorService {
}
}
sql
+=
" order by uid limit ?,?"
;
sql
+=
" order by uid limit ?,?"
;
LocalDateTime
currentYear
=
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
"2021-01-01 00:00:00"
);
Connection
connection
=
null
;
// Connection connection = null;
PreparedStatement
statement
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
ResultSetImpl
row
=
null
;
try
{
try
{
...
@@ -170,7 +169,7 @@ public class DMUserInformationProcessor extends DataMigrationProcessorService {
...
@@ -170,7 +169,7 @@ public class DMUserInformationProcessor extends DataMigrationProcessorService {
}
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
}
try
{
try
{
if
(
null
!=
row
)
row
.
close
();
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMUserMemberProcessor.java
View file @
bc3a1155
...
@@ -28,7 +28,7 @@ public class DMUserMemberProcessor extends DataMigrationProcessorService {
...
@@ -28,7 +28,7 @@ public class DMUserMemberProcessor extends DataMigrationProcessorService {
@SneakyThrows
@SneakyThrows
@Override
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.user_member:{}"
,
userMapper
.
executeForDM
(
"adam_user_member"
));
log
.
info
(
"DM.flush.user_member:{}"
,
userMapper
.
executeForDM
(
"adam_user_member"
));
...
@@ -49,12 +49,12 @@ public class DMUserMemberProcessor extends DataMigrationProcessorService {
...
@@ -49,12 +49,12 @@ public class DMUserMemberProcessor extends DataMigrationProcessorService {
}
}
sql
+=
" order by id limit ?,?"
;
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
ResultSetImpl
row
=
null
;
try
{
try
{
//
Class.forName(DB_DRIVER);
Class
.
forName
(
DB_DRIVER
);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_PASSPORT, DB_USER, DB_PWD);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_PASSPORT
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
row
.
first
();
...
@@ -127,7 +127,7 @@ public class DMUserMemberProcessor extends DataMigrationProcessorService {
...
@@ -127,7 +127,7 @@ public class DMUserMemberProcessor extends DataMigrationProcessorService {
dmRdmService
.
setMaxMemberNo
(
Integer
.
parseInt
(
max
.
getMemberNo
()));
dmRdmService
.
setMaxMemberNo
(
Integer
.
parseInt
(
max
.
getMemberNo
()));
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
}
try
{
try
{
if
(
null
!=
row
)
row
.
close
();
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/handler/SubscribeHandler.java
0 → 100644
View file @
bc3a1155
package
com
.
liquidnet
.
service
.
sweet
.
handler
;
import
lombok.extern.slf4j.Slf4j
;
import
me.chanjar.weixin.common.error.WxErrorException
;
import
me.chanjar.weixin.common.session.WxSessionManager
;
import
me.chanjar.weixin.mp.api.WxMpMessageHandler
;
import
me.chanjar.weixin.mp.api.WxMpService
;
import
me.chanjar.weixin.mp.bean.message.WxMpXmlMessage
;
import
me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage
;
import
me.chanjar.weixin.mp.bean.result.WxMpUser
;
import
org.springframework.stereotype.Component
;
import
java.util.Map
;
/**
* <p>
* 关注
* </p>
*
* @author jiangxiulong
* @since 2021-07-31 5:06 下午
*/
@Component
@Slf4j
public
class
SubscribeHandler
implements
WxMpMessageHandler
{
@Override
public
WxMpXmlOutMessage
handle
(
WxMpXmlMessage
wxMessage
,
Map
<
String
,
Object
>
context
,
WxMpService
wxMpService
,
WxSessionManager
sessionManager
)
throws
WxErrorException
{
log
.
info
(
"接收到一个扫码订阅事件:[{}]"
,
wxMessage
.
toString
());
// 1、获取微信用户信息
WxMpUser
wxMpUser
=
wxMpService
.
getUserService
().
userInfo
(
wxMessage
.
getFromUser
());
if
(
null
==
wxMpUser
)
{
log
.
warn
(
"从微信公众号获取用户(FromUser)信息:[{}]失败."
,
wxMessage
.
getFromUser
());
return
null
;
}
log
.
info
(
"根据 openId:[{}]获取到的微信用户信息:[{}]"
,
wxMessage
.
getFromUser
(),
wxMpUser
.
toString
());
return
null
;
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/handler/UnsubscribeHandler.java
0 → 100644
View file @
bc3a1155
package
com
.
liquidnet
.
service
.
sweet
.
handler
;
import
lombok.extern.slf4j.Slf4j
;
import
me.chanjar.weixin.common.error.WxErrorException
;
import
me.chanjar.weixin.common.session.WxSessionManager
;
import
me.chanjar.weixin.mp.api.WxMpMessageHandler
;
import
me.chanjar.weixin.mp.api.WxMpService
;
import
me.chanjar.weixin.mp.bean.message.WxMpXmlMessage
;
import
me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage
;
import
org.springframework.stereotype.Component
;
import
java.util.Map
;
/**
* <p>
* 取消关注
* </p>
*
* @author jiangxiulong
* @since 2021-07-31 5:08 下午
*/
@Component
@Slf4j
public
class
UnsubscribeHandler
implements
WxMpMessageHandler
{
@Override
public
WxMpXmlOutMessage
handle
(
WxMpXmlMessage
wxMessage
,
Map
<
String
,
Object
>
context
,
WxMpService
wxMpService
,
WxSessionManager
sessionManager
)
throws
WxErrorException
{
log
.
info
(
"接收到一个扫码取消订阅事件:[{}]"
,
wxMessage
.
toString
());
return
null
;
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetWechatCallbackServiceImpl.java
View file @
bc3a1155
package
com
.
liquidnet
.
service
.
sweet
.
service
.
impl
;
package
com
.
liquidnet
.
service
.
sweet
.
service
.
impl
;
import
com.liquidnet.service.sweet.handler.SubscribeHandler
;
import
com.liquidnet.service.sweet.handler.UnsubscribeHandler
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
me.chanjar.weixin.common.api.WxConsts
;
import
me.chanjar.weixin.common.api.WxMessageInMemoryDuplicateChecker
;
import
me.chanjar.weixin.mp.api.WxMpMessageRouter
;
import
me.chanjar.weixin.mp.api.WxMpMessageRouter
;
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
;
...
@@ -24,22 +28,80 @@ import org.springframework.stereotype.Service;
...
@@ -24,22 +28,80 @@ import org.springframework.stereotype.Service;
@Slf4j
@Slf4j
public
class
SweetWechatCallbackServiceImpl
{
public
class
SweetWechatCallbackServiceImpl
{
/*@Autowired
@Value
(
"${liquidnet.wechat.zhengzai.service.appid}"
)
private WxMpMessageRouter wxMpMessageRouter;*/
private
String
appid
;
@Value
(
"${liquidnet.wechat.zhengzai.service.secret}"
)
private
String
secret
;
@Value
(
"${liquidnet.wechat.zhengzai.service.token}"
)
private
String
token
;
@Value
(
"${liquidnet.wechat.zhengzai.service.aeskey}"
)
private
String
aeskey
;
@Autowired
private
SubscribeHandler
subscribeHandler
;
@Autowired
private
UnsubscribeHandler
unsubscribeHandler
;
private
WxMpConfigStorage
wxMpConfig
(
String
appId
,
String
appSecret
,
String
token
,
String
aeskey
)
{
WxMpDefaultConfigImpl
config
=
new
WxMpDefaultConfigImpl
();
config
.
setAppId
(
appId
);
config
.
setSecret
(
appSecret
);
config
.
setAesKey
(
aeskey
);
config
.
setToken
(
token
);
return
config
;
}
private
WxMpService
wxMpService
(
WxMpConfigStorage
mpConfig
)
{
WxMpService
service
=
new
WxMpServiceImpl
();
service
.
setWxMpConfigStorage
(
mpConfig
);
return
service
;
}
public
WxMpMessageRouter
messageRouter
(
WxMpService
wxMpService
)
{
WxMpMessageRouter
router
=
new
WxMpMessageRouter
(
wxMpService
);
// 消息去重
router
.
setMessageDuplicateChecker
(
new
WxMessageInMemoryDuplicateChecker
());
// 关注事件
router
.
rule
().
async
(
false
).
msgType
(
WxConsts
.
XmlMsgType
.
EVENT
)
.
event
(
WxConsts
.
EventType
.
SUBSCRIBE
)
.
handler
(
subscribeHandler
)
.
end
();
// 取消关注事件
router
.
rule
().
async
(
false
).
msgType
(
WxConsts
.
XmlMsgType
.
EVENT
)
.
event
(
WxConsts
.
EventType
.
UNSUBSCRIBE
)
.
handler
(
unsubscribeHandler
)
.
end
();
return
router
;
}
public
String
record
(
String
requestBody
,
String
timestamp
,
String
nonce
,
String
encType
,
String
msgSignature
)
{
public
String
record
(
String
requestBody
,
String
timestamp
,
String
nonce
,
String
encType
,
String
msgSignature
)
{
/*String out = null;
WxMpConfigStorage
wxMpConfig
=
wxMpConfig
(
appid
,
secret
,
token
,
aeskey
);
WxMpService
wxMpService
=
wxMpService
(
wxMpConfig
);
String
out
=
null
;
if
(
encType
==
null
)
{
if
(
encType
==
null
)
{
// 明文传输的消息
// 明文传输的消息
WxMpXmlMessage
inMessage
=
WxMpXmlMessage
.
fromXml
(
requestBody
);
WxMpXmlMessage
inMessage
=
WxMpXmlMessage
.
fromXml
(
requestBody
);
WxMpXmlOutMessage outMessage =
wxMpMessageRouter
.route(inMessage);
WxMpXmlOutMessage
outMessage
=
messageRouter
(
wxMpService
)
.
route
(
inMessage
);
if
(
outMessage
==
null
)
{
if
(
outMessage
==
null
)
{
return
""
;
return
""
;
}
}
out
=
outMessage
.
toXml
();
out
=
outMessage
.
toXml
();
}
else
if
(
"aes"
.
equalsIgnoreCase
(
encType
))
{
// aes加密的消息
WxMpXmlMessage
inMessage
=
WxMpXmlMessage
.
fromEncryptedXml
(
requestBody
,
wxMpService
.
getWxMpConfigStorage
(),
timestamp
,
nonce
,
msgSignature
);
log
.
info
(
"\n消息解密后内容为:\n[{}] "
,
inMessage
.
toString
());
WxMpXmlOutMessage
outMessage
=
messageRouter
(
wxMpService
).
route
(
inMessage
);
if
(
outMessage
==
null
)
{
return
""
;
}
out
=
outMessage
.
toEncryptedXml
(
wxMpService
.
getWxMpConfigStorage
());
}
}
log
.
info
(
"\n组装回复信息:[{}]"
,
out
);
log
.
info
(
"\n组装回复信息:[{}]"
,
out
);
return out;*/
return
out
;
return
""
;
}
}
}
}
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