工作组变更
This commit is contained in:
+3
-1
@@ -369,6 +369,7 @@ public class PayWorkingGroupSubItemController extends JeroController<PayWorkingG
|
||||
if(CollectionUtils.isEmpty(listPayContactsManagementTemporary)){
|
||||
return Result.error("联系人不存在!");
|
||||
}
|
||||
// todo 联系人关联表
|
||||
listPayWorkingGroupSubItem.forEach(p->{
|
||||
List<PayContactsManagementTemporary> listContactsInfo = listPayContactsManagementTemporary.stream().filter(item->Objects.equals(p.getContactsTemporaryIdOne(),item.getId())).collect(Collectors.toList());
|
||||
if(CollectionUtils.isEmpty(listContactsInfo)){
|
||||
@@ -510,7 +511,7 @@ public class PayWorkingGroupSubItemController extends JeroController<PayWorkingG
|
||||
}
|
||||
// Step.1 组装查询条件
|
||||
QueryWrapper<PayWorkingGroupSubItem> queryWrapper = QueryGenerator.initQueryWrapper(payWorkingGroupSubItem, request.getParameterMap());
|
||||
|
||||
// todo 联系人关联表
|
||||
// Step.2 获取导出数据
|
||||
List<PayWorkingGroupSubItem> pageList = payWorkingGroupSubItemService.list(queryWrapper);
|
||||
List<PayWorkingGroupSubItem> exportList;
|
||||
@@ -597,6 +598,7 @@ public class PayWorkingGroupSubItemController extends JeroController<PayWorkingG
|
||||
if (excelData.isEmpty()) {
|
||||
throw new JeroBootException("导入数据为空,请填写数据之后重新导入!");
|
||||
}
|
||||
// todo 联系人关联表
|
||||
payWorkingGroupSubItemService.importExcel(request);
|
||||
return Result.OK("文件导入成功!");
|
||||
}
|
||||
|
||||
+9
@@ -767,6 +767,10 @@ public class PayWorkingGroupSubItemServiceImpl extends ServiceImpl<PayWorkingGro
|
||||
}
|
||||
deleteProject(id,"workingGroupMember:delete");
|
||||
payWorkingGroupSubItemService.removeById(id);
|
||||
// 删除成员企业联系人
|
||||
LambdaUpdateWrapper<PayWorkingGroupSubItemContacts> updatePayWorkingGroupSubItemContacts = new LambdaUpdateWrapper<>();
|
||||
updatePayWorkingGroupSubItemContacts.eq(PayWorkingGroupSubItemContacts::getWorkingGroupSubId,id);
|
||||
payWorkingGroupSubItemContactsService.remove(updatePayWorkingGroupSubItemContacts);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -783,6 +787,10 @@ public class PayWorkingGroupSubItemServiceImpl extends ServiceImpl<PayWorkingGro
|
||||
deleteProject(s1,"workingGroupMember:batchDel");
|
||||
}
|
||||
payWorkingGroupSubItemService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
// 删除成员企业联系人
|
||||
LambdaUpdateWrapper<PayWorkingGroupSubItemContacts> updatePayWorkingGroupSubItemContacts = new LambdaUpdateWrapper<>();
|
||||
updatePayWorkingGroupSubItemContacts.in(PayWorkingGroupSubItemContacts::getWorkingGroupSubId,Arrays.asList(ids.split(",")));
|
||||
payWorkingGroupSubItemContactsService.remove(updatePayWorkingGroupSubItemContacts);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -815,6 +823,7 @@ public class PayWorkingGroupSubItemServiceImpl extends ServiceImpl<PayWorkingGro
|
||||
}
|
||||
List<PayWorkingGroupSubItem> list = payWorkingGroupSubItemService.listByIds(Arrays.asList(s));
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
// todo 联系人关联表
|
||||
List<String> listMsg = new ArrayList<>();
|
||||
if(!CollectionUtils.isEmpty(list)){
|
||||
List<String> listContacts = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user