fix 修改企业联系人123没有处理干净,相关功能丢失的遗留bug
This commit is contained in:
+14
-29
@@ -46,6 +46,8 @@ import com.jero.modules.system.service.ISysUserService;
|
||||
import com.jero.project.entity.PayCommonProject;
|
||||
import com.jero.project.entity.PayWorkingGroup;
|
||||
import com.jero.project.entity.PayWorkingGroupSubItem;
|
||||
import com.jero.project.entity.PayWorkingGroupSubItemContacts;
|
||||
import com.jero.project.mapper.PayWorkingGroupSubItemContactsMapper;
|
||||
import com.jero.project.service.IPayCommonProjectService;
|
||||
import com.jero.project.service.IPayWorkingGroupService;
|
||||
import com.jero.project.service.IPayWorkingGroupSubItemService;
|
||||
@@ -110,7 +112,8 @@ public class PayMailBillController extends JeroController<PayMailBill, IPayMailB
|
||||
private ITbCertificatePaymentService tbCertificatePaymentService;
|
||||
@Resource
|
||||
private ISysUserService sysUserService;
|
||||
|
||||
@Resource
|
||||
private PayWorkingGroupSubItemContactsMapper payWorkingGroupSubItemContactsMapper;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
@@ -205,20 +208,11 @@ public class PayMailBillController extends JeroController<PayMailBill, IPayMailB
|
||||
if(Objects.isNull(payWorkingGroup)){
|
||||
throw new JeroBootException("工作组不存在!");
|
||||
}
|
||||
PayContactsManagementTemporary payWorkingTemporaryOne = payContactsManagementTemporaryService.getById(payWorkingGroupSubItemOld.getContactsTemporaryIdOne());
|
||||
if(!Objects.isNull(payWorkingTemporaryOne)){
|
||||
listId.add(payWorkingTemporaryOne);
|
||||
}
|
||||
if(!org.apache.commons.lang3.StringUtils.isBlank(payWorkingGroupSubItemOld.getContactsTemporaryIdTwo())){
|
||||
PayContactsManagementTemporary payWorkingTemporaryTwo = payContactsManagementTemporaryService.getById(payWorkingGroupSubItemOld.getContactsTemporaryIdTwo());
|
||||
if(!Objects.isNull(payWorkingTemporaryTwo)){
|
||||
listId.add(payWorkingTemporaryTwo);
|
||||
}
|
||||
}
|
||||
if(!org.apache.commons.lang3.StringUtils.isBlank(payWorkingGroupSubItemOld.getContactsTemporaryIdThree())){
|
||||
PayContactsManagementTemporary payWorkingTemporaryThree = payContactsManagementTemporaryService.getById(payWorkingGroupSubItemOld.getContactsTemporaryIdThree());
|
||||
if(!Objects.isNull(payWorkingTemporaryThree)){
|
||||
listId.add(payWorkingTemporaryThree);
|
||||
List<PayWorkingGroupSubItemContacts> subItemContacts = payWorkingGroupSubItemContactsMapper.getSubItemContacts(one.getProjectId());
|
||||
for (PayWorkingGroupSubItemContacts subItemContact : subItemContacts) {
|
||||
PayContactsManagementTemporary payWorkingTemporary = payContactsManagementTemporaryService.getById(subItemContact.getContactsTemporaryId());
|
||||
if(!Objects.isNull(payWorkingTemporary)){
|
||||
listId.add(payWorkingTemporary);
|
||||
}
|
||||
}
|
||||
project = payWorkingGroup.getWorkingGroupProject();
|
||||
@@ -430,20 +424,11 @@ public class PayMailBillController extends JeroController<PayMailBill, IPayMailB
|
||||
if(Objects.isNull(payWorkingGroup)){
|
||||
throw new JeroBootException("工作组不存在!");
|
||||
}
|
||||
PayContactsManagementTemporary payWorkingTemporaryOne = payContactsManagementTemporaryService.getById(payWorkingGroupSubItemOld.getContactsTemporaryIdOne());
|
||||
if(!Objects.isNull(payWorkingTemporaryOne)){
|
||||
listId.add(payWorkingTemporaryOne);
|
||||
}
|
||||
if(!org.apache.commons.lang3.StringUtils.isBlank(payWorkingGroupSubItemOld.getContactsTemporaryIdTwo())){
|
||||
PayContactsManagementTemporary payWorkingTemporaryTwo = payContactsManagementTemporaryService.getById(payWorkingGroupSubItemOld.getContactsTemporaryIdTwo());
|
||||
if(!Objects.isNull(payWorkingTemporaryTwo)){
|
||||
listId.add(payWorkingTemporaryTwo);
|
||||
}
|
||||
}
|
||||
if(!org.apache.commons.lang3.StringUtils.isBlank(payWorkingGroupSubItemOld.getContactsTemporaryIdThree())){
|
||||
PayContactsManagementTemporary payWorkingTemporaryThree = payContactsManagementTemporaryService.getById(payWorkingGroupSubItemOld.getContactsTemporaryIdThree());
|
||||
if(!Objects.isNull(payWorkingTemporaryThree)){
|
||||
listId.add(payWorkingTemporaryThree);
|
||||
List<PayWorkingGroupSubItemContacts> subItemContacts = payWorkingGroupSubItemContactsMapper.getSubItemContacts(one.getProjectId());
|
||||
for (PayWorkingGroupSubItemContacts subItemContact : subItemContacts) {
|
||||
PayContactsManagementTemporary payWorkingTemporary = payContactsManagementTemporaryService.getById(subItemContact.getContactsTemporaryId());
|
||||
if(!Objects.isNull(payWorkingTemporary)){
|
||||
listId.add(payWorkingTemporary);
|
||||
}
|
||||
}
|
||||
project = payWorkingGroup.getWorkingGroupProject();
|
||||
|
||||
Reference in New Issue
Block a user