...
|
...
|
@@ -59,7 +59,9 @@ func SyncDataBusinessAdmin(msgData *sarama.ConsumerMessage) error { |
|
|
err = companySrv.FromBusinessAdmin(&msgBody)
|
|
|
if err != nil {
|
|
|
log.Logger.Error("处理company消息失败"+err.Error(), map[string]interface{}{
|
|
|
"data": msgBody,
|
|
|
"module": msgBody.Module,
|
|
|
"action": msgBody.Action,
|
|
|
"data": string(msgBody.Data),
|
|
|
})
|
|
|
return err
|
|
|
}
|
...
|
...
|
@@ -68,7 +70,9 @@ func SyncDataBusinessAdmin(msgData *sarama.ConsumerMessage) error { |
|
|
err = departmentSrv.FromBusinessAdmin(&msgBody)
|
|
|
if err != nil {
|
|
|
log.Logger.Error("处理department消息失败"+err.Error(), map[string]interface{}{
|
|
|
"data": msgBody,
|
|
|
"module": msgBody.Module,
|
|
|
"action": msgBody.Action,
|
|
|
"data": string(msgBody.Data),
|
|
|
})
|
|
|
return err
|
|
|
}
|
...
|
...
|
@@ -77,7 +81,9 @@ func SyncDataBusinessAdmin(msgData *sarama.ConsumerMessage) error { |
|
|
err = employeeSrv.FromBusinessAdmin(&msgBody)
|
|
|
if err != nil {
|
|
|
log.Logger.Error("处理employee消息失败"+err.Error(), map[string]interface{}{
|
|
|
"data": msgBody,
|
|
|
"module": msgBody.Module,
|
|
|
"action": msgBody.Action,
|
|
|
"data": string(msgBody.Data),
|
|
|
})
|
|
|
return err
|
|
|
}
|
...
|
...
|
|