Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
haoban3.0
haoban-manage3.0
Commits
776656bb
Commit
776656bb
authored
Jul 15, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:导购删除、转移门店、设置店长处理
parent
3bb0f553
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
101 additions
and
8 deletions
+101
-8
ClerkSyncQDTO.java
...ava/com/gic/haoban/manage/api/dto/qdto/ClerkSyncQDTO.java
+87
-0
StaffClerkRelationApiService.java
...oban/manage/api/service/StaffClerkRelationApiService.java
+3
-3
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+0
-0
KafkaMessageServiceImpl.java
...c/haoban/manage/service/task/KafkaMessageServiceImpl.java
+11
-5
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/qdto/ClerkSyncQDTO.java
0 → 100644
View file @
776656bb
package
com
.
gic
.
haoban
.
manage
.
api
.
dto
.
qdto
;
import
java.io.Serializable
;
/**
* 导购删除、门店转移、新增修改店长
*
* @author mozhu
* @date 2022-07-15 10:33:15
*/
public
class
ClerkSyncQDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
3952563675969267345L
;
private
String
clerkId
;
private
String
storeId
;
private
String
clerkCode
;
private
String
enterpriseId
;
private
Integer
status
;
private
Integer
oldStatus
;
/**
* 1:删除;2:门店转移;3:导购其他数据变动
*/
private
Integer
type
;
public
String
getClerkId
()
{
return
clerkId
;
}
public
void
setClerkId
(
String
clerkId
)
{
this
.
clerkId
=
clerkId
;
}
public
String
getStoreId
()
{
return
storeId
;
}
public
void
setStoreId
(
String
storeId
)
{
this
.
storeId
=
storeId
;
}
public
String
getClerkCode
()
{
return
clerkCode
;
}
public
void
setClerkCode
(
String
clerkCode
)
{
this
.
clerkCode
=
clerkCode
;
}
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
String
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Integer
getOldStatus
()
{
return
oldStatus
;
}
public
void
setOldStatus
(
Integer
oldStatus
)
{
this
.
oldStatus
=
oldStatus
;
}
public
Integer
getType
()
{
return
type
;
}
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
}
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffClerkRelationApiService.java
View file @
776656bb
...
...
@@ -187,13 +187,13 @@ public interface StaffClerkRelationApiService {
/**
* 导购门店转移
* clerkStoreMoveMq
* 导购门店转移
或者删除
* clerkStoreMove
Del
Mq
*
* @param param 参数
* @author mozhu
* @date 2022-07-12 18:57:15
*/
void
clerkStoreMove
(
String
param
);
void
clerkStoreMove
Del
(
String
param
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
776656bb
This diff is collapsed.
Click to expand it.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/KafkaMessageServiceImpl.java
View file @
776656bb
...
...
@@ -75,11 +75,14 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
}
BinlogBasePojo
pojo
=
binlogChange
(
record
.
value
());
logger
.
info
(
"binlog数据:{}"
,
JSONObject
.
toJSONString
(
pojo
));
if
(
pojo
==
null
)
{
logger
.
error
(
"binlog数据为空"
);
return
;
}
if
(
record
.
value
().
getTableName
().
equals
(
CLERK
))
{
dealClerk
((
ClerkSyncPojo
)
pojo
);
//发消息处理新增店长,任务重新分配问题
ClerkSyncPojo
syncPojo
=
(
ClerkSyncPojo
)
pojo
;
dealClerk
(
syncPojo
);
//发消息处理新增店长,任务重新分配问题
GicRecordType
gicRecordType
=
GicRecordType
.
valueOf
(
syncPojo
.
getRecordType
());
if
(
gicRecordType
.
equals
(
GicRecordType
.
INSERT
)
||
gicRecordType
.
equals
(
GicRecordType
.
UPDATE
))
{
...
...
@@ -96,6 +99,7 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
try
{
logger
.
info
(
"待分配任务重分配======>{}"
,
clerkId
);
MqMessageQo
mqMessageQo
=
new
MqMessageQo
();
//任务分配给店长
mqMessageQo
.
setType
(
MqMessageQo
.
DISTRIBUTE_TASK
);
mqMessageQo
.
setData
(
clerkId
);
String
s
=
JSONObject
.
toJSONString
(
mqMessageQo
);
...
...
@@ -106,11 +110,13 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
}
}
}
}
else
if
(
record
.
value
().
getTableName
().
equals
(
GROUP
))
{
//分组
}
else
if
(
record
.
value
().
getTableName
().
equals
(
GROUP
))
{
dealStoreGroup
((
GroupSyncPojo
)
pojo
);
}
else
if
(
record
.
value
().
getTableName
().
equals
(
STORE
))
{
//门店
}
else
if
(
record
.
value
().
getTableName
().
equals
(
STORE
))
{
dealStore
((
StoreSyncPojo
)
pojo
);
}
}
...
...
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