Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 19d67b5a
authored
Oct 22, 2021
by
linkwechat8856@163.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复员工离职bug
1 parent
c2ec5325
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeMsgTlpController.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeMsgTlp.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/handler/GenericTypeHandler.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeMsgTlpController.java
View file @
19d67b5
...
@@ -46,6 +46,7 @@ public class WeMsgTlpController extends BaseController
...
@@ -46,6 +46,7 @@ public class WeMsgTlpController extends BaseController
}
}
/**
/**
* 新增欢迎语模板
* 新增欢迎语模板
*/
*/
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeMsgTlp.java
View file @
19d67b5
...
@@ -19,7 +19,7 @@ import java.util.List;
...
@@ -19,7 +19,7 @@ import java.util.List;
* @date 2020-10-04
* @date 2020-10-04
*/
*/
@Data
@Data
@TableName
(
"we_msg_tlp"
)
@TableName
(
value
=
"we_msg_tlp"
,
autoResultMap
=
true
)
public
class
WeMsgTlp
extends
BaseEntity
public
class
WeMsgTlp
extends
BaseEntity
{
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -38,13 +38,13 @@ public class WeMsgTlp extends BaseEntity
...
@@ -38,13 +38,13 @@ public class WeMsgTlp extends BaseEntity
/**图文*/
/**图文*/
@TableField
(
typeHandler
=
GenericTypeHandler
.
class
)
@TableField
(
typeHandler
=
GenericTypeHandler
.
class
)
private
ImageText
imageText
;
private
List
<
ImageText
>
imageText
;
/**小程序*/
/**小程序*/
@TableField
(
typeHandler
=
GenericTypeHandler
.
class
)
@TableField
(
typeHandler
=
GenericTypeHandler
.
class
)
private
Applet
applet
;
private
List
<
Applet
>
applet
;
/** 0:正常;1:删除; */
/** 0:正常;1:删除; */
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/handler/GenericTypeHandler.java
View file @
19d67b5
...
@@ -2,6 +2,7 @@ package com.linkwechat.wecom.handler;
...
@@ -2,6 +2,7 @@ package com.linkwechat.wecom.handler;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.linkwechat.wecom.domain.WeMoments
;
import
com.linkwechat.wecom.domain.WeMsgTlp
;
import
com.linkwechat.wecom.domain.WeMsgTlp
;
import
com.linkwechat.wecom.domain.dto.message.CustomerMessagePushDto
;
import
com.linkwechat.wecom.domain.dto.message.CustomerMessagePushDto
;
import
org.apache.ibatis.type.BaseTypeHandler
;
import
org.apache.ibatis.type.BaseTypeHandler
;
...
@@ -19,7 +20,8 @@ import java.sql.SQLException;
...
@@ -19,7 +20,8 @@ import java.sql.SQLException;
* @param <T>
* @param <T>
*/
*/
@SuppressWarnings
(
"all"
)
@SuppressWarnings
(
"all"
)
@MappedTypes
(
value
=
{
JSONObject
.
class
,
CustomerMessagePushDto
.
class
,
WeMsgTlp
.
Applet
.
class
,
WeMsgTlp
.
ImageText
.
class
})
@MappedTypes
(
value
=
{
JSONObject
.
class
,
CustomerMessagePushDto
.
class
,
WeMsgTlp
.
Applet
.
class
,
WeMsgTlp
.
ImageText
.
class
,
WeMoments
.
OtherContent
.
class
})
@MappedJdbcTypes
(
value
=
{
JdbcType
.
VARCHAR
},
includeNullJdbcType
=
true
)
@MappedJdbcTypes
(
value
=
{
JdbcType
.
VARCHAR
},
includeNullJdbcType
=
true
)
public
class
GenericTypeHandler
<
T
extends
Object
>
extends
BaseTypeHandler
<
T
>
{
public
class
GenericTypeHandler
<
T
extends
Object
>
extends
BaseTypeHandler
<
T
>
{
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
View file @
19d67b5
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment