|
|
@ -506,9 +506,6 @@ public class RohsServiceImpl extends ServiceImpl<RohsMapper, RohsEntity> impleme |
|
|
if (!"已完成".equals(exists.getStatus())) { |
|
|
if (!"已完成".equals(exists.getStatus())) { |
|
|
throw new RuntimeException("仅已完成状态的单据允许更新失效日期"); |
|
|
throw new RuntimeException("仅已完成状态的单据允许更新失效日期"); |
|
|
} |
|
|
} |
|
|
if (!"Y".equalsIgnoreCase(StringUtils.trimToEmpty(exists.getIsExpiring()))) { |
|
|
|
|
|
throw new RuntimeException("当前单据非即将失效状态,不允许更新失效日期"); |
|
|
|
|
|
} |
|
|
|
|
|
if (rohs.getExpiredDate() == null) { |
|
|
if (rohs.getExpiredDate() == null) { |
|
|
throw new RuntimeException("报告日期不能为空"); |
|
|
throw new RuntimeException("报告日期不能为空"); |
|
|
} |
|
|
} |
|
|
|