工作组变更
This commit is contained in:
+9
-11
@@ -171,19 +171,17 @@ public class PayWorkingGroupSubItemController extends JeroController<PayWorkingG
|
||||
return Result.error("没有查到用户信息!");
|
||||
}
|
||||
List<String> listProjectIds = new ArrayList<>();
|
||||
// todo 关联企业联系人表
|
||||
// 工作组的企业联系人1,2,3
|
||||
LambdaQueryWrapper<PayWorkingGroupSubItem> queryPayWorkingGroupSubItem = new LambdaQueryWrapper<>();
|
||||
queryPayWorkingGroupSubItem.eq(PayWorkingGroupSubItem::getContactsIdOne,sysUser.getId()).or()
|
||||
.eq(PayWorkingGroupSubItem::getContactsIdTwo,sysUser.getId()).or()
|
||||
.eq(PayWorkingGroupSubItem::getContactsIdThree,sysUser.getId()).or()
|
||||
.eq(PayWorkingGroupSubItem::getMailContactsId,sysUser.getId());
|
||||
List<PayWorkingGroupSubItem> listPayWorkingGroupSubItem = payWorkingGroupSubItemService.list(queryPayWorkingGroupSubItem);
|
||||
if(!CollectionUtils.isEmpty(listPayWorkingGroupSubItem)){
|
||||
List<String> listProjectId = listPayWorkingGroupSubItem.stream().map(PayWorkingGroupSubItem::getId).collect(Collectors.toList());
|
||||
|
||||
// 工作组的企业联系人
|
||||
LambdaQueryWrapper<PayWorkingGroupSubItemContacts> queryPayWorkingGroupSubItemContacts = new LambdaQueryWrapper<>();
|
||||
queryPayWorkingGroupSubItemContacts.eq(PayWorkingGroupSubItemContacts::getContactsId,sysUser.getId());
|
||||
List<PayWorkingGroupSubItemContacts> listPayWorkingGroupSubItemContacts = payWorkingGroupSubItemContactsService.list(queryPayWorkingGroupSubItemContacts);
|
||||
if(!CollectionUtils.isEmpty(listPayWorkingGroupSubItemContacts)){
|
||||
List<String> listProjectId = listPayWorkingGroupSubItemContacts.stream().map(PayWorkingGroupSubItemContacts::getWorkingGroupSubId).collect(Collectors.toList());
|
||||
listProjectIds.addAll(listProjectId);
|
||||
}
|
||||
// 邮寄联系人
|
||||
|
||||
// 邮寄联系人
|
||||
LambdaQueryWrapper<PayMailBill> queryPayMailBill = new LambdaQueryWrapper<>();
|
||||
queryPayMailBill.eq(PayMailBill::getContactId,sysUser.getId());
|
||||
List<PayMailBill> listPayMailBill = payMailBillService.list(queryPayMailBill);
|
||||
|
||||
Reference in New Issue
Block a user