联调问题

This commit is contained in:
马三炮 2025-12-25 09:31:15 +08:00
parent c52a0c480c
commit 0d94f533b5
1 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ public class MonthlyPlanController extends BaseController {
*/
@PreAuthorize("@ss.hasPermi('monthly:plan:add')")
@PostMapping("/addMonthlyPlan")
public AjaxResult addMonthlyPlan(@RequestBody MonthlyPlanVo monthlyPlanVo) {
public AjaxResult addMonthlyPlan(@RequestBody List<MonthlyPlanVo> monthlyPlanVo) {
try {
int res = monthlyPlanService.addMonthlyPlanList(monthlyPlanVo);
if (res > 0) {
@ -122,8 +122,8 @@ public class MonthlyPlanController extends BaseController {
List<ExportMonthPlanPersonVo> list = monthlyPlanService.exportMonthlyPlanPerson(monthlyPlanVo);
// 动态解析年月添加兜底逻辑
int year = 0;
int month = 0;
int year = LocalDate.now().getYear();
int month = LocalDate.now().getMonthValue();
String monthlyPlan = monthlyPlanVo.getMonthlyPlan();
if (monthlyPlan != null && monthlyPlan.matches("\\d{4}-\\d{1,2}")) { // 校验格式yyyy-MM