fix: 调账接口报错提示语修改

This commit is contained in:
2024-03-26 09:13:17 +08:00
parent d09ad41d7c
commit 0f076da9b0
@@ -1256,7 +1256,15 @@ public class PayWorkingGroupSubItemServiceImpl extends ServiceImpl<PayWorkingGro
if (StringUtils.isBlank(id)) {
throw new JeroBootException("id不能为空!");
}
deleteProject(id, "workingGroupMember:delete");
try {
deleteProject(id, "workingGroupMember:delete");
} catch (JeroBootException e) {
if (e.getMessage().equals("已关联合同不可删除!")) {
throw new JeroBootException("已关联合同不可调账!");
} else {
throw new JeroBootException(e.getMessage());
}
}
// 获取对应成员单位数据
PayWorkingGroup payWorkingGroup = payWorkingGroupService.getById(workGroupId);