wrapper) {
if (args != null) {
- if (args.getId() != null) {
- wrapper.eq(SystemUserTb::getId, args.getId());
- }
- if (args.getEnabled() != null) {
- wrapper.eq(SystemUserTb::getEnabled, args.getEnabled());
- }
- if (CollUtil.isNotEmpty(args.getDeptIds())) {
- wrapper.in(SystemUserTb::getDeptId, args.getDeptIds());
- }
+ wrapper.eq(args.getId() != null, SystemUserTb::getId, args.getId());
+ wrapper.eq(args.getEnabled() != null, SystemUserTb::getEnabled, args.getEnabled());
+ wrapper.in(CollUtil.isNotEmpty(args.getDeptIds()), SystemUserTb::getDeptId, args.getDeptIds());
if (StrUtil.isNotBlank(args.getBlurry())) {
wrapper.and(w -> w.like(SystemUserTb::getUsername, args.getBlurry()).or()
.like(SystemUserTb::getNickName, args.getBlurry()).or().like(SystemUserTb::getEmail, args.getBlurry()));
@@ -532,7 +498,7 @@ public class SystemUserService {
}
/**
- * 转换为SystemUserVo并关联查询部门、角色、岗位信息 -> TestPassed
+ * 转换为SystemUserVo并关联查询部门、角色、岗位信息
*
* @param user 用户基本信息
* @param includePassword 是否包含用户密码
diff --git a/cutejava/cutejava-module-system/src/main/java/cn/odboy/system/service/impl/SystemMinioStorageServiceImpl.java b/cutejava/cutejava-module-system/src/main/java/cn/odboy/system/service/impl/SystemMinioStorageServiceImpl.java
index c1f8512a..037ae061 100644
--- a/cutejava/cutejava-module-system/src/main/java/cn/odboy/system/service/impl/SystemMinioStorageServiceImpl.java
+++ b/cutejava/cutejava-module-system/src/main/java/cn/odboy/system/service/impl/SystemMinioStorageServiceImpl.java
@@ -39,13 +39,13 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import java.io.File;
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;
-import javax.servlet.http.HttpServletResponse;
-import java.io.File;
-import java.util.List;
/**
*
@@ -80,11 +80,8 @@ public class SystemMinioStorageServiceImpl extends ServiceImpl selectOssStorageByArgs(
- SystemQueryStorageArgs args,
- Page page
- ) {
- KitValidUtil.notNull(args);
+ private IPage selectOssStorageByArgs(SystemQueryStorageArgs args, Page page) {
+ KitValidUtil.isNull(args);
LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>();
wrapper.and(
StrUtil.isNotBlank(args.getBlurry()),
diff --git a/cutejava/cutejava-starter/src/test/java/cn/odboy/util/KitDateUtilTest.java b/cutejava/cutejava-starter/src/test/java/cn/odboy/util/KitDateUtilTest.java
new file mode 100644
index 00000000..83defe42
--- /dev/null
+++ b/cutejava/cutejava-starter/src/test/java/cn/odboy/util/KitDateUtilTest.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2021-2026 Odboy
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.odboy.util;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import org.junit.jupiter.api.Test;
+
+public class KitDateUtilTest {
+
+ @Test
+ public void testGetWeekDay() {
+ SimpleDateFormat simpleDateformat = new SimpleDateFormat("E");
+ assertEquals(simpleDateformat.format(new Date()), KitDateUtil.getWeekDay());
+ }
+}