提交 2cbf5eee authored 作者: 000516's avatar 000516

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

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