Java 代码优化:判断课程是否过期
if (updateTime.getCourseDate().before(today) || (updateTime.getCourseDate().equals(today) && updateTime.getEndReservationTime().before(now)){\n log.info("过期1");\n map.put("isCancel",false);\n} else {\n log.info("可以取消");\n map.put("isCancel",true);\n}\nreturn new Result((ResultCode.SUCCESS,map);
AI 优化版
原文地址:https://www.cveoy.top/t/topic/pESv 著作权归作者所有。请勿转载和采集!