riku
2022-06-17 fd8c31dc5a0c0372d867335283f0b5272d667236
1. 台账类型数据表添加“是否有实时性要求”字段
已修改3个文件
94 ■■■■ 文件已修改
src/main/kotlin/cn/flightfeather/supervision/domain/entity/LedgerSubType.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/generator/generatorConfig.xml 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LedgerSubTypeMapper.xml 67 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;
    }
}
src/main/resources/generator/generatorConfig.xml
@@ -24,9 +24,9 @@
            <property name="suppressAllComments" value="true"/>
        </commentGenerator>
        <!--数据库链接URL,用户名、密码 -->
        <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>
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
    -->