fix(test): 修复测试类中实体对象类型错误

- 修复SystemApplicationTests中导入SystemUserVo类
- 修正测试数据创建时使用SystemUserVo替换SystemUserTb
- 更新Spring Boot父版本从3.3.13到3.5.9
This commit is contained in:
2025-12-26 15:21:24 +08:00
parent 137a35ee28
commit e31d9d7be8
2 changed files with 4 additions and 2 deletions
@@ -21,6 +21,7 @@ import cn.odboy.system.dal.dataobject.SystemDeptTb;
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.dal.model.SystemUserVo;
import cn.odboy.system.service.SystemUserService;
import java.util.Set;
import org.junit.jupiter.api.Test;
@@ -48,7 +49,7 @@ public class SystemApplicationTests {
String pwd = passwordEncoder.encode("123456");
for (int i = 100; i < 200; i++) {
SystemUserTb systemUser = new SystemUserTb();
SystemUserVo systemUser = new SystemUserVo();
systemUser.setDept(systemDept);
systemUser.setJobs(systemJobs);
systemUser.setRoles(systemRoles);