mod
This commit is contained in:
@@ -23,16 +23,18 @@ import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 数据字典AOP类,处理数据字典值
|
||||
*
|
||||
* @author chenhaodong
|
||||
* @Description 描述:数据字典AOP类,处理数据字典值
|
||||
* @Author A贾宇婷034244310
|
||||
* @Date 20260615
|
||||
*/
|
||||
@Aspect
|
||||
//@Component
|
||||
@Slf4j
|
||||
public class DictAspect {
|
||||
|
||||
|
||||
@Autowired
|
||||
private SysDictService sysDictService;
|
||||
|
||||
|
||||
@@ -24,10 +24,13 @@ import java.io.StringReader;
|
||||
import java.sql.Connection;
|
||||
import java.util.Properties;
|
||||
|
||||
|
||||
/**
|
||||
* 查询拦截器,用于拦截处理通用的信息、如用户ID、多租户信息等;
|
||||
* @Description 描述:查询拦截器,用于拦截处理通用的信息、如用户ID、多租户信息等;
|
||||
* 特别注意:此处继承了PaginationInterceptor分页,分页必须在拦截数据后执行,否则容易出现分页不准确,分页计数大于实际数量等问题
|
||||
* @author chenhaodong
|
||||
*
|
||||
* @Author A贾宇婷034244310
|
||||
* @Date 20260615
|
||||
*/
|
||||
@Log4j2
|
||||
@Intercepts({@Signature(type = StatementHandler.class, method = "prepare", args = {Connection.class, Integer.class}),})
|
||||
|
||||
@@ -17,8 +17,9 @@ import java.util.Objects;
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
* 自动给创建时间个更新时间加值
|
||||
* @author chenhaodong
|
||||
* @Description 描述:自动给创建时间和更新时间加值
|
||||
* @Author A贾宇婷034244310
|
||||
* @Date 20260615
|
||||
*/
|
||||
@Intercepts(value = {@Signature(type = Executor.class, method = "update", args = {MappedStatement.class, Object.class})})
|
||||
public class UpdateInterceptor extends AbstractSqlParserHandler implements Interceptor {
|
||||
|
||||
@@ -10,10 +10,11 @@ import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
|
||||
/**
|
||||
* 注入工具类
|
||||
* @author chenhaodong
|
||||
* @date 2019-07-17 09:32
|
||||
* @Description 描述:注入工具类 写出统一错误信息
|
||||
* @Author A贾宇婷034244310
|
||||
* @Date 20260615
|
||||
*/
|
||||
@Log4j2
|
||||
@Component
|
||||
|
||||
Reference in New Issue
Block a user