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
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
haoban3.0
haoban-manage3.0
Commits
ab2e43d4
Commit
ab2e43d4
authored
Jun 11, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步日志
parent
aec697b3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletions
+23
-1
PreDealLogInfoDTO.java
...java/com/gic/haoban/manage/api/dto/PreDealLogInfoDTO.java
+10
-0
DealSyncOperationApiServiceImpl.java
...ice/service/out/impl/DealSyncOperationApiServiceImpl.java
+10
-0
QywxGroupSyncOperation.java
...ic/haoban/manage/service/task/QywxGroupSyncOperation.java
+2
-0
PreDealLogMapper.xml
...e3-service/src/main/resources/mapper/PreDealLogMapper.xml
+1
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/PreDealLogInfoDTO.java
View file @
ab2e43d4
...
@@ -59,6 +59,8 @@ public class PreDealLogInfoDTO implements Serializable {
...
@@ -59,6 +59,8 @@ public class PreDealLogInfoDTO implements Serializable {
*/
*/
private
Integer
statusFlag
;
private
Integer
statusFlag
;
private
String
dataContent
;
private
String
reason
;
private
String
reason
;
/**
/**
...
@@ -71,6 +73,14 @@ public class PreDealLogInfoDTO implements Serializable {
...
@@ -71,6 +73,14 @@ public class PreDealLogInfoDTO implements Serializable {
*/
*/
private
Date
updateTime
;
private
Date
updateTime
;
public
String
getDataContent
()
{
return
dataContent
;
}
public
void
setDataContent
(
String
dataContent
)
{
this
.
dataContent
=
dataContent
;
}
/**
/**
*/
*/
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DealSyncOperationApiServiceImpl.java
View file @
ab2e43d4
...
@@ -485,10 +485,13 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
...
@@ -485,10 +485,13 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
@Override
@Override
public
Page
<
PreDealLogInfoDTO
>
listSyncTaskDetail
(
String
wxEnterpriseId
,
String
taskId
,
BasePageInfo
pageInfo
)
{
public
Page
<
PreDealLogInfoDTO
>
listSyncTaskDetail
(
String
wxEnterpriseId
,
String
taskId
,
BasePageInfo
pageInfo
)
{
TabHaobanSyncTask
syncTask
=
syncTaskService
.
getSyncTask
(
taskId
);
Page
<
PreDealLogInfoDTO
>
page
=
preDealService
.
listExceptionByTaskId
(
taskId
,
pageInfo
);
Page
<
PreDealLogInfoDTO
>
page
=
preDealService
.
listExceptionByTaskId
(
taskId
,
pageInfo
);
if
(
CollectionUtils
.
isEmpty
(
page
.
getResult
()))
{
if
(
CollectionUtils
.
isEmpty
(
page
.
getResult
()))
{
return
page
;
return
page
;
}
}
//gic同步微信
if
(
syncTask
.
getTaskType
().
equals
(
0
))
{
List
<
PreDealLogInfoDTO
>
result
=
page
.
getResult
();
List
<
PreDealLogInfoDTO
>
result
=
page
.
getResult
();
for
(
PreDealLogInfoDTO
dto
:
result
)
{
for
(
PreDealLogInfoDTO
dto
:
result
)
{
if
(
dto
.
getDataType
().
equals
(
PreDealTypeEnum
.
group
.
getVal
()))
{
if
(
dto
.
getDataType
().
equals
(
PreDealTypeEnum
.
group
.
getVal
()))
{
...
@@ -513,6 +516,13 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
...
@@ -513,6 +516,13 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
}
}
}
}
}
}
}
else
{
List
<
PreDealLogInfoDTO
>
result
=
page
.
getResult
();
for
(
PreDealLogInfoDTO
dto
:
result
)
{
dto
.
setDataCode
(
dto
.
getDataId
());
dto
.
setDataName
(
dto
.
getDataContent
());
}
}
return
page
;
return
page
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/QywxGroupSyncOperation.java
View file @
ab2e43d4
...
@@ -29,6 +29,7 @@ import com.gic.redis.data.util.RedisUtil;
...
@@ -29,6 +29,7 @@ import com.gic.redis.data.util.RedisUtil;
import
com.gic.wechat.api.dto.qywx.UserDTO
;
import
com.gic.wechat.api.dto.qywx.UserDTO
;
import
com.gic.wechat.api.service.qywx.QywxDepartmentApiService
;
import
com.gic.wechat.api.service.qywx.QywxDepartmentApiService
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
import
com.vdurmont.emoji.EmojiParser
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -211,6 +212,7 @@ public class QywxGroupSyncOperation implements BaseSyncOperation {
...
@@ -211,6 +212,7 @@ public class QywxGroupSyncOperation implements BaseSyncOperation {
dealLog
.
setpDataId
(
dataId
);
dealLog
.
setpDataId
(
dataId
);
dealLog
.
setDataType
(
PreDealTypeEnum
.
clerk
.
getVal
());
dealLog
.
setDataType
(
PreDealTypeEnum
.
clerk
.
getVal
());
dealLog
.
setStatusFlag
(
0
);
dealLog
.
setStatusFlag
(
0
);
dealLog
.
setDataContent
(
EmojiParser
.
removeAllEmojis
(
userDTO
.
getName
()));
dealLog
.
setTaskId
(
taskId
);
dealLog
.
setTaskId
(
taskId
);
dealLog
.
setWxEnterpriseId
(
wxEnterpriseId
);
dealLog
.
setWxEnterpriseId
(
wxEnterpriseId
);
dealLog
.
setEnterpriseId
(
enterpriseId
);
dealLog
.
setEnterpriseId
(
enterpriseId
);
...
...
haoban-manage3-service/src/main/resources/mapper/PreDealLogMapper.xml
View file @
ab2e43d4
...
@@ -296,7 +296,7 @@
...
@@ -296,7 +296,7 @@
<select
id=
"listExceptionByTask"
resultMap=
"BaseResultMap"
>
<select
id=
"listExceptionByTask"
resultMap=
"BaseResultMap"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List
_data
"
/>
from tab_haoban_pre_deal_log
from tab_haoban_pre_deal_log
where task_id = #{taskId}
where task_id = #{taskId}
and status_flag =3
and status_flag =3
...
...
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