zelong.shao

dao|初始化dao层

package com.fedex.connect.common.dao.log;
import com.fedex.connect.common.model.log.UserLoginInfo;
import com.fedex.connect.common.model.log.UserLoginInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UserLoginInfoMapper {
long countByExample(UserLoginInfoExample example);
int deleteByExample(UserLoginInfoExample example);
int deleteByPrimaryKey(Long id);
int insert(UserLoginInfo record);
int insertSelective(UserLoginInfo record);
List<UserLoginInfo> selectByExample(UserLoginInfoExample example);
UserLoginInfo selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") UserLoginInfo record, @Param("example") UserLoginInfoExample example);
int updateByExample(@Param("record") UserLoginInfo record, @Param("example") UserLoginInfoExample example);
int updateByPrimaryKeySelective(UserLoginInfo record);
int updateByPrimaryKey(UserLoginInfo record);
}
\ No newline at end of file
package com.fedex.connect.common.dao.log;
\ No newline at end of file
package com.fedex.connect.common.dao.sys;
import com.fedex.connect.common.model.sys.redisSlab;
import com.fedex.connect.common.model.sys.redisSlabExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface redisSlabMapper {
long countByExample(redisSlabExample example);
int deleteByExample(redisSlabExample example);
int deleteByPrimaryKey(Long id);
int insert(redisSlab record);
int insertSelective(redisSlab record);
List<redisSlab> selectByExample(redisSlabExample example);
redisSlab selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") redisSlab record, @Param("example") redisSlabExample example);
int updateByExample(@Param("record") redisSlab record, @Param("example") redisSlabExample example);
int updateByPrimaryKeySelective(redisSlab record);
int updateByPrimaryKey(redisSlab record);
}
\ No newline at end of file
package com.fedex.connect.common.mapper.log;
\ No newline at end of file
package com.fedex.connect.common.model.log;
import java.io.Serializable;
import java.util.Date;
/**
* DESC: 用户登录日志表
* TABLE: T_LOG_USER_LOGIN_INFO
*/
public class UserLoginInfo implements Serializable {
/**
* ID,主键自增
*/
private Long id;
/**
* 操作人用户ID,关联用户表ID
*/
private Long userId;
/**
* 操作类型ID。
关联数据字典表。指定字典目录CODE:USER_LOGIN_TYPE
*/
private Long operTypeId;
/**
* 操作类型名称(登录、退出、修改密码、FCL登录注册,、停用、启用)
*/
private String operTypeName;
/**
* 操作描述
*/
private String operDesc;
/**
* 操作IP
*/
private String ip;
/**
* 创建时间
*/
private Date createTime;
/**
* 创建人ID,关联用户表ID
*/
private Long createUserId;
/**
* 创建人名称
*/
private String createUserName;
/**
* 修改时间
*/
private Date modifyTime;
/**
* 修改人ID,关联用户表ID
*/
private Long modifyUserId;
/**
* 修改人名称
*/
private String modifyUserName;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Long getOperTypeId() {
return operTypeId;
}
public void setOperTypeId(Long operTypeId) {
this.operTypeId = operTypeId;
}
public String getOperTypeName() {
return operTypeName;
}
public void setOperTypeName(String operTypeName) {
this.operTypeName = operTypeName == null ? null : operTypeName.trim();
}
public String getOperDesc() {
return operDesc;
}
public void setOperDesc(String operDesc) {
this.operDesc = operDesc == null ? null : operDesc.trim();
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip == null ? null : ip.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateUserId() {
return createUserId;
}
public void setCreateUserId(Long createUserId) {
this.createUserId = createUserId;
}
public String getCreateUserName() {
return createUserName;
}
public void setCreateUserName(String createUserName) {
this.createUserName = createUserName == null ? null : createUserName.trim();
}
public Date getModifyTime() {
return modifyTime;
}
public void setModifyTime(Date modifyTime) {
this.modifyTime = modifyTime;
}
public Long getModifyUserId() {
return modifyUserId;
}
public void setModifyUserId(Long modifyUserId) {
this.modifyUserId = modifyUserId;
}
public String getModifyUserName() {
return modifyUserName;
}
public void setModifyUserName(String modifyUserName) {
this.modifyUserName = modifyUserName == null ? null : modifyUserName.trim();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", userId=").append(userId);
sb.append(", operTypeId=").append(operTypeId);
sb.append(", operTypeName=").append(operTypeName);
sb.append(", operDesc=").append(operDesc);
sb.append(", ip=").append(ip);
sb.append(", createTime=").append(createTime);
sb.append(", createUserId=").append(createUserId);
sb.append(", createUserName=").append(createUserName);
sb.append(", modifyTime=").append(modifyTime);
sb.append(", modifyUserId=").append(modifyUserId);
sb.append(", modifyUserName=").append(modifyUserName);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.fedex.connect.common.model.log;
\ No newline at end of file
package com.fedex.connect.common.model.sys;
import java.io.Serializable;
import java.util.Date;
/**
* DESC: 用户登录信息token表
* TABLE: T_SYS_REDIS_SLAB
*/
public class redisSlab implements Serializable {
/**
* ID,自动增加
*/
private Long id;
/**
* Redis key
*/
private String redisKey;
/**
* Redis信息
*/
private String redisMsg;
/**
* 有效时长
*/
private Long validDuration;
/**
* 失效时间
*/
private Date disTime;
/**
* 创建时间
*/
private Date createTime;
/**
* 创建人ID,关联用户表ID
*/
private Long createUserId;
/**
* 创建人名称
*/
private String createUserName;
/**
* 修改时间
*/
private Date modifyTime;
/**
* 修改人ID,关联用户表ID
*/
private Long modifyUserId;
/**
* 修改人名称
*/
private String modifyUserName;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getRedisKey() {
return redisKey;
}
public void setRedisKey(String redisKey) {
this.redisKey = redisKey == null ? null : redisKey.trim();
}
public String getRedisMsg() {
return redisMsg;
}
public void setRedisMsg(String redisMsg) {
this.redisMsg = redisMsg == null ? null : redisMsg.trim();
}
public Long getValidDuration() {
return validDuration;
}
public void setValidDuration(Long validDuration) {
this.validDuration = validDuration;
}
public Date getDisTime() {
return disTime;
}
public void setDisTime(Date disTime) {
this.disTime = disTime;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateUserId() {
return createUserId;
}
public void setCreateUserId(Long createUserId) {
this.createUserId = createUserId;
}
public String getCreateUserName() {
return createUserName;
}
public void setCreateUserName(String createUserName) {
this.createUserName = createUserName == null ? null : createUserName.trim();
}
public Date getModifyTime() {
return modifyTime;
}
public void setModifyTime(Date modifyTime) {
this.modifyTime = modifyTime;
}
public Long getModifyUserId() {
return modifyUserId;
}
public void setModifyUserId(Long modifyUserId) {
this.modifyUserId = modifyUserId;
}
public String getModifyUserName() {
return modifyUserName;
}
public void setModifyUserName(String modifyUserName) {
this.modifyUserName = modifyUserName == null ? null : modifyUserName.trim();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", redisKey=").append(redisKey);
sb.append(", redisMsg=").append(redisMsg);
sb.append(", validDuration=").append(validDuration);
sb.append(", disTime=").append(disTime);
sb.append(", createTime=").append(createTime);
sb.append(", createUserId=").append(createUserId);
sb.append(", createUserName=").append(createUserName);
sb.append(", modifyTime=").append(modifyTime);
sb.append(", modifyUserId=").append(modifyUserId);
sb.append(", modifyUserName=").append(modifyUserName);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
......@@ -40,7 +40,7 @@
sys:系统 系统相关表,例如kafka表
log: 日志 日志记录表,例如邮件发送日志表
-->
<javaModelGenerator targetPackage="com.fedex.connect.common.model.base" targetProject="src/main/java">
<javaModelGenerator targetPackage="com.fedex.connect.common.model.sys" targetProject="src/main/java">
<!---enableSubPackages:如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性-->
<property name="enableSubPackages" value="false"/>
<!--该属性只对MyBatis3有效,如果true就会使用构造方法入参,如果false就会使用setter方式。默认为false-->
......@@ -52,13 +52,13 @@
</javaModelGenerator>
<!-- 生成映射文件*.xml的位置-->
<sqlMapGenerator targetPackage="mapper.base" targetProject="src/main/java/com/fedex/connect/common">
<sqlMapGenerator targetPackage="mapper.sys" targetProject="src/main/java/com/fedex/connect/common">
<!--如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性。默认为false-->
<property name="enableSubPackages" value="false"/>
</sqlMapGenerator>
<!-- 生成DAO的包名和位置 -->
<javaClientGenerator type="XMLMAPPER" targetPackage="com.fedex.connect.common.dao.base" targetProject="src/main/java">
<javaClientGenerator type="XMLMAPPER" targetPackage="com.fedex.connect.common.dao.sys" targetProject="src/main/java">
<!--如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性。默认为false-->
<property name="enableSubPackages" value="false"/>
</javaClientGenerator>
......@@ -73,6 +73,13 @@
generatedKey 指定KEY,Oracle需要指定序列。
sqlStatement 指定序列名称
-->
<table tableName="T_SYS_REDIS_SLAB" domainObjectName="redisSlab"
enableCountByExample="true" enableUpdateByExample="true"
enableDeleteByExample="true" enableSelectByExample="true"
selectByExampleQueryId="true">
<generatedKey column="ID" sqlStatement="SELECT SEQ_T_SYS_REDIS_SLAB.NEXTVAL FROM DUAL" />
</table>
<!-- <table tableName="T_KAFKA_TEMPORARY_STORAGE" domainObjectName="KafkaTemporaryStorage"-->
<!-- enableCountByExample="true" enableUpdateByExample="true"-->
<!-- enableDeleteByExample="true" enableSelectByExample="true"-->
......@@ -123,18 +130,18 @@
<!-- </table>-->
<table tableName="T_BI_DICTIONARY_ENTRIES" domainObjectName="DictionaryEntries"
enableCountByExample="true" enableUpdateByExample="true"
enableDeleteByExample="true" enableSelectByExample="true"
selectByExampleQueryId="true">
<generatedKey column="ID" sqlStatement="SELECT SEQ_T_BI_DICTIONARY_ENTRIES.NEXTVAL FROM DUAL" />
</table>
<table tableName="T_BI_DICTIONARY" domainObjectName="Dictionary"
enableCountByExample="true" enableUpdateByExample="true"
enableDeleteByExample="true" enableSelectByExample="true"
selectByExampleQueryId="true">
<generatedKey column="ID" sqlStatement="SELECT SEQ_T_BI_DICTIONARY.NEXTVAL FROM DUAL" />
</table>
<!-- <table tableName="T_BI_DICTIONARY_ENTRIES" domainObjectName="DictionaryEntries"-->
<!-- enableCountByExample="true" enableUpdateByExample="true"-->
<!-- enableDeleteByExample="true" enableSelectByExample="true"-->
<!-- selectByExampleQueryId="true">-->
<!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_BI_DICTIONARY_ENTRIES.NEXTVAL FROM DUAL" />-->
<!-- </table>-->
<!-- <table tableName="T_BI_DICTIONARY" domainObjectName="Dictionary"-->
<!-- enableCountByExample="true" enableUpdateByExample="true"-->
<!-- enableDeleteByExample="true" enableSelectByExample="true"-->
<!-- selectByExampleQueryId="true">-->
<!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_BI_DICTIONARY.NEXTVAL FROM DUAL" />-->
<!-- </table>-->
<!-- <table tableName="T_TASK_MANAGEMENT" domainObjectName="TaskManagement"-->
......