@@ -1,23 +0,0 @@ | |||
package com.ruoyi; | |||
import java.time.LocalDate; | |||
import java.time.LocalDateTime; | |||
import java.time.LocalTime; | |||
/** | |||
* @author zhouwenhao | |||
* @date 2025/6/11 | |||
* @dec 描述 | |||
*/ | |||
public class Test { | |||
public static void main(String[] args) { | |||
// 获取当前日期 | |||
LocalDateTime today = LocalDateTime.now(); | |||
// 获取当前月的第一天和最后一天 | |||
LocalDateTime firstDayOfMonth = today.withDayOfMonth(1).with(LocalTime.MIN); | |||
LocalDateTime lastDayOfMonth = today.plusMonths(1).withDayOfMonth(1).with(LocalTime.MIN).minusSeconds(1); | |||
// 打印结果 | |||
System.out.println("Start of month: " + firstDayOfMonth); | |||
System.out.println("End of month: " + lastDayOfMonth); | |||
} | |||
} |
@@ -39,7 +39,7 @@ public class DkConfigController extends BaseController { | |||
// 新增 | |||
@PostMapping("/add") | |||
@Log(title = "打卡设置", businessType = BusinessType.INSERT) | |||
@Log(title = "打卡设置新增或者修改", businessType = BusinessType.UPDATE) | |||
public R<Void> add(@Validated(AddGroup.class) @RequestBody DkCheckInConfigDTO dkCheckInConfigDTO) { | |||
return toAjax(dkConfigService.addConfig(dkCheckInConfigDTO)); | |||
} |
@@ -45,7 +45,7 @@ public class NjRuleConfigController extends BaseController { | |||
* @return | |||
*/ | |||
@PostMapping("/addRuleConfig") | |||
@Log(title = "年假规则", businessType = BusinessType.UPDATE) | |||
@Log(title = "年假规则新增或者修改", businessType = BusinessType.UPDATE) | |||
public R<Boolean> addRule(@RequestBody NjRuleConfigDTO njRuleConfigDTO) { | |||
return R.ok(njRuleConfigService.addRule(njRuleConfigDTO)); | |||
} |