BUG修复
This commit is contained in:
parent
c8dafceaff
commit
783f5019e8
@ -1251,10 +1251,10 @@ public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemU
|
|||||||
String id = MapUtils.getString(map, "id");
|
String id = MapUtils.getString(map, "id");
|
||||||
// 判断是否存在工作流的流程中
|
// 判断是否存在工作流的流程中
|
||||||
List<HistoricProcessInstance> list = historyService.createHistoricProcessInstanceQuery().unfinished().list();
|
List<HistoricProcessInstance> list = historyService.createHistoricProcessInstanceQuery().unfinished().list();
|
||||||
|
List<String> modelName = new ArrayList<>();
|
||||||
if (list.size() > 0) {
|
if (list.size() > 0) {
|
||||||
Set<String> processDefinitionId = list.stream().map(l -> l.getProcessDefinitionId()).collect(Collectors.toSet());
|
Set<String> processDefinitionId = list.stream().map(l -> l.getProcessDefinitionId()).collect(Collectors.toSet());
|
||||||
StringBuilder stringBuilder = new StringBuilder("该人员有正在进行中的");
|
StringBuilder stringBuilder = new StringBuilder("该人员有正在进行中的");
|
||||||
List<String> modelName = new ArrayList<>();
|
|
||||||
if (processDefinitionId.size() > 0) {
|
if (processDefinitionId.size() > 0) {
|
||||||
Set<String> startUserIds = list.stream().map(l -> l.getStartUserId()).collect(Collectors.toSet());
|
Set<String> startUserIds = list.stream().map(l -> l.getStartUserId()).collect(Collectors.toSet());
|
||||||
if (processDefinitionId.size() > 0) {
|
if (processDefinitionId.size() > 0) {
|
||||||
@ -1332,6 +1332,7 @@ public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemU
|
|||||||
if (stringBuilder.length() > 10) {
|
if (stringBuilder.length() > 10) {
|
||||||
throw new CustomException(stringBuilder + ",请完成流程后再删除账号", HttpStatus.INTERNAL_SERVER_ERROR);
|
throw new CustomException(stringBuilder + ",请完成流程后再删除账号", HttpStatus.INTERNAL_SERVER_ERROR);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// 判断是否有参与到流程审批中
|
// 判断是否有参与到流程审批中
|
||||||
List<WflowModels> modelList = wflowModelsMapper.selectList(null);
|
List<WflowModels> modelList = wflowModelsMapper.selectList(null);
|
||||||
modelName = new ArrayList<>();
|
modelName = new ArrayList<>();
|
||||||
@ -1353,7 +1354,6 @@ public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemU
|
|||||||
if (modelName.size() > 0) {
|
if (modelName.size() > 0) {
|
||||||
throw new CustomException("该人员有参与工作流流程审批,请调整流程后再删除账号", HttpStatus.INTERNAL_SERVER_ERROR);
|
throw new CustomException("该人员有参与工作流流程审批,请调整流程后再删除账号", HttpStatus.INTERNAL_SERVER_ERROR);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
String projectSn = MapUtils.getString(map, "projectSn");
|
String projectSn = MapUtils.getString(map, "projectSn");
|
||||||
SystemUser systemUser = getById(id);
|
SystemUser systemUser = getById(id);
|
||||||
if (systemUser == null) {
|
if (systemUser == null) {
|
||||||
|
|||||||
@ -373,10 +373,6 @@ public class ExamQuestionBankController {
|
|||||||
SystemUser systemUser = systemUserService.getById(user.getUserId());
|
SystemUser systemUser = systemUserService.getById(user.getUserId());
|
||||||
for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
|
for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
|
||||||
MultipartFile file = entity.getValue();// 获取上传文件对象
|
MultipartFile file = entity.getValue();// 获取上传文件对象
|
||||||
ImportParams params = new ImportParams();
|
|
||||||
params.setTitleRows(2);
|
|
||||||
params.setHeadRows(1);
|
|
||||||
params.setNeedSave(true);
|
|
||||||
try {
|
try {
|
||||||
List<Map<String, String>> examQuestionBankImports = ExcelUtils.jxlExlToList(file.getInputStream(), 0);
|
List<Map<String, String>> examQuestionBankImports = ExcelUtils.jxlExlToList(file.getInputStream(), 0);
|
||||||
if (examQuestionBankImports.size() == 0) {
|
if (examQuestionBankImports.size() == 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user