同步日志表相关实体补充
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
package com.adc.da.sync.service;
|
||||||
|
|
||||||
|
public class SyncIAMTimer {
|
||||||
|
}
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
//package com.adc.da.sync.service;
|
|
||||||
//
|
|
||||||
//import com.adc.da.sys.dao.mysql.UserEODao;
|
|
||||||
//import javax.annotation.Resource;
|
|
||||||
//import org.springframework.stereotype.Service;
|
|
||||||
//import org.springframework.transaction.annotation.Propagation;
|
|
||||||
//import org.springframework.transaction.annotation.Transactional;
|
|
||||||
//
|
|
||||||
//@Service("syncService")
|
|
||||||
//@Transactional
|
|
||||||
//public class SyncService {
|
|
||||||
//
|
|
||||||
// @Resource
|
|
||||||
// private UserEODao userEODao;
|
|
||||||
//
|
|
||||||
//// public void syncUserOrg(String usid, String oldOrgId, String newOrgId) {
|
|
||||||
//// userEODao.deleteUserOrgByUsidAndOrgId(usid ,oldOrgId);
|
|
||||||
//// userEODao.saveUserOrg(usid ,newOrgId);
|
|
||||||
//// }
|
|
||||||
//}
|
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package com.adc.da.sync.service.dao.mysql;
|
||||||
|
|
||||||
|
import com.adc.da.sync.service.entity.SyncIAMLogEO;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
public interface SyncIAMLogDao extends BaseMapper<SyncIAMLogEO> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
package com.adc.da.sync.service.entity;
|
||||||
|
|
||||||
|
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 lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* IAM同步日志
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("SYNC_IAM_LOG")
|
||||||
|
public class SyncIAMLogEO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 472389542895L;
|
||||||
|
|
||||||
|
@TableId(value = "id",type = IdType.UUID)
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
@TableField("INCREMENT_START_TIME")
|
||||||
|
private String incrementStartTime; // 增量同步起始时间戳
|
||||||
|
|
||||||
|
@TableField("SYNC_START_DATE")
|
||||||
|
private Date syncStartDate; //同步开始时间
|
||||||
|
|
||||||
|
@TableField("SYNC_END_DATE")
|
||||||
|
private Date syncEndDate; //同步结束时间
|
||||||
|
|
||||||
|
@TableField("SYNC_TYPE")
|
||||||
|
private String syncType; // 同步类型,分为 组织数据 和 用户数据
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
package com.adc.da.sync.service.enums;
|
||||||
|
/***
|
||||||
|
* 同步类型枚举
|
||||||
|
*/
|
||||||
|
public enum SyncTypeEnum {
|
||||||
|
|
||||||
|
USER_DATA("USER_DATA","用户数据"),
|
||||||
|
ORG_DATA("ORG_DATA","组织机构数据");
|
||||||
|
|
||||||
|
private String label;
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
private SyncTypeEnum(String value, String label) {
|
||||||
|
this.value = value;
|
||||||
|
this.label = label;
|
||||||
|
}
|
||||||
|
public String getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLabel() {
|
||||||
|
return label;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.adc.da.sync.service.dao.mysql.SyncIAMLogDao">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Reference in New Issue
Block a user