增加钉钉数据同步日志
This commit is contained in:
parent
36dde69227
commit
1a3d279657
|
@ -54,6 +54,54 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">工号:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group">
|
||||
<input id="jobnumber" name="jobnumber" placeholder="请输入工号" class="form-control" type="text" required>
|
||||
<span class="input-group-addon"><i class="fa fa-mobile"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">工作地点:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group">
|
||||
<input id="workPlace" name="workPlace" class="form-control" type="text" maxlength="20" placeholder="请输入工作地点" required>
|
||||
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">入职时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group">
|
||||
<input id="hiredDate" name="hiredDate" placeholder="请输入入职时间" class="form-control" type="text" required>
|
||||
<span class="input-group-addon"><i class="fa fa-mobile"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">公司邮箱:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group">
|
||||
<input id="orgEmail" name="orgEmail" class="form-control" type="text" maxlength="20" placeholder="请输入公司邮箱" >
|
||||
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
|
|
|
@ -5,12 +5,14 @@ import java.util.Date;
|
|||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Entity基类
|
||||
*
|
||||
* @author snow
|
||||
*/
|
||||
|
||||
public class BaseEntity implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
@ -37,6 +39,10 @@ public class BaseEntity implements Serializable
|
|||
|
||||
/** 请求参数 */
|
||||
private Map<String, Object> params;
|
||||
/**
|
||||
* 是否同步到钉钉
|
||||
*/
|
||||
private Boolean isSyncDingTalk=true;
|
||||
|
||||
public String getSearchValue()
|
||||
{
|
||||
|
@ -111,4 +117,12 @@ public class BaseEntity implements Serializable
|
|||
{
|
||||
this.params = params;
|
||||
}
|
||||
|
||||
public Boolean getIsSyncDingTalk() {
|
||||
return isSyncDingTalk;
|
||||
}
|
||||
|
||||
public void setIsSyncDingTalk(Boolean syncDingTalk) {
|
||||
isSyncDingTalk = syncDingTalk;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ public class SysDept extends BaseEntity
|
|||
/** 父部门名称 */
|
||||
private String parentName;
|
||||
|
||||
private Boolean isSyncDingTalk=true;
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
|
|
|
@ -135,6 +135,7 @@ public class SysUser extends BaseEntity
|
|||
*/
|
||||
private String orgEmail;
|
||||
|
||||
|
||||
public SysUser()
|
||||
{
|
||||
|
||||
|
|
|
@ -213,8 +213,10 @@ public class SysUserServiceImpl implements ISysUserService
|
|||
// 新增用户与角色管理
|
||||
insertUserRole(user.getUserId(), user.getRoleIds());
|
||||
//同步用户数据
|
||||
SyncEvent syncEvent = new SyncEvent(user, DingTalkListenerType.USER_CREATE);
|
||||
applicationContext.publishEvent(syncEvent);
|
||||
if(user.getIsSyncDingTalk()){
|
||||
SyncEvent syncEvent = new SyncEvent(user, DingTalkListenerType.USER_CREATE);
|
||||
applicationContext.publishEvent(syncEvent);
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue