|
|
|
@ -101,19 +101,19 @@ public class FmProjectMilestoneServiceImpl extends BaseServiceImpl<FmProjectMile |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean sendCheck(FmProjectMilestoneEntity fmProjectMilestone) { |
|
|
|
public boolean sendCheck(FmProjectMilestoneEntity fmProjectMilestone) { |
|
|
|
if (BeanUtil.isEmpty(fmProjectMilestone) || Objects.isNull(fmProjectMilestone.getId())) { |
|
|
|
if (BeanUtil.isEmpty(fmProjectMilestone) || Objects.isNull(fmProjectMilestone.getId())) { |
|
|
|
throw new ServiceException("参数错误"); |
|
|
|
throw new RuntimeException("参数错误"); |
|
|
|
} |
|
|
|
} |
|
|
|
// TODO: 2026/5/27 是否手动更新
|
|
|
|
// TODO: 2026/5/27 是否手动更新
|
|
|
|
FmProjectMilestoneEntity entity = getById(fmProjectMilestone.getId()); |
|
|
|
FmProjectMilestoneEntity entity = getById(fmProjectMilestone.getId()); |
|
|
|
if (BeanUtil.isEmpty(entity)) { |
|
|
|
if (BeanUtil.isEmpty(entity)) { |
|
|
|
throw new ServiceException("里程碑信息获取失败"); |
|
|
|
throw new RuntimeException("里程碑信息获取失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (Objects.isNull(fmProjectMilestone.getCheckResult())) { |
|
|
|
if (Objects.isNull(fmProjectMilestone.getCheckResult())) { |
|
|
|
throw new ServiceException("请选择核查结果"); |
|
|
|
throw new RuntimeException("请选择核查结果"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!FmProjectMilestoneEntity.CHECK_RESULT_OK.equals(fmProjectMilestone.getCheckResult()) || |
|
|
|
if (!FmProjectMilestoneEntity.CHECK_RESULT_OK.equals(fmProjectMilestone.getCheckResult()) && |
|
|
|
!FmProjectMilestoneEntity.CHECK_RESULT_NO.equals(fmProjectMilestone.getCheckResult())) { |
|
|
|
!FmProjectMilestoneEntity.CHECK_RESULT_NO.equals(fmProjectMilestone.getCheckResult())) { |
|
|
|
throw new ServiceException("请选择核查结果"); |
|
|
|
throw new RuntimeException("请选择核查结果"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|