style(pom): 格式化pom.xml文件结构

- 统一XML元素的缩进格式
- 调整依赖项和模块的缩进层级
- 优化配置元素的布局结构

style(annotations): 优化注解类代码格式

- 调整AnonymousAccess注解的结构
- 重新格式化AnonymousDeleteMapping注解的属性布局
- 重新格式化AnonymousGetMapping注解的属性布局
- 重新格式化AnonymousPatchMapping注解的属性布局
- 重新格式化AnonymousPostMapping注解的属性布局
- 统一注解属性的缩进和换行格式
This commit is contained in:
2025-12-26 13:56:15 +08:00
parent 6ca6fdd567
commit 69800ef5c7
436 changed files with 14890 additions and 13659 deletions
@@ -17,12 +17,11 @@
package cn.odboy;
import cn.odboy.framework.context.BootApplication;
import java.net.UnknownHostException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import java.net.UnknownHostException;
@EnableCaching
@SpringBootApplication
public class AppRun extends BootApplication {
@@ -17,7 +17,6 @@
package cn.odboy;
import cn.odboy.framework.mybatisplus.core.KitMpCmdGenUtil;
import java.util.List;
/**
@@ -41,6 +40,7 @@ public class GenCode {
}
private static void genTaskCode(KitMpCmdGenUtil generator) {
generator.gen("task", "", List.of("task_instance_info", "task_instance_detail", "task_template_info", "task_instance_step_detail"));
generator.gen("task", "",
List.of("task_instance_info", "task_instance_detail", "task_template_info", "task_instance_step_detail"));
}
}
@@ -24,8 +24,7 @@ import org.springframework.stereotype.Component;
@Component
public class HealthCheckPointer implements KitHealthCheckPointService {
@Autowired
private SystemDictService systemDictService;
@Autowired private SystemDictService systemDictService;
/**
* 系统准备就绪
@@ -21,16 +21,14 @@ import cn.hutool.core.date.DateUtil;
import cn.odboy.system.dal.dataobject.SystemUserTb;
import cn.odboy.system.dal.mysql.SystemUserMapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import java.util.Date;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.Date;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class MyBatisMapperTests {
@Autowired
private SystemUserMapper systemUserMapper;
@Autowired private SystemUserMapper systemUserMapper;
@Test
public void testMapper1() {
@@ -38,13 +36,16 @@ public class MyBatisMapperTests {
systemUserMapper.selectList(new LambdaQueryWrapper<SystemUserTb>().gt(SystemUserTb::getCreateTime, new Date()));
// SELECT * FROM system_user WHERE (create_time > '2025-08-18T14:50:16.786+0800');
systemUserMapper.selectList(new LambdaQueryWrapper<SystemUserTb>().gt(SystemUserTb::getCreateTime, DateTime.now()));
systemUserMapper.selectList(
new LambdaQueryWrapper<SystemUserTb>().gt(SystemUserTb::getCreateTime, DateTime.now()));
// SELECT * FROM system_user WHERE (create_time > '2025-08-18 14:53:46');
systemUserMapper.selectList(new LambdaQueryWrapper<SystemUserTb>().gt(SystemUserTb::getCreateTime, DateUtil.formatDateTime(new Date())));
systemUserMapper.selectList(new LambdaQueryWrapper<SystemUserTb>().gt(SystemUserTb::getCreateTime,
DateUtil.formatDateTime(new Date())));
// SELECT * FROM system_user WHERE (create_time > '2025-08-18');
systemUserMapper.selectList(new LambdaQueryWrapper<SystemUserTb>().gt(SystemUserTb::getCreateTime, DateUtil.formatDate(new Date())));
systemUserMapper.selectList(
new LambdaQueryWrapper<SystemUserTb>().gt(SystemUserTb::getCreateTime, DateUtil.formatDate(new Date())));
}
}
@@ -22,19 +22,16 @@ import cn.odboy.system.dal.dataobject.SystemJobTb;
import cn.odboy.system.dal.dataobject.SystemRoleTb;
import cn.odboy.system.dal.dataobject.SystemUserTb;
import cn.odboy.system.service.SystemUserService;
import java.util.Set;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.password.PasswordEncoder;
import java.util.Set;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class SystemApplicationTests {
@Autowired
private PasswordEncoder passwordEncoder;
@Autowired
private SystemUserService systemUserService;
@Autowired private PasswordEncoder passwordEncoder;
@Autowired private SystemUserService systemUserService;
@Test
public void contextLoads() {
@@ -19,7 +19,10 @@ package cn.odboy.util;
import org.junit.jupiter.api.Test;
import org.springframework.mock.web.MockMultipartFile;
import static cn.odboy.util.KitFileUtil.*;
import static cn.odboy.util.KitFileUtil.getPrefix;
import static cn.odboy.util.KitFileUtil.getSize;
import static cn.odboy.util.KitFileUtil.getSuffix;
import static cn.odboy.util.KitFileUtil.toFile;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class KitFileUtilTest {
@@ -16,14 +16,16 @@
package cn.odboy.util;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import java.text.SimpleDateFormat;
import java.util.Date;
import static cn.odboy.util.KitStringUtil.*;
import static cn.odboy.util.KitStringUtil.getWeekDay;
import static cn.odboy.util.KitStringUtil.toCamelCase;
import static cn.odboy.util.KitStringUtil.toCapitalizeCamelCase;
import static cn.odboy.util.KitStringUtil.toUnderScoreCase;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;