提交 72b4bd66 authored 作者: 李秋林's avatar 李秋林

城市经理上传计划(新增),只能上传次月的

上级 75eab585
......@@ -19,7 +19,6 @@ import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.YearMonth;
import java.time.ZoneId;
import java.util.Date;
import java.util.Map;
import java.util.Objects;
......
......@@ -211,8 +211,9 @@ public class PromPlanCoreServiceImpl implements PromPlanCoreService {
}
LocalDate planDate = LocalDate.of(year, month, day);
if (monthInt != nextMonthValue && monthInt != monthValue) {
dto.setErrorMsg("月份只能是当月或次月;");
// && monthInt != monthValue
if (monthInt != nextMonthValue) {
dto.setErrorMsg("月份只能是次月;");
} else if (planDate.isBefore(LocalDate.now())) {
dto.setErrorMsg("日期不能是以前;");
} else {
......@@ -229,10 +230,6 @@ public class PromPlanCoreServiceImpl implements PromPlanCoreService {
dto.setClockOutTime(LocalDateTime.of(planDate, outLocalTime));
}
}
// if (monthInt == nextMonthValue) {
// } else {
// dto.setErrorMsg("月份必需是下个月;");
// }
// 8:工资
dto.setSalary(new BigDecimal(row.get(8).toString()));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论