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
QianQiXiang
haoban-manage3.0
Commits
ede972c4
Commit
ede972c4
authored
Jun 22, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业微信标签同步
parent
1a4a14aa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
156 additions
and
8 deletions
+156
-8
QywxTagInfoDTO.java
...in/java/com/gic/haoban/manage/api/dto/QywxTagInfoDTO.java
+12
-0
QywxTagItemDTO.java
...in/java/com/gic/haoban/manage/api/dto/QywxTagItemDTO.java
+10
-0
QywxTagRelationTypeEnum.java
.../gic/haoban/manage/api/enums/QywxTagRelationTypeEnum.java
+23
-3
QywxTagItemMapper.java
...c/haoban/manage/service/dao/mapper/QywxTagItemMapper.java
+10
-0
QywxTagRelationMapper.java
...oban/manage/service/dao/mapper/QywxTagRelationMapper.java
+11
-1
QywxTagService.java
...com/gic/haoban/manage/service/service/QywxTagService.java
+39
-1
QywxTagServiceImpl.java
...aoban/manage/service/service/impl/QywxTagServiceImpl.java
+28
-2
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+0
-0
QywxTagItemMapper.xml
...3-service/src/main/resources/mapper/QywxTagItemMapper.xml
+10
-0
QywxTagRelationMapper.xml
...rvice/src/main/resources/mapper/QywxTagRelationMapper.xml
+13
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/QywxTagInfoDTO.java
View file @
ede972c4
...
@@ -50,11 +50,23 @@ public class QywxTagInfoDTO implements Serializable {
...
@@ -50,11 +50,23 @@ public class QywxTagInfoDTO implements Serializable {
*
*
*/
*/
private
Date
updateTime
;
private
Date
updateTime
;
/**
* 标签id
*/
private
String
memberTagId
;
/**
/**
*/
*/
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
String
getMemberTagId
()
{
return
memberTagId
;
}
public
void
setMemberTagId
(
String
memberTagId
)
{
this
.
memberTagId
=
memberTagId
;
}
/**
/**
* This method returns the value of the database column tab_haoban_qywx_tag.qywx_tag_id
* This method returns the value of the database column tab_haoban_qywx_tag.qywx_tag_id
*
*
...
...
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/QywxTagItemDTO.java
View file @
ede972c4
...
@@ -61,10 +61,20 @@ public class QywxTagItemDTO implements Serializable {
...
@@ -61,10 +61,20 @@ public class QywxTagItemDTO implements Serializable {
*/
*/
private
Date
updateTime
;
private
Date
updateTime
;
private
String
memberTagItemId
;
/**
/**
*/
*/
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
String
getMemberTagItemId
()
{
return
memberTagItemId
;
}
public
void
setMemberTagItemId
(
String
memberTagItemId
)
{
this
.
memberTagItemId
=
memberTagItemId
;
}
/**
/**
* This method returns the value of the database column tab_haoban_qywx_tag_item.qywx_tag_item_id
* This method returns the value of the database column tab_haoban_qywx_tag_item.qywx_tag_item_id
*
*
...
...
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/enums/QywxTagRelationTypeEnum.java
View file @
ede972c4
...
@@ -4,15 +4,25 @@ package com.gic.haoban.manage.api.enums;
...
@@ -4,15 +4,25 @@ package com.gic.haoban.manage.api.enums;
* Created by hua on 2021/6/21.
* Created by hua on 2021/6/21.
*/
*/
public
enum
QywxTagRelationTypeEnum
{
public
enum
QywxTagRelationTypeEnum
{
TAG_GROUP
(
0
,
"标签组"
),
TAG_GROUP
(
0
,
"标签组"
,
"tag_group"
),
TAG_ITEM
(
1
,
"标签项"
);
TAG_ITEM
(
1
,
"标签项"
,
"tag"
);
private
int
type
;
private
int
type
;
private
String
name
;
private
String
name
;
private
String
tagType
;
QywxTagRelationTypeEnum
(
int
type
,
String
name
)
{
QywxTagRelationTypeEnum
(
int
type
,
String
name
,
String
tagType
)
{
this
.
type
=
type
;
this
.
type
=
type
;
this
.
name
=
name
;
this
.
name
=
name
;
this
.
tagType
=
tagType
;
}
public
String
getTagType
()
{
return
tagType
;
}
public
void
setTagType
(
String
tagType
)
{
this
.
tagType
=
tagType
;
}
}
public
int
getType
()
{
public
int
getType
()
{
...
@@ -30,4 +40,14 @@ public enum QywxTagRelationTypeEnum {
...
@@ -30,4 +40,14 @@ public enum QywxTagRelationTypeEnum {
public
void
setName
(
String
name
)
{
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
this
.
name
=
name
;
}
}
public
static
QywxTagRelationTypeEnum
getByTagType
(
String
type
)
{
QywxTagRelationTypeEnum
[]
values
=
QywxTagRelationTypeEnum
.
values
();
for
(
QywxTagRelationTypeEnum
value
:
values
)
{
if
(
value
.
getTagType
().
equals
(
type
))
{
return
value
;
}
}
return
null
;
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/QywxTagItemMapper.java
View file @
ede972c4
...
@@ -58,4 +58,13 @@ public interface QywxTagItemMapper {
...
@@ -58,4 +58,13 @@ public interface QywxTagItemMapper {
* @return
* @return
*/
*/
int
delByQywxTagGroupKey
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"qywxTagGroupKey"
)
String
qywxTagGroupKey
);
int
delByQywxTagGroupKey
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"qywxTagGroupKey"
)
String
qywxTagGroupKey
);
/**
* 根据id 获取标签项信息
*
* @param wxEnterpriseId
* @param qywxTagKey
* @return
*/
TabQywxTagItem
getByQywxTagKey
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"qywxTagKey"
)
String
qywxTagKey
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/QywxTagRelationMapper.java
View file @
ede972c4
...
@@ -47,7 +47,7 @@ public interface QywxTagRelationMapper {
...
@@ -47,7 +47,7 @@ public interface QywxTagRelationMapper {
* @param memberTagId
* @param memberTagId
* @return
* @return
*/
*/
List
<
TabQywxTagRelation
>
listByTagId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"memberTagId"
)
String
memberTagId
);
List
<
TabQywxTagRelation
>
listBy
Member
TagId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"memberTagId"
)
String
memberTagId
);
/**
/**
* 删除同步信息
* 删除同步信息
...
@@ -57,4 +57,13 @@ public interface QywxTagRelationMapper {
...
@@ -57,4 +57,13 @@ public interface QywxTagRelationMapper {
* @return
* @return
*/
*/
int
delByMemberTagId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"memberTagId"
)
String
memberTagId
);
int
delByMemberTagId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"memberTagId"
)
String
memberTagId
);
/**
* 查询企业下所有同步的
*
* @param wxEnterpriseId
* @param qywxTagId
* @return
*/
List
<
TabQywxTagRelation
>
listByQywxTagId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"qywxTagId"
)
String
qywxTagId
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/QywxTagService.java
View file @
ede972c4
...
@@ -27,6 +27,15 @@ public interface QywxTagService {
...
@@ -27,6 +27,15 @@ public interface QywxTagService {
public
TabQywxTag
getQywxTagByQywxGroupKey
(
String
wxEnterpriseId
,
String
groupKey
);
public
TabQywxTag
getQywxTagByQywxGroupKey
(
String
wxEnterpriseId
,
String
groupKey
);
/**
/**
* 根据标签组key 查询详情
*
* @param wxEnterpriseId
* @param id
* @return
*/
public
TabQywxTag
getQywxTagByQywxTagId
(
String
wxEnterpriseId
,
String
id
);
/**
* 根据id 查询列表
* 根据id 查询列表
*
*
* @param wxEnterpriseId
* @param wxEnterpriseId
...
@@ -100,7 +109,15 @@ public interface QywxTagService {
...
@@ -100,7 +109,15 @@ public interface QywxTagService {
* @param memberTagId
* @param memberTagId
* @return
* @return
*/
*/
public
TabQywxTagRelation
getQywxTagRelationByMemberTagId
(
String
memberTagId
);
public
List
<
TabQywxTagRelation
>
listQywxTagRelationByMemberTagId
(
String
wxEnterpriseId
,
String
memberTagId
);
/**
* 根据qywxTagId查询
*
* @param qywxTagId
* @return
*/
public
List
<
TabQywxTagRelation
>
listQywxTagRelationByQywxTagId
(
String
wxEnterpriseId
,
String
qywxTagId
);
/**
/**
* 删除企业微信的标签
* 删除企业微信的标签
...
@@ -110,4 +127,25 @@ public interface QywxTagService {
...
@@ -110,4 +127,25 @@ public interface QywxTagService {
* @return
* @return
*/
*/
public
boolean
delQywxTag
(
String
groupKey
,
String
wxEnterpriseId
);
public
boolean
delQywxTag
(
String
groupKey
,
String
wxEnterpriseId
);
/**
* 根据企业微信的标签项获取 标签项
*
* @param wxEnterpriseId
* @param qywxTagKey
* @return
*/
public
TabQywxTagItem
getQywxTagItemByQywxItemKey
(
String
wxEnterpriseId
,
String
qywxTagKey
);
/**
* 删除标签项
*
* @param wxEnterpriseId
* @param id
* @return
*/
public
boolean
delQywxTagItemById
(
String
wxEnterpriseId
,
String
id
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/QywxTagServiceImpl.java
View file @
ede972c4
...
@@ -43,6 +43,11 @@ public class QywxTagServiceImpl implements QywxTagService {
...
@@ -43,6 +43,11 @@ public class QywxTagServiceImpl implements QywxTagService {
}
}
@Override
@Override
public
TabQywxTag
getQywxTagByQywxTagId
(
String
wxEnterpriseId
,
String
id
)
{
return
qywxTagMapper
.
selectByPrimaryKey
(
id
);
}
@Override
public
List
<
TabQywxTagItem
>
listByQywxTagId
(
String
wxEnterpriseId
,
String
qywxTagId
)
{
public
List
<
TabQywxTagItem
>
listByQywxTagId
(
String
wxEnterpriseId
,
String
qywxTagId
)
{
return
qywxTagItemMapper
.
listByQywxTagId
(
wxEnterpriseId
,
qywxTagId
);
return
qywxTagItemMapper
.
listByQywxTagId
(
wxEnterpriseId
,
qywxTagId
);
}
}
...
@@ -158,7 +163,28 @@ public class QywxTagServiceImpl implements QywxTagService {
...
@@ -158,7 +163,28 @@ public class QywxTagServiceImpl implements QywxTagService {
}
}
@Override
@Override
public
TabQywxTagRelation
getQywxTagRelationByMemberTagId
(
String
memberTagId
)
{
public
List
<
TabQywxTagRelation
>
listQywxTagRelationByMemberTagId
(
String
wxEnterpriseId
,
String
memberTagId
)
{
return
null
;
return
qywxTagRelationMapper
.
listByMemberTagId
(
wxEnterpriseId
,
memberTagId
);
}
@Override
public
List
<
TabQywxTagRelation
>
listQywxTagRelationByQywxTagId
(
String
wxEnterpriseId
,
String
qywxTagId
)
{
List
<
TabQywxTagRelation
>
ret
=
qywxTagRelationMapper
.
listByQywxTagId
(
wxEnterpriseId
,
qywxTagId
);
return
ret
;
}
@Override
public
TabQywxTagItem
getQywxTagItemByQywxItemKey
(
String
wxEnterpriseId
,
String
qywxTagKey
)
{
return
qywxTagItemMapper
.
getByQywxTagKey
(
wxEnterpriseId
,
qywxTagKey
);
}
@Override
public
boolean
delQywxTagItemById
(
String
wxEnterpriseId
,
String
id
)
{
TabQywxTagItem
item
=
new
TabQywxTagItem
();
item
.
setQywxTagItemId
(
id
);
item
.
setUpdateTime
(
new
Date
());
item
.
setStatusFlag
(
0
);
qywxTagItemMapper
.
updateByPrimaryKey
(
item
);
return
true
;
}
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
ede972c4
This diff is collapsed.
Click to expand it.
haoban-manage3-service/src/main/resources/mapper/QywxTagItemMapper.xml
View file @
ede972c4
...
@@ -178,4 +178,13 @@
...
@@ -178,4 +178,13 @@
and wx_enterprise_id=#{wxEnterpriseId}
and wx_enterprise_id=#{wxEnterpriseId}
</update>
</update>
<select
id=
"getByQywxTagKey"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_qywx_tag_item
where qywx_tag_key = #{qywxTagKey}
and status_flag=1
and wx_enterprise_id=#{wxEnterpriseId}
</select>
</mapper>
</mapper>
\ No newline at end of file
haoban-manage3-service/src/main/resources/mapper/QywxTagRelationMapper.xml
View file @
ede972c4
...
@@ -196,13 +196,14 @@
...
@@ -196,13 +196,14 @@
and status_flag=1
and status_flag=1
</select>
</select>
<select
id=
"listByTagId"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
<select
id=
"listBy
Member
TagId"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_haoban_qywx_tag_relation
from tab_haoban_qywx_tag_relation
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
and member_tag_id = #{memberTagId,jdbcType=VARCHAR}
and member_tag_id = #{memberTagId,jdbcType=VARCHAR}
and status_flag=1
and status_flag=1
and sync_flag=1
</select>
</select>
<update
id=
"delByMemberTagId"
>
<update
id=
"delByMemberTagId"
>
update tab_haoban_qywx_tag_relation
update tab_haoban_qywx_tag_relation
...
@@ -213,4 +214,14 @@
...
@@ -213,4 +214,14 @@
and member_tag_id = #{memberTagId,jdbcType=VARCHAR}
and member_tag_id = #{memberTagId,jdbcType=VARCHAR}
and status_flag=1
and status_flag=1
</update>
</update>
<select
id=
"listByQywxTagId"
parameterType=
"java.lang.String"
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 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