年度比赛新增开始时间不能大于结束时间

main
Gitea 4 months ago
parent 2225ca7a31
commit 19d2a251d1
  1. 4
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java

@ -369,8 +369,8 @@ public class AnnualCompController extends JeecgController<AnnualComp, IAnnualCom
if (annualCompVo.getEndtime() != null) {
end = annualCompVo.getEndtime().getTime();
}
if (start < end) {
Result.error("开始时间不能于结束时间");
if (start > end) {
return Result.error("开始时间不能于结束时间");
}
String compname = annualCompVo.getCompname();
String annualname = annualCompVo.getAnnualname();

Loading…
Cancel
Save