修复员工离职bug

1 parent c2ec5325
......@@ -46,6 +46,7 @@ public class WeMsgTlpController extends BaseController
}
/**
* 新增欢迎语模板
*/
......
......@@ -19,7 +19,7 @@ import java.util.List;
* @date 2020-10-04
*/
@Data
@TableName("we_msg_tlp")
@TableName(value = "we_msg_tlp",autoResultMap = true)
public class WeMsgTlp extends BaseEntity
{
private static final long serialVersionUID = 1L;
......@@ -38,13 +38,13 @@ public class WeMsgTlp extends BaseEntity
/**图文*/
@TableField(typeHandler = GenericTypeHandler.class)
private ImageText imageText;
private List<ImageText> imageText;
/**小程序*/
@TableField(typeHandler = GenericTypeHandler.class)
private Applet applet;
private List<Applet> applet;
/** 0:正常;1:删除; */
......
......@@ -2,6 +2,7 @@ package com.linkwechat.wecom.handler;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.linkwechat.wecom.domain.WeMoments;
import com.linkwechat.wecom.domain.WeMsgTlp;
import com.linkwechat.wecom.domain.dto.message.CustomerMessagePushDto;
import org.apache.ibatis.type.BaseTypeHandler;
......@@ -19,7 +20,8 @@ import java.sql.SQLException;
* @param <T>
*/
@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)
public class GenericTypeHandler<T extends Object> extends BaseTypeHandler<T> {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!