Commit a2bf8a7d authored by 刘林's avatar 刘林

fix(jg):【web端】监管业务>业务办理>新增启用登记,选择设备下次校验日期为当日时无法提交(附图)

parent 6beb2061
......@@ -223,7 +223,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
Date currentDate = new Date();
nextInspectDates.forEach(next -> {
// 下次检验日期在当前时间之前的
if (next.before(currentDate)) {
if (!next.after(currentDate)) {
throw new BadRequest("启用的设备中存在超过定期检验有效期的设备");
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment