定时用户同步,和组织机构同步
This commit is contained in:
@@ -3,10 +3,7 @@ package com.adc.da.slrs.sarUser.dao;
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.slrs.sarUser.entity.TsUser;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -20,6 +17,9 @@ import java.util.List;
|
||||
*/
|
||||
public interface TsUserDao extends BaseMapper<TsUser> {
|
||||
|
||||
@Update("truncate table ts_user")
|
||||
void deleteUser();
|
||||
|
||||
/**
|
||||
* 查询用户已经绑定的岗位ID
|
||||
*/
|
||||
|
||||
@@ -21,6 +21,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface ITsUserService extends IService<TsUser> {
|
||||
|
||||
void deleteUser();
|
||||
|
||||
/**
|
||||
* 通过机构ID查询人员
|
||||
|
||||
@@ -62,6 +62,11 @@ public class TsUserServiceImpl extends ServiceImpl<TsUserDao, TsUser> implements
|
||||
@Autowired
|
||||
private TsPositionDao tsPositionDao;
|
||||
|
||||
|
||||
public void deleteUser(){
|
||||
tsUserDao.deleteUser();
|
||||
};
|
||||
|
||||
/**
|
||||
* 通过机构ID查询人员
|
||||
* @return List<TsUser>
|
||||
|
||||
Reference in New Issue
Block a user