From aed297a5fbc8df9dab01b28da21f872ee546b43c Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 13 十月 2025 16:15:11 +0800
Subject: [PATCH] 2025.10.13 1. 统一调整controller层的返回类型,通过添加全局响应增强器GlobalResponseAdvice来管理返回结果; 2. 新增mybatis-generator自定义插件,实现给数据库实体entity自动添加swagger注解@ApiModel和@ApiModelProperty
---
src/main/resources/mapper/ds3/FumeExceptionDataMapper.xml | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/main/resources/mapper/ds3/FumeExceptionDataMapper.xml b/src/main/resources/mapper/ds3/FumeExceptionDataMapper.xml
index 5090606..0f3b8e3 100644
--- a/src/main/resources/mapper/ds3/FumeExceptionDataMapper.xml
+++ b/src/main/resources/mapper/ds3/FumeExceptionDataMapper.xml
@@ -1,19 +1,19 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
-<mapper namespace="cn.flightfeather.supervision.domain.ds3.mapper.FumeExceptionDataMapper" >
- <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds3.entity.FumeExceptionData" >
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="cn.flightfeather.supervision.domain.ds3.mapper.FumeExceptionDataMapper">
+ <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.ds3.entity.FumeExceptionData">
<!--
WARNING - @mbg.generated
-->
- <id column="id" property="id" jdbcType="INTEGER" />
- <result column="dev_id" property="devId" jdbcType="VARCHAR" />
- <result column="exception" property="exception" jdbcType="VARCHAR" />
- <result column="exception_type" property="exceptionType" jdbcType="VARCHAR" />
- <result column="region" property="region" jdbcType="VARCHAR" />
- <result column="begin_time" property="beginTime" jdbcType="TIMESTAMP" />
- <result column="end_time" property="endTime" jdbcType="TIMESTAMP" />
+ <id column="id" jdbcType="INTEGER" property="id" />
+ <result column="dev_id" jdbcType="VARCHAR" property="devId" />
+ <result column="exception" jdbcType="VARCHAR" property="exception" />
+ <result column="exception_type" jdbcType="VARCHAR" property="exceptionType" />
+ <result column="region" jdbcType="VARCHAR" property="region" />
+ <result column="begin_time" jdbcType="TIMESTAMP" property="beginTime" />
+ <result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
</resultMap>
- <sql id="Base_Column_List" >
+ <sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
--
Gitblit v1.9.3