docs(framework): 更新注释和导入包
This commit is contained in:
+1
-2
@@ -13,7 +13,6 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package cn.odboy.framework.logging;
|
package cn.odboy.framework.logging;
|
||||||
|
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
@@ -24,7 +23,7 @@ import java.lang.annotation.RetentionPolicy;
|
|||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 统计执行时长
|
* 统计执行时长(仅对代理方法有效)
|
||||||
*
|
*
|
||||||
* @author odboy
|
* @author odboy
|
||||||
*/
|
*/
|
||||||
|
|||||||
+6
-6
@@ -21,12 +21,12 @@ import cn.odboy.framework.exception.BadRequestException;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import javax.validation.ConstraintViolation;
|
import jakarta.validation.ConstraintViolation;
|
||||||
import javax.validation.Validation;
|
import jakarta.validation.Validation;
|
||||||
import javax.validation.Validator;
|
import jakarta.validation.Validator;
|
||||||
import javax.validation.ValidatorFactory;
|
import jakarta.validation.ValidatorFactory;
|
||||||
import javax.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
import javax.validation.groups.Default;
|
import jakarta.validation.groups.Default;
|
||||||
import lombok.experimental.UtilityClass;
|
import lombok.experimental.UtilityClass;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@ import org.springframework.security.core.userdetails.UserDetailsService;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO 通过用户名判断用户信息,并获取拥有的权限与部门
|
* 通过用户名判断用户信息,并获取拥有的权限与部门
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Service("userDetailsService")
|
@Service("userDetailsService")
|
||||||
|
|||||||
+3
@@ -34,6 +34,9 @@ import java.util.List;
|
|||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 不建议在生产环境使用
|
||||||
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public final class KitSqlUtil {
|
public final class KitSqlUtil {
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ import java.lang.annotation.RetentionPolicy;
|
|||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 统计执行时长
|
* 统计执行时长(仅对代理方法有效)
|
||||||
*
|
*
|
||||||
* @author odboy
|
* @author odboy
|
||||||
*/
|
*/
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@ import org.springframework.security.core.userdetails.UserDetailsService;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO 通过用户名判断用户信息,并获取拥有的权限与部门
|
* 通过用户名判断用户信息,并获取拥有的权限与部门
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Service("userDetailsService")
|
@Service("userDetailsService")
|
||||||
|
|||||||
+1
@@ -20,6 +20,7 @@ import cn.hutool.core.collection.CollectionUtil;
|
|||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import cn.odboy.framework.exception.BadRequestException;
|
import cn.odboy.framework.exception.BadRequestException;
|
||||||
|
import cn.odboy.framework.logging.ExecutionTimeStatisticsFace;
|
||||||
import cn.odboy.system.constant.SystemTransferProtocolConst;
|
import cn.odboy.system.constant.SystemTransferProtocolConst;
|
||||||
import cn.odboy.system.constant.SystemYesOrNoChConst;
|
import cn.odboy.system.constant.SystemYesOrNoChConst;
|
||||||
import cn.odboy.system.dal.dataobject.SystemMenuTb;
|
import cn.odboy.system.dal.dataobject.SystemMenuTb;
|
||||||
|
|||||||
-14
@@ -343,20 +343,6 @@ public class SystemUserService {
|
|||||||
return KitPageUtil.toPage(userVos, userPage.getTotal());
|
return KitPageUtil.toPage(userVos, userPage.getTotal());
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
|
||||||
// * 查询全部不分页
|
|
||||||
// *
|
|
||||||
// * @param args 条件
|
|
||||||
// * @return /
|
|
||||||
// */
|
|
||||||
// public List<SystemUserVo> queryUserVoByArgs(SystemQueryUserArgs args) {
|
|
||||||
// // 查询用户基本信息
|
|
||||||
// LambdaQueryWrapper<SystemUserTb> wrapper = buildUserQueryWrapper(args);
|
|
||||||
// List<SystemUserTb> users = systemUserMapper.selectList(wrapper);
|
|
||||||
// // 转换为SystemUserVo并关联查询
|
|
||||||
// return users.stream().map(this::convertToUserVo).collect(Collectors.toList());
|
|
||||||
// }
|
|
||||||
|
|
||||||
public long countUserByArgs(SystemQueryUserArgs args) {
|
public long countUserByArgs(SystemQueryUserArgs args) {
|
||||||
LambdaQueryWrapper<SystemUserTb> wrapper = buildUserQueryWrapper(args);
|
LambdaQueryWrapper<SystemUserTb> wrapper = buildUserQueryWrapper(args);
|
||||||
return systemUserMapper.selectCount(wrapper);
|
return systemUserMapper.selectCount(wrapper);
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ import java.util.List;
|
|||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 不建议在生产环境使用
|
||||||
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public final class KitSqlUtil {
|
public final class KitSqlUtil {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user