提交 5f390d19 authored 作者: 000516's avatar 000516

城市经理导入只能导入下月计划

上级 58746019
...@@ -210,12 +210,12 @@ public class PromPlanCoreServiceImpl implements PromPlanCoreService { ...@@ -210,12 +210,12 @@ public class PromPlanCoreServiceImpl implements PromPlanCoreService {
} }
LocalDate planDate = LocalDate.of(year, month, day); LocalDate planDate = LocalDate.of(year, month, day);
// todo && monthInt != monthValue
// if (monthInt != nextMonthValue) {
// dto.setErrorMsg("月份只能是次月;");
if (monthInt != nextMonthValue && monthInt != monthValue) { // if (monthInt != nextMonthValue && monthInt != monthValue) {
dto.setErrorMsg("月份只能是当月或次月;"); // dto.setErrorMsg("月份只能是当月或次月;");
if (monthInt != nextMonthValue) {
dto.setErrorMsg("月份只能是次月;");
} else if (planDate.isBefore(LocalDate.now())) { } else if (planDate.isBefore(LocalDate.now())) {
dto.setErrorMsg("日期不能是以前;"); dto.setErrorMsg("日期不能是以前;");
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论