邮件模块 bug -修改保留字

pull/2/head
wangjingyi 2022-05-05 04:36:32 +08:00
parent 8bc5254e30
commit 8d6a4d40a0
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package cn.iocoder.yudao.module.system.dal.dataobject.mail; package cn.iocoder.yudao.module.system.dal.dataobject.mail;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -24,6 +25,7 @@ public class MailAccountDO extends BaseDO {
/** /**
* *
*/ */
@TableField("`from`")
private String from; private String from;
/** /**
* *

View File

@ -16,7 +16,7 @@ public interface MailAccountMapper extends BaseMapperX<MailAccountDO> {
default PageResult<MailAccountDO> selectPage(MailAccountPageReqVO pageReqVO) { default PageResult<MailAccountDO> selectPage(MailAccountPageReqVO pageReqVO) {
return selectPage(pageReqVO, new QueryWrapperX<MailAccountDO>() return selectPage(pageReqVO, new QueryWrapperX<MailAccountDO>()
.likeIfPresent("form" , pageReqVO.getFrom()) .likeIfPresent("from" , pageReqVO.getFrom())
.likeIfPresent("host" , pageReqVO.getHost()) .likeIfPresent("host" , pageReqVO.getHost())
.likeIfPresent("username" , pageReqVO.getUsername()) .likeIfPresent("username" , pageReqVO.getUsername())
.eqIfPresent("password" , pageReqVO.getPassword()) .eqIfPresent("password" , pageReqVO.getPassword())