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
1f80a71b
Commit
1f80a71b
authored
Jun 23, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业微信标签同步fix
parent
b4a9e650
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
111 additions
and
51 deletions
+111
-51
QywxTagRelationMapper.java
...oban/manage/service/dao/mapper/QywxTagRelationMapper.java
+20
-0
QywxTagService.java
...com/gic/haoban/manage/service/service/QywxTagService.java
+10
-0
QywxTagServiceImpl.java
...aoban/manage/service/service/impl/QywxTagServiceImpl.java
+18
-0
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+40
-51
QywxTagRelationMapper.xml
...rvice/src/main/resources/mapper/QywxTagRelationMapper.xml
+23
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/QywxTagRelationMapper.java
View file @
1f80a71b
...
@@ -66,4 +66,23 @@ public interface QywxTagRelationMapper {
...
@@ -66,4 +66,23 @@ public interface QywxTagRelationMapper {
* @return
* @return
*/
*/
List
<
TabQywxTagRelation
>
listByQywxTagId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"qywxTagId"
)
String
qywxTagId
);
List
<
TabQywxTagRelation
>
listByQywxTagId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"qywxTagId"
)
String
qywxTagId
);
/**
* 查询企业下标签组的关联
*
* @param wxEnterpriseId
* @param qywxTagId
* @return
*/
TabQywxTagRelation
getQywxGroupByQywxTagId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"qywxTagId"
)
String
qywxTagId
);
/**
* 查询企业下标签项的关联
*
* @param wxEnterpriseId
* @param qywxTagItemId
* @return
*/
TabQywxTagRelation
getQywxTagByQywxTagItemId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"qywxTagItemId"
)
String
qywxTagItemId
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/QywxTagService.java
View file @
1f80a71b
...
@@ -146,6 +146,16 @@ public interface QywxTagService {
...
@@ -146,6 +146,16 @@ public interface QywxTagService {
*/
*/
public
boolean
delQywxTagItemById
(
String
wxEnterpriseId
,
String
id
);
public
boolean
delQywxTagItemById
(
String
wxEnterpriseId
,
String
id
);
/**
* 根据企业微信的key 查询关联关系
*
* @param wxEnterpriseId
* @param key
* @param qywxTagRelationType
* @return
*/
public
TabQywxTagRelation
getQywxTagRelationByQywxKey
(
String
wxEnterpriseId
,
String
key
,
Integer
qywxTagRelationType
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/QywxTagServiceImpl.java
View file @
1f80a71b
...
@@ -3,6 +3,7 @@ package com.gic.haoban.manage.service.service.impl;
...
@@ -3,6 +3,7 @@ package com.gic.haoban.manage.service.service.impl;
import
com.gic.commons.util.ToolUtil
;
import
com.gic.commons.util.ToolUtil
;
import
com.gic.haoban.manage.api.dto.QywxTagInfoDTO
;
import
com.gic.haoban.manage.api.dto.QywxTagInfoDTO
;
import
com.gic.haoban.manage.api.dto.QywxTagItemDTO
;
import
com.gic.haoban.manage.api.dto.QywxTagItemDTO
;
import
com.gic.haoban.manage.api.enums.QywxTagRelationTypeEnum
;
import
com.gic.haoban.manage.service.dao.mapper.QywxTagItemMapper
;
import
com.gic.haoban.manage.service.dao.mapper.QywxTagItemMapper
;
import
com.gic.haoban.manage.service.dao.mapper.QywxTagMapper
;
import
com.gic.haoban.manage.service.dao.mapper.QywxTagMapper
;
import
com.gic.haoban.manage.service.dao.mapper.QywxTagRelationMapper
;
import
com.gic.haoban.manage.service.dao.mapper.QywxTagRelationMapper
;
...
@@ -187,4 +188,21 @@ public class QywxTagServiceImpl implements QywxTagService {
...
@@ -187,4 +188,21 @@ public class QywxTagServiceImpl implements QywxTagService {
qywxTagItemMapper
.
updateByPrimaryKeySelective
(
item
);
qywxTagItemMapper
.
updateByPrimaryKeySelective
(
item
);
return
true
;
return
true
;
}
}
@Override
public
TabQywxTagRelation
getQywxTagRelationByQywxKey
(
String
wxEnterpriseId
,
String
key
,
Integer
qywxTagRelationType
)
{
if
(
qywxTagRelationType
==
QywxTagRelationTypeEnum
.
TAG_GROUP
.
getType
())
{
TabQywxTag
qywxGroupKey
=
qywxTagMapper
.
getByQywxGroupKey
(
wxEnterpriseId
,
key
);
if
(
null
==
qywxGroupKey
)
{
return
null
;
}
return
qywxTagRelationMapper
.
getQywxGroupByQywxTagId
(
wxEnterpriseId
,
qywxGroupKey
.
getQywxTagId
());
}
else
{
TabQywxTagItem
qywxTagItem
=
qywxTagItemMapper
.
getByQywxTagKey
(
wxEnterpriseId
,
key
);
if
(
null
==
qywxTagItem
)
{
return
null
;
}
return
qywxTagRelationMapper
.
getQywxTagByQywxTagItemId
(
wxEnterpriseId
,
qywxTagItem
.
getQywxTagItemId
());
}
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
1f80a71b
This diff is collapsed.
Click to expand it.
haoban-manage3-service/src/main/resources/mapper/QywxTagRelationMapper.xml
View file @
1f80a71b
...
@@ -224,4 +224,26 @@
...
@@ -224,4 +224,26 @@
and status_flag=1
and status_flag=1
and sync_flag=1
and sync_flag=1
</select>
</select>
<select
id=
"getQywxGroupByQywxTagId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_qywx_tag_relation
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
and qywx_tag_id = #{qywxTagId,jdbcType=VARCHAR}
and relation_type=0
and status_flag=1
and sync_flag=1
</select>
<select
id=
"getQywxTagByQywxTagItemId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_qywx_tag_relation
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
and qywx_tag_item_id = #{qywxTagId,jdbcType=VARCHAR}
and relation_type=1
and status_flag=1
and sync_flag=1
</select>
</mapper>
</mapper>
\ No newline at end of file
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