工作流引入【未完全修复完毕】
This commit is contained in:
@@ -3,6 +3,7 @@ package com.adc.da.sys.dao.mysql;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.adc.da.sys.vo.UserVO;
|
||||
import com.adc.da.sys.vo.ddm.DdmUserQueryVO;
|
||||
import com.adc.da.sys.vo.ddm.DdmUserVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
@@ -33,6 +34,8 @@ public interface UserEODao extends BaseMapper<UserEO> {
|
||||
*/
|
||||
UserEO getUserWithRoles(String id);
|
||||
|
||||
List<UserVO> getUserByIdList(List<String> userIdList);
|
||||
|
||||
// 根据account获取未逻辑删除的UserEO
|
||||
UserEO getUserEOByAccountNotDeleted(String account);
|
||||
|
||||
@@ -42,11 +45,6 @@ public interface UserEODao extends BaseMapper<UserEO> {
|
||||
|
||||
int insertUserBatch(@Param("userEOList") List<UserEO> userEOList);
|
||||
|
||||
UserEO getDdmUserEOByAccountNotDeleted(String account);
|
||||
|
||||
List<Map<String, Object>> allList( @Param("account") String account, @Param("roleName") String roleName);
|
||||
|
||||
List<UserEO> getUserByMail(@Param("mailList") List<String> mailList);
|
||||
|
||||
List<UserEO> getUserByAccount(@Param("accountList") List<String> accountList);
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ import com.adc.da.sys.entity.UserRoleEO;
|
||||
import com.adc.da.sys.service.iservice.IUserEoService;
|
||||
import com.adc.da.sys.util.EncryptUtil;
|
||||
import com.adc.da.sys.vo.UserImportVO;
|
||||
import com.adc.da.sys.vo.UserVO;
|
||||
import com.adc.da.sys.vo.ddm.DdmUserQueryVO;
|
||||
import com.adc.da.sys.vo.ddm.DdmUserVO;
|
||||
import com.adc.da.util.exception.AdcDaBaseException;
|
||||
@@ -71,16 +72,6 @@ public class UserEOServiceImpl implements IUserEoService {
|
||||
return dao.selectOne(wrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getUserCountByEmail(String email, String usid) {
|
||||
QueryWrapper<UserEO> wrapper = new QueryWrapper();
|
||||
wrapper.eq("EMAIL", email).eq("DEL_FLAG", "0");
|
||||
if (StringUtils.isNotEmpty(usid)) {
|
||||
wrapper.ne("USID", usid);
|
||||
}
|
||||
return dao.selectCount(wrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(UserEO eo) {
|
||||
@@ -145,6 +136,11 @@ public class UserEOServiceImpl implements IUserEoService {
|
||||
return userEO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UserVO> getUserByIdList(List<String> userIdList){
|
||||
return dao.getUserByIdList(userIdList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IPage<Map<String, Object>> list(int pageNo, int pageSize, String account, String roleName) {
|
||||
IPage page = new Page();
|
||||
@@ -288,16 +284,6 @@ public class UserEOServiceImpl implements IUserEoService {
|
||||
return dao.allList(account,roleName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UserEO> getUserByMail(List<String> mailList) {
|
||||
return dao.getUserByMail(mailList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UserEO> getUserByAccount(List<String> accountList) {
|
||||
return dao.getUserByAccount(accountList);
|
||||
}
|
||||
|
||||
void checkExcel(List<UserImportVO> list) {
|
||||
if (CollectionUtils.isEmpty(list)) {
|
||||
throw new AdcDaBaseException("数据不能为空");
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.adc.da.sys.service.iservice;
|
||||
|
||||
import com.adc.da.sys.entity.UserEO;
|
||||
import com.adc.da.sys.vo.UserImportVO;
|
||||
import com.adc.da.sys.vo.UserVO;
|
||||
import com.adc.da.sys.vo.ddm.DdmUserQueryVO;
|
||||
import com.adc.da.sys.vo.ddm.DdmUserVO;
|
||||
import com.adc.da.util.http.PageInfo;
|
||||
@@ -24,14 +25,6 @@ public interface IUserEoService {
|
||||
*/
|
||||
UserEO getUserByLoginName(String userName,String usid);
|
||||
|
||||
/**
|
||||
* 根据邮箱和id查询用户数量
|
||||
* @param email
|
||||
* @param usid
|
||||
* @return
|
||||
*/
|
||||
int getUserCountByEmail(String email,String usid);
|
||||
|
||||
/**
|
||||
* 新增或者编辑用户
|
||||
* @param eo
|
||||
@@ -42,6 +35,8 @@ public interface IUserEoService {
|
||||
|
||||
UserEO getUserById(String usid);
|
||||
|
||||
List<UserVO> getUserByIdList(List<String> userIdList);
|
||||
|
||||
IPage<Map<String, Object>> list(int pageNo, int pageSize, String account, String roleName);
|
||||
|
||||
void delete(String ids);
|
||||
@@ -50,13 +45,8 @@ public interface IUserEoService {
|
||||
|
||||
UserEO getUserByLoginNameNotDeleted(String userName);
|
||||
|
||||
public PageInfo<DdmUserVO> getUserPage(DdmUserQueryVO query);
|
||||
|
||||
public void importExcelUser(List<UserImportVO> list);
|
||||
|
||||
List<Map<String, Object>> allList(String account, String roleName);
|
||||
|
||||
List<UserEO> getUserByMail(List<String> mailList);
|
||||
|
||||
List<UserEO> getUserByAccount(List<String> mailList);
|
||||
}
|
||||
|
||||
@@ -38,15 +38,8 @@ public class UserVO {
|
||||
*/
|
||||
private String email;
|
||||
|
||||
|
||||
|
||||
|
||||
private String department;
|
||||
|
||||
|
||||
private String usname;
|
||||
|
||||
|
||||
/**
|
||||
* 角色ID列表
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user