fix: 82892 工作组--调账生成的普通项目--待确收金额没有变为0
This commit is contained in:
+1
-2
@@ -623,8 +623,7 @@ public class PayWorkingGroupSubItemController extends JeroController<PayWorkingG
|
||||
public Result<?> editAccount(@RequestParam(name = "workGroupId") String workGroupId,
|
||||
@RequestParam(name = "companyId") String companyId,
|
||||
@RequestParam(name = "id") String id) {
|
||||
payWorkingGroupSubItemService.delete(id);
|
||||
payWorkingGroupSubItemService.editAccount(workGroupId, companyId);
|
||||
payWorkingGroupSubItemService.editAccount(workGroupId, companyId, id);
|
||||
return Result.OK("调账成功!");
|
||||
}
|
||||
|
||||
|
||||
+3
-2
@@ -141,7 +141,8 @@ public interface IPayWorkingGroupSubItemService extends IService<PayWorkingGroup
|
||||
* 调账
|
||||
*
|
||||
* @param workGroupId 工作组id
|
||||
* @param companyId 成员单位id
|
||||
* @param companyId 成员单位id
|
||||
* @param id
|
||||
*/
|
||||
void editAccount(String workGroupId, String companyId);
|
||||
void editAccount(String workGroupId, String companyId, String id);
|
||||
}
|
||||
|
||||
+13
-2
@@ -7,7 +7,6 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.common.ProjectCommon;
|
||||
import com.jero.common.dto.PaySendContactsMessageDTO;
|
||||
import com.jero.common.dto.SendMessageDTO;
|
||||
@@ -1240,7 +1239,12 @@ public class PayWorkingGroupSubItemServiceImpl extends ServiceImpl<PayWorkingGro
|
||||
}
|
||||
|
||||
@Override
|
||||
public void editAccount(String workGroupId, String companyId) {
|
||||
public void editAccount(String workGroupId, String companyId, String id) {
|
||||
if (StringUtils.isBlank(id)) {
|
||||
throw new JeroBootException("id不能为空!");
|
||||
}
|
||||
deleteProject(id, "workingGroupMember:delete");
|
||||
|
||||
// 获取对应成员单位数据
|
||||
PayWorkingGroup payWorkingGroup = payWorkingGroupService.getById(workGroupId);
|
||||
if (Objects.isNull(payWorkingGroup)){
|
||||
@@ -1308,6 +1312,13 @@ public class PayWorkingGroupSubItemServiceImpl extends ServiceImpl<PayWorkingGro
|
||||
// 备注
|
||||
payCommonProject.setRemarks(data.getRemarks());
|
||||
payCommonProjectService.addPayCommonProject(payCommonProject);
|
||||
|
||||
// 删除
|
||||
payWorkingGroupSubItemService.removeById(id);
|
||||
// 删除成员企业联系人
|
||||
LambdaUpdateWrapper<PayWorkingGroupSubItemContacts> updatePayWorkingGroupSubItemContacts = new LambdaUpdateWrapper<>();
|
||||
updatePayWorkingGroupSubItemContacts.eq(PayWorkingGroupSubItemContacts::getWorkingGroupSubId, id);
|
||||
payWorkingGroupSubItemContactsService.remove(updatePayWorkingGroupSubItemContacts);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user