Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
仟微科技
Link Wechat
提交
a42ce3a5
Link Wechat
项目概览
仟微科技
/
Link Wechat
通知
48
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Link Wechat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
a42ce3a5
编写于
6月 23, 2021
作者:
孙
孙喜旺
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
客户群对象修改
上级
b34fea76
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
51 addition
and
27 deletion
+51
-27
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeGroup.java
...om/src/main/java/com/linkwechat/wecom/domain/WeGroup.java
+19
-12
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeGroupMember.java
.../main/java/com/linkwechat/wecom/domain/WeGroupMember.java
+29
-12
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeGroupServiceImpl.java
...com/linkwechat/wecom/service/impl/WeGroupServiceImpl.java
+3
-3
未找到文件。
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeGroup.java
浏览文件 @
a42ce3a5
package
com.linkwechat.wecom.domain
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
...
...
@@ -28,31 +29,44 @@ import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@TableName
(
"we_group"
)
public
class
WeGroup
{
public
class
WeGroup
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@TableId
@ApiModelProperty
(
value
=
"主键"
)
@TableId
(
type
=
IdType
.
AUTO
)
@TableField
(
"id"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"企业id"
)
@TableField
(
value
=
"corp_id"
)
private
String
corpId
;
@ApiModelProperty
(
value
=
"群聊id"
)
@TableField
(
value
=
"chat_id"
)
private
String
chatId
;
@ApiModelProperty
(
value
=
"群名"
)
@TableField
(
value
=
"group_name"
)
private
String
groupName
;
@TableField
(
exist
=
false
)
private
Long
memberNum
;
@ApiModelProperty
(
value
=
"群公告"
)
@TableField
(
value
=
"notice"
)
private
String
notice
;
@ApiModelProperty
(
value
=
"群主userId"
)
@TableField
(
value
=
"owner"
)
private
String
owner
;
@ApiModelProperty
(
value
=
"0 - 正常;1 - 跟进人离职;2 - 离职继承中;3 - 离职继承完成"
)
@TableField
(
value
=
"status"
)
private
Integer
status
;
@
JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd
"
)
@
DateTimeFormat
(
pattern
=
"yyyy-MM-dd
"
)
private
Date
createTime
;
@
ApiModelProperty
(
value
=
"删除标识 0 正常 1 无效
"
)
@
TableField
(
value
=
"del_flag
"
)
private
Integer
delFlag
;
@TableField
(
exist
=
false
)
private
String
groupLeaderName
;
...
...
@@ -61,13 +75,6 @@ public class WeGroup {
@TableField
(
exist
=
false
)
private
String
groupLeader
;
@TableField
(
exist
=
false
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
String
beginTime
;
@TableField
(
exist
=
false
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
String
endTime
;
/**员工id*/
@TableField
(
exist
=
false
)
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeGroupMember.java
浏览文件 @
a42ce3a5
package
com.linkwechat.wecom.domain
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.linkwechat.common.core.domain.BaseEntity
;
import
com.linkwechat.common.utils.SnowFlakeUtil
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.models.auth.In
;
import
lombok.AllArgsConstructor
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.SuperBuilder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
...
...
@@ -20,40 +24,53 @@ import java.util.Date;
* @Description:
* @Date: create in 2020/9/21 0021 23:56
*/
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
@Data
@TableName
(
"we_group_member"
)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public
class
WeGroupMember
{
public
class
WeGroupMember
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@TableId
private
Long
id
=
SnowFlakeUtil
.
nextId
();;
@ApiModelProperty
(
value
=
"主键"
)
@TableId
(
type
=
IdType
.
AUTO
)
@TableField
(
"id"
)
private
Long
id
;
@NotBlank
(
message
=
"groupId"
)
@ApiModelProperty
(
value
=
"企业id"
)
@TableField
(
value
=
"corp_id"
)
private
String
corpId
;
@ApiModelProperty
(
value
=
"群聊id"
)
@NotBlank
(
message
=
"群聊id不能为空"
)
@TableField
(
value
=
"chat_id"
)
private
String
chatId
;
@TableField
(
exist
=
false
)
private
String
memberName
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"加入时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@TableField
(
value
=
"join_time"
)
private
Date
joinTime
;
/**入群方式: 1 - 由成员邀请入群(直接邀请入群) ; 2 - 由成员邀请入群(通过邀请链接入群); 3 - 通过扫描群二维码入群 */
@ApiModelProperty
(
value
=
"入群方式: 1 - 由成员邀请入群(直接邀请入群) ; 2 - 由成员邀请入群(通过邀请链接入群); 3 - 通过扫描群二维码入群"
)
@TableField
(
value
=
"join_scene"
)
private
Integer
joinScene
;
@ApiModelProperty
(
value
=
"成员类型:1 - 企业成员;2 - 外部联系人"
)
@TableField
(
value
=
"type"
)
private
Integer
joinType
;
private
Integer
type
;
@ApiModelProperty
(
value
=
"群成员id"
)
@TableField
(
value
=
"user_id"
)
private
String
userId
;
@ApiModelProperty
(
value
=
"外部联系人在微信开放平台的唯一身份标识"
)
@TableField
(
value
=
"union_id"
)
private
String
unionId
;
}
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeGroupServiceImpl.java
浏览文件 @
a42ce3a5
...
...
@@ -183,7 +183,7 @@ public class WeGroupServiceImpl extends ServiceImpl<WeGroupMapper, WeGroup> impl
.
userId
(
member
.
getUserid
())
.
joinTime
(
new
Date
(
member
.
getJoin_time
()
*
1000L
))
.
joinScene
(
member
.
getJoin_scene
())
.
joinT
ype
(
member
.
getType
())
.
t
ype
(
member
.
getType
())
.
unionId
(
member
.
getUnionid
())
.
build
()
);
...
...
@@ -247,7 +247,7 @@ public class WeGroupServiceImpl extends ServiceImpl<WeGroupMapper, WeGroup> impl
.
userId
(
member
.
getUserid
())
.
joinTime
(
new
Date
(
member
.
getJoin_time
()
*
1000L
))
.
joinScene
(
member
.
getJoin_scene
())
.
joinT
ype
(
member
.
getType
())
.
t
ype
(
member
.
getType
())
.
unionId
(
member
.
getUnionid
())
.
build
()
);
...
...
@@ -288,7 +288,7 @@ public class WeGroupServiceImpl extends ServiceImpl<WeGroupMapper, WeGroup> impl
.
userId
(
member
.
getUserid
())
.
joinTime
(
new
Date
(
member
.
getJoin_time
()
*
1000L
))
.
joinScene
(
member
.
getJoin_scene
())
.
joinT
ype
(
member
.
getType
())
.
t
ype
(
member
.
getType
())
.
unionId
(
member
.
getUnionid
())
.
build
()
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录