fix: 实体类增加中文注解
This commit is contained in:
parent
26a9591b22
commit
849186bc9a
@ -2,6 +2,7 @@ package com.yfd.platform.qgc_base.domain;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.yfd.platform.annotation.FieldChinese;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
@ -25,16 +26,19 @@ public class SdAiboxBH implements Serializable {
|
|||||||
* 测站编码
|
* 测站编码
|
||||||
*/
|
*/
|
||||||
@TableId(type = IdType.INPUT)
|
@TableId(type = IdType.INPUT)
|
||||||
|
@FieldChinese("测站编码")
|
||||||
private String stcd;
|
private String stcd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 测站名称
|
* 测站名称
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("测站名称")
|
||||||
private String stnm;
|
private String stnm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 测站类型
|
* 测站类型
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("测站类型")
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ -44,43 +48,51 @@ public class SdAiboxBH implements Serializable {
|
|||||||
* 数据时间
|
* 数据时间
|
||||||
*/
|
*/
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@FieldChinese("数据时间")
|
||||||
private Date tm;
|
private Date tm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 位置经度
|
* 位置经度
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("位置经度")
|
||||||
private BigDecimal lgtd;
|
private BigDecimal lgtd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 位置纬度
|
* 位置纬度
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("位置纬度")
|
||||||
private BigDecimal lttd;
|
private BigDecimal lttd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 高程
|
* 高程
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("高程")
|
||||||
private BigDecimal elev;
|
private BigDecimal elev;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 站址
|
* 站址
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("站址")
|
||||||
private String stlc;
|
private String stlc;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 建成日期
|
* 建成日期
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("建成日期")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date jcdt;
|
private Date jcdt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 退役/拆除日期
|
* 退役/拆除日期
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("退役/拆除日期")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date wddt;
|
private Date wddt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 建设状态代码
|
* 建设状态代码
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("建设状态代码")
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ -89,11 +101,13 @@ public class SdAiboxBH implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 是否启用
|
* 是否启用
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("是否启用")
|
||||||
private Integer usfl;
|
private Integer usfl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据是否接入
|
* 数据是否接入
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("数据是否接入")
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ -102,12 +116,14 @@ public class SdAiboxBH implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 数据接入时间
|
* 数据接入时间
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("数据接入时间")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date dtinTm;
|
private Date dtinTm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 监测方式
|
* 监测方式
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("监测方式")
|
||||||
private Integer mway;
|
private Integer mway;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ -116,16 +132,19 @@ public class SdAiboxBH implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 站索引
|
* 站索引
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("站索引")
|
||||||
private String stindx;
|
private String stindx;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 排序
|
* 排序
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("排序")
|
||||||
private Integer orderIndex;
|
private Integer orderIndex;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关联测站编码
|
* 关联测站编码
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("关联测站编码")
|
||||||
private String rstcd;
|
private String rstcd;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ -134,6 +153,7 @@ public class SdAiboxBH implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 所属基地编码
|
* 所属基地编码
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("所属基地编码")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ -142,11 +162,13 @@ public class SdAiboxBH implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 所属基地流域编码
|
* 所属基地流域编码
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("所属基地流域编码")
|
||||||
private String hbrvcd;
|
private String hbrvcd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所属流域代码
|
* 所属流域代码
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("所属流域代码")
|
||||||
private String rvcd;
|
private String rvcd;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ -155,114 +177,136 @@ public class SdAiboxBH implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 简介
|
* 简介
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("简介")
|
||||||
private String introduce;
|
private String introduce;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LOGO
|
* LOGO
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("LOGO")
|
||||||
private String logo;
|
private String logo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 介绍文件
|
* 介绍文件
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("介绍文件")
|
||||||
private String inffile;
|
private String inffile;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务对象
|
* 服务对象
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("服务对象")
|
||||||
private String fwdx;
|
private String fwdx;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 供电方式
|
* 供电方式
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("供电方式")
|
||||||
private String gdfs;
|
private String gdfs;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AI配置
|
* AI配置
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("AI配置")
|
||||||
private String aipz;
|
private String aipz;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模型版本
|
* 模型版本
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("模型版本")
|
||||||
private String mxbb;
|
private String mxbb;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IP地址
|
* IP地址
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("IP地址")
|
||||||
private String ipaddr;
|
private String ipaddr;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SIM卡信息
|
* SIM卡信息
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("SIM卡信息")
|
||||||
private String siminfo;
|
private String siminfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 联系人
|
* 联系人
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("联系人")
|
||||||
private String lxr;
|
private String lxr;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用途
|
* 用途
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("用途")
|
||||||
private String purpose;
|
private String purpose;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据频率
|
* 数据频率
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("数据频率")
|
||||||
private String dtfrqcy;
|
private String dtfrqcy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 植被覆盖类型
|
* 植被覆盖类型
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("植被覆盖类型")
|
||||||
private String vlsr;
|
private String vlsr;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 植被覆盖调查时间
|
* 植被覆盖调查时间
|
||||||
*/
|
*/
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@FieldChinese("植被覆盖调查时间")
|
||||||
private Date vlsrTm;
|
private Date vlsrTm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建人
|
* 创建人
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("创建人")
|
||||||
private String recordUser;
|
private String recordUser;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@FieldChinese("创建时间")
|
||||||
private Date recordTime;
|
private Date recordTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新人
|
* 更新人
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("更新人")
|
||||||
private String modifyUser;
|
private String modifyUser;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("更新时间")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date modifyTime;
|
private Date modifyTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否已删除
|
* 是否已删除
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("是否已删除")
|
||||||
private Integer isDeleted;
|
private Integer isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除人
|
* 删除人
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("删除人")
|
||||||
private String deleteUser;
|
private String deleteUser;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除时间
|
* 删除时间
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("删除时间")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date deleteTime;
|
private Date deleteTime;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package com.yfd.platform.qgc_base.domain;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.yfd.platform.annotation.FieldChinese;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
@ -24,17 +25,20 @@ public class SdArtsgBH implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 测站编码
|
* 测站编码
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("测站编码")
|
||||||
@TableId(type = IdType.INPUT)
|
@TableId(type = IdType.INPUT)
|
||||||
private String stcd;
|
private String stcd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 测站名称
|
* 测站名称
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("测站名称")
|
||||||
private String stnm;
|
private String stnm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 测站类型
|
* 测站类型
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("测站类型")
|
||||||
private String sttp;
|
private String sttp;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ -43,37 +47,44 @@ public class SdArtsgBH implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 数据时间
|
* 数据时间
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("数据时间")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date tm;
|
private Date tm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 位置经度
|
* 位置经度
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("位置经度")
|
||||||
private BigDecimal lgtd;
|
private BigDecimal lgtd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 位置纬度
|
* 位置纬度
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("位置纬度")
|
||||||
private BigDecimal lttd;
|
private BigDecimal lttd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 高程
|
* 高程
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("高程")
|
||||||
private BigDecimal elev;
|
private BigDecimal elev;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 站址
|
* 站址
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("站址")
|
||||||
private String stlc;
|
private String stlc;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否启用
|
* 是否启用
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("是否启用")
|
||||||
private Integer usfl;
|
private Integer usfl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据是否接入
|
* 数据是否接入
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("数据是否接入")
|
||||||
private Integer dtin;
|
private Integer dtin;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ -82,17 +93,20 @@ public class SdArtsgBH implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 数据接入时间
|
* 数据接入时间
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("数据接入时间")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date dtinTm;
|
private Date dtinTm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 排序
|
* 排序
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("排序")
|
||||||
private Integer orderIndex;
|
private Integer orderIndex;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关联测站编码
|
* 关联测站编码
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("关联测站编码")
|
||||||
private String rstcd;
|
private String rstcd;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ -101,6 +115,7 @@ public class SdArtsgBH implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 所属基地编码
|
* 所属基地编码
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("所属基地编码")
|
||||||
private String baseId;
|
private String baseId;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ -109,11 +124,13 @@ public class SdArtsgBH implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 所属基地流域编码
|
* 所属基地流域编码
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("所属基地流域编码")
|
||||||
private String hbrvcd;
|
private String hbrvcd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所属流域代码
|
* 所属流域代码
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("所属流域代码")
|
||||||
private String rvcd;
|
private String rvcd;
|
||||||
|
|
||||||
|
|
||||||
@ -123,47 +140,55 @@ public class SdArtsgBH implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 所属行政区编码
|
* 所属行政区编码
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("所属行政区编码")
|
||||||
private String addvcd;
|
private String addvcd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 规划设计日期
|
* 规划设计日期
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("规划设计日期")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date stdsdt;
|
private Date stdsdt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计划开工日期
|
* 计划开工日期
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("计划开工日期")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date pststdt;
|
private Date pststdt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计划完工日期
|
* 计划完工日期
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("计划完工日期")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date pesstdt;
|
private Date pesstdt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 开工日期
|
* 开工日期
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("开工日期")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date swdt;
|
private Date swdt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 建成日期
|
* 建成日期
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("建成日期")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date jcdt;
|
private Date jcdt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 退役/拆除日期
|
* 退役/拆除日期
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("退役/拆除日期")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date wddt;
|
private Date wddt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 建设状态代码
|
* 建设状态代码
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("建设状态代码")
|
||||||
private Integer bldsttCode;
|
private Integer bldsttCode;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ -172,71 +197,85 @@ public class SdArtsgBH implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 简介
|
* 简介
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("简介")
|
||||||
private String introduce;
|
private String introduce;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LOGO
|
* LOGO
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("LOGO")
|
||||||
private String logo;
|
private String logo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 介绍文件
|
* 介绍文件
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("介绍文件")
|
||||||
private String inffile;
|
private String inffile;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 投资
|
* 投资
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("投资")
|
||||||
private BigDecimal inv;
|
private BigDecimal inv;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 投资金额
|
* 投资金额
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("投资金额")
|
||||||
private Integer invinmn;
|
private Integer invinmn;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保护措施
|
* 保护措施
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("保护措施")
|
||||||
private String prtcts;
|
private String prtcts;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数量
|
* 数量
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("数量")
|
||||||
private Integer cnt;
|
private Integer cnt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 面积
|
* 面积
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("面积")
|
||||||
private BigDecimal ar;
|
private BigDecimal ar;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 类型
|
* 类型
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("类型")
|
||||||
private String tp;
|
private String tp;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 附件
|
* 附件
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("附件")
|
||||||
private String attm;
|
private String attm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据频率
|
* 数据频率
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("数据频率")
|
||||||
private String dtfrqcy;
|
private String dtfrqcy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 植被覆盖类型
|
* 植被覆盖类型
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("植被覆盖类型")
|
||||||
private String vlsr;
|
private String vlsr;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 植被覆盖调查时间
|
* 植被覆盖调查时间
|
||||||
*/
|
*/
|
||||||
|
@FieldChinese("植被覆盖调查时间")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date vlsrTm;
|
private Date vlsrTm;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
|
|||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.yfd.platform.annotation.FieldChinese;
|
||||||
import com.yfd.platform.common.DataSourceRequest;
|
import com.yfd.platform.common.DataSourceRequest;
|
||||||
import com.yfd.platform.qgc_base.domain.MsOperationLog;
|
import com.yfd.platform.qgc_base.domain.MsOperationLog;
|
||||||
import com.yfd.platform.qgc_base.domain.MsOperationLogDetail;
|
import com.yfd.platform.qgc_base.domain.MsOperationLogDetail;
|
||||||
@ -421,6 +422,7 @@ public class MsOperationLogServiceImpl extends ServiceImpl<MsOperationLogMapper,
|
|||||||
if (processedColumns.contains(columnName)) {
|
if (processedColumns.contains(columnName)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
String fieldMeaning = resolveFieldChinese(field);
|
||||||
Object oldValue = getFieldValue(field, before);
|
Object oldValue = getFieldValue(field, before);
|
||||||
Object newValue = getFieldValue(field, after);
|
Object newValue = getFieldValue(field, after);
|
||||||
|
|
||||||
@ -432,7 +434,7 @@ public class MsOperationLogServiceImpl extends ServiceImpl<MsOperationLogMapper,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
details.add(buildGenericDetail(mainLog.getId(), tableName, recordId, columnName,
|
details.add(buildGenericDetail(mainLog.getId(), tableName, recordId, columnName,
|
||||||
oldValue, newValue, "修改字段值"));
|
fieldMeaning,oldValue, newValue, "修改字段值"));
|
||||||
processedColumns.add(columnName);
|
processedColumns.add(columnName);
|
||||||
}
|
}
|
||||||
batchInsertDetails(details);
|
batchInsertDetails(details);
|
||||||
@ -460,8 +462,9 @@ public class MsOperationLogServiceImpl extends ServiceImpl<MsOperationLogMapper,
|
|||||||
if (processedColumns.contains(columnName)) {
|
if (processedColumns.contains(columnName)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
String fieldMeaning = resolveFieldChinese(field);
|
||||||
Object newValue = getFieldValue(field, entity);
|
Object newValue = getFieldValue(field, entity);
|
||||||
details.add(buildGenericDetail(mainLog.getId(), tableName, recordId, columnName,
|
details.add(buildGenericDetail(mainLog.getId(), tableName, recordId, columnName,fieldMeaning,
|
||||||
null, newValue, "新增字段值"));
|
null, newValue, "新增字段值"));
|
||||||
processedColumns.add(columnName);
|
processedColumns.add(columnName);
|
||||||
}
|
}
|
||||||
@ -490,12 +493,13 @@ public class MsOperationLogServiceImpl extends ServiceImpl<MsOperationLogMapper,
|
|||||||
if (processedColumns.contains(columnName)) {
|
if (processedColumns.contains(columnName)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
String fieldMeaning = resolveFieldChinese(field);
|
||||||
Object oldValue = getFieldValue(field, entity);
|
Object oldValue = getFieldValue(field, entity);
|
||||||
// if (oldValue == null) {
|
// if (oldValue == null) {
|
||||||
// continue;
|
// continue;
|
||||||
// }
|
// }
|
||||||
details.add(buildGenericDetail(mainLog.getId(), tableName, recordId, columnName,
|
details.add(buildGenericDetail(mainLog.getId(), tableName, recordId, columnName,
|
||||||
oldValue, null, "删除字段值"));
|
fieldMeaning,oldValue, null, "删除字段值"));
|
||||||
processedColumns.add(columnName);
|
processedColumns.add(columnName);
|
||||||
}
|
}
|
||||||
batchInsertDetails(details);
|
batchInsertDetails(details);
|
||||||
@ -545,14 +549,14 @@ public class MsOperationLogServiceImpl extends ServiceImpl<MsOperationLogMapper,
|
|||||||
* 构建通用的操作日志详情(不含字典名称解析)
|
* 构建通用的操作日志详情(不含字典名称解析)
|
||||||
*/
|
*/
|
||||||
private MsOperationLogDetail buildGenericDetail(String mainId, String tableName,
|
private MsOperationLogDetail buildGenericDetail(String mainId, String tableName,
|
||||||
String stationCode, String fieldCode,
|
String stationCode, String fieldCode,String fieldMeaning,
|
||||||
Object oldValue, Object newValue, String remark) {
|
Object oldValue, Object newValue, String remark) {
|
||||||
MsOperationLogDetail detail = new MsOperationLogDetail();
|
MsOperationLogDetail detail = new MsOperationLogDetail();
|
||||||
detail.setMainId(mainId);
|
detail.setMainId(mainId);
|
||||||
detail.setTableName(tableName);
|
detail.setTableName(tableName);
|
||||||
detail.setStationCode(stationCode);
|
detail.setStationCode(stationCode);
|
||||||
detail.setFieldCode(fieldCode);
|
detail.setFieldCode(fieldCode);
|
||||||
detail.setFieldMeaning(fieldCode);
|
detail.setFieldMeaning(fieldMeaning);
|
||||||
detail.setOldValueCode(formatValue(oldValue));
|
detail.setOldValueCode(formatValue(oldValue));
|
||||||
detail.setNewValueCode(formatValue(newValue));
|
detail.setNewValueCode(formatValue(newValue));
|
||||||
detail.setRemark(remark);
|
detail.setRemark(remark);
|
||||||
@ -582,6 +586,23 @@ public class MsOperationLogServiceImpl extends ServiceImpl<MsOperationLogMapper,
|
|||||||
return camelToUpperUnderline(field.getName());
|
return camelToUpperUnderline(field.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// private String resolveColumnName(Field field) {
|
||||||
|
// FieldChinese chinese = field.getAnnotation(FieldChinese.class);
|
||||||
|
// if (chinese != null && StringUtils.isNotBlank(chinese.value())) {
|
||||||
|
// return chinese.value();
|
||||||
|
// }
|
||||||
|
// return resolveFieldColumnName(field);
|
||||||
|
// }
|
||||||
|
|
||||||
|
private String resolveFieldChinese(Field field) {
|
||||||
|
FieldChinese chinese = field.getAnnotation(FieldChinese.class);
|
||||||
|
if (chinese != null && StringUtils.isNotBlank(chinese.value())) {
|
||||||
|
return chinese.value();
|
||||||
|
}
|
||||||
|
return resolveColumnName(field);
|
||||||
|
}
|
||||||
|
|
||||||
private Object getFieldValue(Field field, Object target) {
|
private Object getFieldValue(Field field, Object target) {
|
||||||
try {
|
try {
|
||||||
return field.get(target);
|
return field.get(target);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user