From fd8c31dc5a0c0372d867335283f0b5272d667236 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 17 六月 2022 15:36:50 +0800
Subject: [PATCH] 1. 台账类型数据表添加“是否有实时性要求”字段
---
src/main/resources/mapper/LedgerSubTypeMapper.xml | 67 +++++++++++++++++++++++++++------
src/main/resources/generator/generatorConfig.xml | 10 ++--
src/main/kotlin/cn/flightfeather/supervision/domain/entity/LedgerSubType.java | 17 ++++++++
3 files changed, 76 insertions(+), 18 deletions(-)
diff --git a/src/main/kotlin/cn/flightfeather/supervision/domain/entity/LedgerSubType.java b/src/main/kotlin/cn/flightfeather/supervision/domain/entity/LedgerSubType.java
index 37f45a6..871d948 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/domain/entity/LedgerSubType.java
+++ b/src/main/kotlin/cn/flightfeather/supervision/domain/entity/LedgerSubType.java
@@ -38,6 +38,9 @@
@Column(name = "L_Period")
private Integer lPeriod;
+ @Column(name = "L_Real_Time")
+ private Boolean lRealTime;
+
/**
* @return LS_SubTypeId
*/
@@ -161,4 +164,18 @@
public void setlPeriod(Integer lPeriod) {
this.lPeriod = lPeriod;
}
+
+ /**
+ * @return L_Real_Time
+ */
+ public Boolean getlRealTime() {
+ return lRealTime;
+ }
+
+ /**
+ * @param lRealTime
+ */
+ public void setlRealTime(Boolean lRealTime) {
+ this.lRealTime = lRealTime;
+ }
}
\ No newline at end of file
diff --git a/src/main/resources/generator/generatorConfig.xml b/src/main/resources/generator/generatorConfig.xml
index dcfa7f6..83c01b2 100644
--- a/src/main/resources/generator/generatorConfig.xml
+++ b/src/main/resources/generator/generatorConfig.xml
@@ -24,9 +24,9 @@
<property name="suppressAllComments" value="true"/>
</commentGenerator>
<!--鏁版嵁搴撻摼鎺RL锛岀敤鎴峰悕銆佸瘑鐮� -->
- <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://192.168.0.200:3306/ledger"
- userId="root"
- password="cn.FLIGHTFEATHER">
+ <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://47.100.191.150:3306/ledger?serverTimezone=Asia/Shanghai"
+ userId="remoteU1"
+ password="eSoF8DnzfGTlhAjE">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false"/>
@@ -47,7 +47,7 @@
<!-- 瑕佺敓鎴愮殑琛� tableName鏄暟鎹簱涓殑琛ㄥ悕鎴栬鍥惧悕 domainObjectName鏄疄浣撶被鍚�-->
<!--<table tableName="t_user" domainObjectName="User" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>-->
<!--<table tableName="ea_t_ledgerrecord" domainObjectName="LedgerRecord" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>-->
-<!-- <table tableName="ea_t_ledgersubtype" domainObjectName="LedgerSubType" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>-->
+ <table tableName="ea_t_ledgersubtype" domainObjectName="LedgerSubType" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>
<!--<table tableName="ea_t_mediafile" domainObjectName="LedgerMediaFile" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>-->
<!--<table tableName="ea_t_notification" domainObjectName="Notification" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>-->
<!--<table tableName="ea_t_law" domainObjectName="Law" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>-->
@@ -80,6 +80,6 @@
<!-- <table tableName="ea_t_device_info" domainObjectName="DeviceInfo" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"/>-->
<!-- <table tableName="ea_t_overall_evaluation" domainObjectName="OverallEvaluation" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>-->
<!-- <table tableName="ea_t_punishment" domainObjectName="Punishment" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>-->
- <table tableName="ts_t_user_map" domainObjectName="UserMap" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"/>
+<!-- <table tableName="ts_t_user_map" domainObjectName="UserMap" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"/>-->
</context>
</generatorConfiguration>
\ No newline at end of file
diff --git a/src/main/resources/mapper/LedgerSubTypeMapper.xml b/src/main/resources/mapper/LedgerSubTypeMapper.xml
index 46301e0..07fa64b 100644
--- a/src/main/resources/mapper/LedgerSubTypeMapper.xml
+++ b/src/main/resources/mapper/LedgerSubTypeMapper.xml
@@ -1,20 +1,61 @@
-<?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.mapper.LedgerSubTypeMapper" >
- <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.entity.LedgerSubType" >
+<?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.mapper.LedgerSubTypeMapper">
+ <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.entity.LedgerSubType">
<!--
WARNING - @mbg.generated
-->
- <id column="LS_SubTypeId" property="lsSubtypeid" jdbcType="INTEGER" />
- <result column="LS_Name" property="lsName" jdbcType="VARCHAR" />
- <result column="L_TypeId" property="lTypeid" jdbcType="INTEGER" />
- <result column="L_TypeName" property="lTypename" jdbcType="VARCHAR" />
- <result column="L_IconUrl" property="lIconurl" jdbcType="VARCHAR" />
- <result column="L_SceneType" property="lScenetype" jdbcType="INTEGER" />
- <result column="L_NeedUpdate" property="lNeedupdate" jdbcType="BIT" />
- <result column="L_Period" property="lPeriod" jdbcType="INTEGER" />
+ <id column="LS_SubTypeId" jdbcType="INTEGER" property="lsSubtypeid" />
+ <result column="LS_Name" jdbcType="VARCHAR" property="lsName" />
+ <result column="L_TypeId" jdbcType="INTEGER" property="lTypeid" />
+ <result column="L_TypeName" jdbcType="VARCHAR" property="lTypename" />
+ <result column="L_IconUrl" jdbcType="VARCHAR" property="lIconurl" />
+ <result column="L_SceneType" jdbcType="INTEGER" property="lScenetype" />
+ <result column="L_NeedUpdate" jdbcType="BIT" property="lNeedupdate" />
+ <result column="L_Period" jdbcType="INTEGER" property="lPeriod" />
+ <result column="L_Real_Time" jdbcType="BIT" property="lRealTime" />
</resultMap>
- <sql id="Base_Column_List" >
+ <sql id="Base_Column_List">
+ <!--
+ WARNING - @mbg.generated
+ -->
+ LS_SubTypeId, LS_Name, L_TypeId, L_TypeName, L_IconUrl, L_SceneType, L_NeedUpdate,
+ L_Period, L_Real_Time
+ </sql>
+ <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.entity.LedgerSubType">
+ <!--
+ WARNING - @mbg.generated
+ -->
+ <id column="LS_SubTypeId" jdbcType="INTEGER" property="lsSubtypeid" />
+ <result column="LS_Name" jdbcType="VARCHAR" property="lsName" />
+ <result column="L_TypeId" jdbcType="INTEGER" property="lTypeid" />
+ <result column="L_TypeName" jdbcType="VARCHAR" property="lTypename" />
+ <result column="L_IconUrl" jdbcType="VARCHAR" property="lIconurl" />
+ <result column="L_SceneType" jdbcType="INTEGER" property="lScenetype" />
+ <result column="L_NeedUpdate" jdbcType="BIT" property="lNeedupdate" />
+ <result column="L_Period" jdbcType="INTEGER" property="lPeriod" />
+ </resultMap>
+ <sql id="Base_Column_List">
+ <!--
+ WARNING - @mbg.generated
+ -->
+ LS_SubTypeId, LS_Name, L_TypeId, L_TypeName, L_IconUrl, L_SceneType, L_NeedUpdate,
+ L_Period
+ </sql>
+ <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.entity.LedgerSubType">
+ <!--
+ WARNING - @mbg.generated
+ -->
+ <id column="LS_SubTypeId" jdbcType="INTEGER" property="lsSubtypeid" />
+ <result column="LS_Name" jdbcType="VARCHAR" property="lsName" />
+ <result column="L_TypeId" jdbcType="INTEGER" property="lTypeid" />
+ <result column="L_TypeName" jdbcType="VARCHAR" property="lTypename" />
+ <result column="L_IconUrl" jdbcType="VARCHAR" property="lIconurl" />
+ <result column="L_SceneType" jdbcType="INTEGER" property="lScenetype" />
+ <result column="L_NeedUpdate" jdbcType="BIT" property="lNeedupdate" />
+ <result column="L_Period" jdbcType="INTEGER" property="lPeriod" />
+ </resultMap>
+ <sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
--
Gitblit v1.9.3