Commit c22f40fa authored by frank.xa.zhang's avatar frank.xa.zhang

add report config api template

parent 5a08ef3b
...@@ -4,142 +4,143 @@ ...@@ -4,142 +4,143 @@
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration> <generatorConfiguration>
<!-- See: http://www.mybatis.org/generator/configreference/commentGenerator.html --> <!-- See: http://www.mybatis.org/generator/configreference/commentGenerator.html -->
<properties resource="generator.properties" /> <properties resource="generator.properties"/>
<!-- <classPathEntry location="../hsqldb/hsqldb-2.3.5.jar" /> --> <!-- <classPathEntry location="../hsqldb/hsqldb-2.3.5.jar" /> -->
<context id="contextId" targetRuntime="MyBatis3"> <context id="contextId" targetRuntime="MyBatis3">
<!-- 考虑需要兼容DB2与ORCAL数据库, 大部份字段不需要加双引号,autoDelimitKeywords设置为false --> <!-- 考虑需要兼容DB2与ORCAL数据库, 大部份字段不需要加双引号,autoDelimitKeywords设置为false -->
<property name="autoDelimitKeywords" value="false" /> <property name="autoDelimitKeywords" value="false"/>
<property name="javaFileEncoding" value="UTF-8" /> <property name="javaFileEncoding" value="UTF-8"/>
<plugin type="org.mybatis.generator.plugins.MapperAnnotationPlugin" /> <plugin type="org.mybatis.generator.plugins.MapperAnnotationPlugin"/>
<plugin type="org.mybatis.generator.plugins.RowBoundsPlugin" /> <plugin type="org.mybatis.generator.plugins.RowBoundsPlugin"/>
<plugin type="org.mybatis.generator.plugins.ToStringPlugin" /> <plugin type="org.mybatis.generator.plugins.ToStringPlugin"/>
<plugin type="org.mybatis.generator.plugins.SerializablePlugin" /> <plugin type="org.mybatis.generator.plugins.SerializablePlugin"/>
<commentGenerator> <commentGenerator>
<property name="suppressDate" value="true" /> <property name="suppressDate" value="true"/>
<property name="addRemarkComments" value="true" /> <property name="addRemarkComments" value="true"/>
</commentGenerator> </commentGenerator>
<jdbcConnection driverClass="${jdbc.driverClass}" connectionURL="${jdbc.connectionURL}" userId="${jdbc.userId}" password="${jdbc.password}"> <jdbcConnection driverClass="${jdbc.driverClass}" connectionURL="${jdbc.connectionURL}" userId="${jdbc.userId}"
password="${jdbc.password}">
</jdbcConnection> </jdbcConnection>
<javaTypeResolver> <javaTypeResolver>
<property name="forceBigDecimals" value="false" /> <property name="forceBigDecimals" value="false"/>
</javaTypeResolver> </javaTypeResolver>
<javaModelGenerator targetPackage="pwc.taxtech.atms.entitiy" targetProject="../../src/main/java"> <javaModelGenerator targetPackage="pwc.taxtech.atms.entitiy" targetProject="../../src/main/java">
<property name="trimStrings" value="true" /> <property name="trimStrings" value="true"/>
</javaModelGenerator> </javaModelGenerator>
<sqlMapGenerator targetPackage="pwc.taxtech.atms.dao" targetProject="../../src/main/resources"> <sqlMapGenerator targetPackage="pwc.taxtech.atms.dao" targetProject="../../src/main/resources">
</sqlMapGenerator> </sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER" targetPackage="pwc.taxtech.atms.dao" targetProject="../../src/main/java"> <javaClientGenerator type="XMLMAPPER" targetPackage="pwc.taxtech.atms.dao" targetProject="../../src/main/java">
<property name="rootInterface" value="pwc.taxtech.atms.MyMapper" /> <property name="rootInterface" value="pwc.taxtech.atms.MyMapper"/>
</javaClientGenerator> </javaClientGenerator>
<!-- Area/AreaRegion/Region --> <!-- Area/AreaRegion/Region -->
<table tableName="Area" domainObjectName="Area"> <table tableName="Area" domainObjectName="Area">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="ID" javaType="String"/> <columnOverride column="ID" javaType="String"/>
<columnOverride column="isActive" javaType="Boolean" /> <columnOverride column="isActive" javaType="Boolean"/>
</table> </table>
<table tableName="AreaRegion" domainObjectName="AreaRegion"> <table tableName="AreaRegion" domainObjectName="AreaRegion">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="ID" javaType="String"/> <columnOverride column="ID" javaType="String"/>
</table> </table>
<table tableName="Region" domainObjectName="Region"> <table tableName="Region" domainObjectName="Region">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="ID" javaType="String"/> <columnOverride column="ID" javaType="String"/>
<columnOverride column="isActive" javaType="Boolean" /> <columnOverride column="isActive" javaType="Boolean"/>
</table> </table>
<table tableName="UserDimensionValue" domainObjectName="UserDimensionValue" > <table tableName="UserDimensionValue" domainObjectName="UserDimensionValue">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="isAccessible" javaType="Boolean" /> <columnOverride column="isAccessible" javaType="Boolean"/>
<columnOverride column="hasOriginalRole" javaType="Boolean" /> <columnOverride column="hasOriginalRole" javaType="Boolean"/>
</table> </table>
<table tableName="OrganizationStructure" domainObjectName="OrganizationStructure"> <table tableName="OrganizationStructure" domainObjectName="OrganizationStructure">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="isActive" javaType="Boolean" /> <columnOverride column="isActive" javaType="Boolean"/>
</table> </table>
<!-- User做为表名需要加引号,考虑需要兼容DB2与ORCAL数据库, sql语句中要使用 select * from "USER" --> <!-- User做为表名需要加引号,考虑需要兼容DB2与ORCAL数据库, sql语句中要使用 select * from "USER" -->
<table tableName="User" domainObjectName="User"> <table tableName="User" domainObjectName="User">
<!-- 指定runtimeTableName为大写的USER, 因为定义在table标签的tableName并不生效 --> <!-- 指定runtimeTableName为大写的USER, 因为定义在table标签的tableName并不生效 -->
<!--<property name="runtimeTableName" value="USER" />--> <!--<property name="runtimeTableName" value="USER" />-->
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="isAdmin" javaType="Boolean" /> <columnOverride column="isAdmin" javaType="Boolean"/>
<columnOverride column="isSuperAdmin" javaType="Boolean" /> <columnOverride column="isSuperAdmin" javaType="Boolean"/>
</table> </table>
<table tableName="UserRole" domainObjectName="UserRole"> <table tableName="UserRole" domainObjectName="UserRole">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="RolePermission" domainObjectName="RolePermission"> <table tableName="RolePermission" domainObjectName="RolePermission">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="Permission" domainObjectName="Permission"> <table tableName="Permission" domainObjectName="Permission">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="RelyOnCodes" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="RelyOnCodes" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="isActive" javaType="Boolean" /> <columnOverride column="isActive" javaType="Boolean"/>
</table> </table>
<table tableName="Menu" domainObjectName="Menu"> <table tableName="Menu" domainObjectName="Menu">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="NavigationUrl" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="NavigationUrl" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="IconClassName" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="IconClassName" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="isActive" javaType="Boolean" /> <columnOverride column="isActive" javaType="Boolean"/>
<columnOverride column="isVisible" javaType="Boolean" /> <columnOverride column="isVisible" javaType="Boolean"/>
</table> </table>
<table tableName="OperationLogOrganization" domainObjectName="OperationLogOrganization"> <table tableName="OperationLogOrganization" domainObjectName="OperationLogOrganization">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="OriginalState" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="OriginalState" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="UpdateState" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="UpdateState" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR"/>
</table> </table>
<table tableName="OperationLogBasicData" domainObjectName="OperationLogBasicData"> <table tableName="OperationLogBasicData" domainObjectName="OperationLogBasicData">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="OriginalState" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="OriginalState" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="UpdateState" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="UpdateState" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR"/>
</table> </table>
<table tableName="OperationLogEnterPrise" domainObjectName="OperationLogEnterPrise"> <table tableName="OperationLogEnterPrise" domainObjectName="OperationLogEnterPrise">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="OriginalState" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="OriginalState" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="UpdateState" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="UpdateState" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR"/>
</table> </table>
<table tableName="OperationLogRole" domainObjectName="OperationLogRole"> <table tableName="OperationLogRole" domainObjectName="OperationLogRole">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="OriginalState" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="OriginalState" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="UpdateState" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="UpdateState" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR"/>
</table> </table>
<table tableName="Organization" domainObjectName="Organization"> <table tableName="Organization" domainObjectName="Organization">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="EnglishName" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="EnglishName" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="ManufactureAddress" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="ManufactureAddress" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="RegisterAddress" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="RegisterAddress" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="Remark" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="Remark" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="Address" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="Address" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="RegistrationLocation" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="RegistrationLocation" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="RegistrationCapital" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="RegistrationCapital" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="LegalCode" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="LegalCode" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="pLevel" property="pLevel"/> <columnOverride column="pLevel" property="pLevel"/>
<columnOverride column="isActive" javaType="Boolean" /> <columnOverride column="isActive" javaType="Boolean"/>
</table> </table>
<table tableName="EnterpriseAccountSet" domainObjectName="EnterpriseAccountSet"> <table tableName="EnterpriseAccountSet" domainObjectName="EnterpriseAccountSet">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="ID" javaType="String"/> <columnOverride column="ID" javaType="String"/>
<columnOverride column="Name" javaType="java.lang.String" jdbcType="VARCHAR"/> <columnOverride column="Name" javaType="java.lang.String" jdbcType="VARCHAR"/>
...@@ -148,153 +149,153 @@ ...@@ -148,153 +149,153 @@
<columnOverride column="UpdateTime"/> <columnOverride column="UpdateTime"/>
</table> </table>
<table tableName="EnterpriseAccount" domainObjectName="EnterpriseAccount"> <table tableName="EnterpriseAccount" domainObjectName="EnterpriseAccount">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="IsActive" javaType="Boolean" property="isActive"/> <columnOverride column="IsActive" javaType="Boolean" property="isActive"/>
<columnOverride column="IsLeaf" javaType="Boolean" property="isLeaf"/> <columnOverride column="IsLeaf" javaType="Boolean" property="isLeaf"/>
</table> </table>
<table tableName="StandardAccount" domainObjectName="StandardAccount"> <table tableName="StandardAccount" domainObjectName="StandardAccount">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="isActive" javaType="Boolean" /> <columnOverride column="isActive" javaType="Boolean"/>
<columnOverride column="isLeaf" javaType="Boolean" /> <columnOverride column="isLeaf" javaType="Boolean"/>
</table> </table>
<table tableName="AccountMapping" domainObjectName="AccountMapping"> <table tableName="AccountMapping" domainObjectName="AccountMapping">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="AccountMappingManual" domainObjectName="AccountMappingManual"> <table tableName="AccountMappingManual" domainObjectName="AccountMappingManual">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="EnterpriseAccountSetOrg" domainObjectName="EnterpriseAccountSetOrg"> <table tableName="EnterpriseAccountSetOrg" domainObjectName="EnterpriseAccountSetOrg">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="BusinessUnit" domainObjectName="BusinessUnit"> <table tableName="BusinessUnit" domainObjectName="BusinessUnit">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="isActive" javaType="Boolean" /> <columnOverride column="isActive" javaType="Boolean"/>
<columnOverride column="isLeaf" javaType="Boolean" /> <columnOverride column="isLeaf" javaType="Boolean"/>
</table> </table>
<table tableName="Customer" domainObjectName="Customer"> <table tableName="Customer" domainObjectName="Customer">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="Role" domainObjectName="Role"> <table tableName="Role" domainObjectName="Role">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="Description" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="Description" javaType="java.lang.String" jdbcType="VARCHAR"/>
</table> </table>
<table tableName="RoleCategory" domainObjectName="RoleCategory"> <table tableName="RoleCategory" domainObjectName="RoleCategory">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="isActive" javaType="Boolean" /> <columnOverride column="isActive" javaType="Boolean"/>
</table> </table>
<table tableName="UserHistoricalPassword" domainObjectName="UserHistoricalPassword"> <table tableName="UserHistoricalPassword" domainObjectName="UserHistoricalPassword">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="UserDimensionValueOrg" domainObjectName="UserDimensionValueOrg"> <table tableName="UserDimensionValueOrg" domainObjectName="UserDimensionValueOrg">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="isHeritable" javaType="Boolean" /> <columnOverride column="isHeritable" javaType="Boolean"/>
</table> </table>
<table tableName="UserDimensionValueRole" domainObjectName="UserDimensionValueRole"> <table tableName="UserDimensionValueRole" domainObjectName="UserDimensionValueRole">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="UserOrganization" domainObjectName="UserOrganization"> <table tableName="UserOrganization" domainObjectName="UserOrganization">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="isAccessible" javaType="Boolean" /> <columnOverride column="isAccessible" javaType="Boolean"/>
<columnOverride column="hasOriginalRole" javaType="Boolean" /> <columnOverride column="hasOriginalRole" javaType="Boolean"/>
</table> </table>
<table tableName="UserOrganizationRole" domainObjectName="UserOrganizationRole"> <table tableName="UserOrganizationRole" domainObjectName="UserOrganizationRole">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="DimensionValueOrg" domainObjectName="DimensionValueOrg"> <table tableName="DimensionValueOrg" domainObjectName="DimensionValueOrg">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="ServiceType" domainObjectName="ServiceType"> <table tableName="ServiceType" domainObjectName="ServiceType">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="isActive" javaType="Boolean" /> <columnOverride column="isActive" javaType="Boolean"/>
</table> </table>
<table tableName="Dimension" domainObjectName="Dimension"> <table tableName="Dimension" domainObjectName="Dimension">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="IsMandatory" javaType="Boolean" /> <columnOverride column="IsMandatory" javaType="Boolean"/>
<columnOverride column="IsActive" javaType="Boolean" /> <columnOverride column="IsActive" javaType="Boolean"/>
<columnOverride column="IsSystemDimension" javaType="Boolean" /> <columnOverride column="IsSystemDimension" javaType="Boolean"/>
</table> </table>
<table tableName="DimensionValue" domainObjectName="DimensionValue"> <table tableName="DimensionValue" domainObjectName="DimensionValue">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="IsActive" javaType="Boolean" /> <columnOverride column="IsActive" javaType="Boolean"/>
</table> </table>
<table tableName="Stock" domainObjectName="Stock"> <table tableName="Stock" domainObjectName="Stock">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="Name" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="Name" javaType="java.lang.String" jdbcType="VARCHAR"/>
</table> </table>
<table tableName="ProjectClient" domainObjectName="ProjectClient"> <table tableName="ProjectClient" domainObjectName="ProjectClient">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="IsActive" javaType="Boolean" /> <columnOverride column="IsActive" javaType="Boolean"/>
</table> </table>
<table tableName="Industry" domainObjectName="Industry"> <table tableName="Industry" domainObjectName="Industry">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="IsActive" javaType="Boolean" /> <columnOverride column="IsActive" javaType="Boolean"/>
</table> </table>
<table tableName="StatisticAttribute" domainObjectName="StatisticAttribute"> <table tableName="StatisticAttribute" domainObjectName="StatisticAttribute">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="IsActive" javaType="Boolean" /> <columnOverride column="IsActive" javaType="Boolean"/>
</table> </table>
<table tableName="StatisticAttributeDimension" domainObjectName="StatisticAttributeDimension"> <table tableName="StatisticAttributeDimension" domainObjectName="StatisticAttributeDimension">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="Dictionary" domainObjectName="Dictionary"> <table tableName="Dictionary" domainObjectName="Dictionary">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="DictValue" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="DictValue" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="Remark" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="Remark" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="IsActive" javaType="Boolean" /> <columnOverride column="IsActive" javaType="Boolean"/>
</table> </table>
<table tableName="Cache" domainObjectName="Cache"> <table tableName="Cache" domainObjectName="Cache">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="OperationLogUser" domainObjectName="OperationLogUser"> <table tableName="OperationLogUser" domainObjectName="OperationLogUser">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="OriginalState" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="OriginalState" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="UpdateState" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="UpdateState" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR"/>
</table> </table>
<table tableName="OrganizationServiceTemplateGroup" domainObjectName="OrganizationServiceTemplateGroup"> <table tableName="OrganizationServiceTemplateGroup" domainObjectName="OrganizationServiceTemplateGroup">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="TaxPayerReportRule" domainObjectName="TaxPayerReportRule"> <table tableName="TaxPayerReportRule" domainObjectName="TaxPayerReportRule">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="OrganizationID" javaType="java.lang.String" jdbcType="VARCHAR" /> <columnOverride column="OrganizationID" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="IsDefault" javaType="Boolean" /> <columnOverride column="IsDefault" javaType="Boolean"/>
</table> </table>
<table tableName="TaxRuleSetting" domainObjectName="TaxRuleSetting"> <table tableName="TaxRuleSetting" domainObjectName="TaxRuleSetting">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true" /> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="IsDefault" javaType="Boolean" /> <columnOverride column="IsDefault" javaType="Boolean"/>
</table> </table>
<table tableName="TaxRuleSettingOrganization" domainObjectName="TaxRuleSettingOrganization"> <table tableName="TaxRuleSettingOrganization" domainObjectName="TaxRuleSettingOrganization">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true" /> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="KeyValueConfig" domainObjectName="KeyValueConfig"> <table tableName="KeyValueConfig" domainObjectName="KeyValueConfig">
<property name="useActualColumnNames" value="true"/> <property name="useActualColumnNames" value="true"/>
...@@ -305,31 +306,31 @@ ...@@ -305,31 +306,31 @@
<columnOverride column="Description" javaType="java.lang.String" jdbcType="VARCHAR"/> <columnOverride column="Description" javaType="java.lang.String" jdbcType="VARCHAR"/>
</table> </table>
<table tableName="TemplateGroup" domainObjectName="TemplateGroup"> <table tableName="TemplateGroup" domainObjectName="TemplateGroup">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true" /> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="IsSystemType" javaType="Boolean" /> <columnOverride column="IsSystemType" javaType="Boolean"/>
</table> </table>
<table tableName="KeyValueReference" domainObjectName="KeyValueReference"> <table tableName="KeyValueReference" domainObjectName="KeyValueReference">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true" /> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="Model" domainObjectName="Model"> <table tableName="Model" domainObjectName="Model">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true" /> <property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="Description" javaType="java.lang.String" <columnOverride column="Description" javaType="java.lang.String"
jdbcType="VARCHAR" /> jdbcType="VARCHAR"/>
</table> </table>
<table tableName="ModelCategory" domainObjectName="ModelCategory"> <table tableName="ModelCategory" domainObjectName="ModelCategory">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true" /> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="ModelConfig" domainObjectName="ModelConfig"> <table tableName="ModelConfig" domainObjectName="ModelConfig">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true" /> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="ModelServiceConfig" domainObjectName="ModelServiceConfig"> <table tableName="ModelServiceConfig" domainObjectName="ModelServiceConfig">
<property name="useActualColumnNames" value="true" /> <property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true" /> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
<table tableName="CellTemplate" domainObjectName="CellTemplate"> <table tableName="CellTemplate" domainObjectName="CellTemplate">
<property name="useActualColumnNames" value="true"/> <property name="useActualColumnNames" value="true"/>
...@@ -337,6 +338,7 @@ ...@@ -337,6 +338,7 @@
<columnOverride column="RowName" javaType="java.lang.String" jdbcType="VARCHAR"/> <columnOverride column="RowName" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="ColumnName" javaType="java.lang.String" jdbcType="VARCHAR"/> <columnOverride column="ColumnName" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR"/> <columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="IsReadOnly" javaType="Boolean"/>
</table> </table>
<table tableName="CellTemplateConfig" domainObjectName="CellTemplateConfig"> <table tableName="CellTemplateConfig" domainObjectName="CellTemplateConfig">
<property name="useActualColumnNames" value="true"/> <property name="useActualColumnNames" value="true"/>
...@@ -350,5 +352,23 @@ ...@@ -350,5 +352,23 @@
<columnOverride column="ValidationDescription" javaType="java.lang.String" jdbcType="VARCHAR"/> <columnOverride column="ValidationDescription" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="VoucherKeyword" javaType="java.lang.String" jdbcType="VARCHAR"/> <columnOverride column="VoucherKeyword" javaType="java.lang.String" jdbcType="VARCHAR"/>
</table> </table>
<table tableName="Template" domainObjectName="Template">
<property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="Name" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="Code" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="Path" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="ParentId" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="IsSystemType" javaType="Boolean"/>
<columnOverride column="IsActiveAssociation" javaType="Boolean"/>
</table>
<table tableName="TemplateFormula" domainObjectName="TemplateFormula">
<property name="useActualColumnNames" value="true"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="Formula" javaType="java.lang.String" jdbcType="VARCHAR"/>
<columnOverride column="IsManualChange" javaType="Boolean"/>
<columnOverride column="Instructions" javaType="java.lang.String" jdbcType="VARCHAR"/>
</table>
</context> </context>
</generatorConfiguration> </generatorConfiguration>
\ No newline at end of file
rem see http://www.mybatis.org/generator/running/runningFromCmdLine.html rem see http://www.mybatis.org/generator/running/runningFromCmdLine.html
cd /d %~dp0 cd /d %~dp0
call java -classpath .;./* org.mybatis.generator.api.ShellRunner -configfile generatorConfig.xml -overwrite -verbose -tables CellTemplateConfig call java -classpath .;./* org.mybatis.generator.api.ShellRunner -configfile generatorConfig.xml -overwrite -verbose -tables TemplateFormula
echo @@@@@@@@@@@ DONE @@@@@@@@@@@ echo @@@@@@@@@@@ DONE @@@@@@@@@@@
pause pause
package pwc.taxtech.atms.controller; package pwc.taxtech.atms.controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import pwc.taxtech.atms.dto.TemplateDto;
import pwc.taxtech.atms.service.TemplateService;
import java.util.Collections;
import java.util.List;
@RestController @RestController
@RequestMapping(value = "api/v1/template") @RequestMapping(value = "api/v1/template")
public class TemplateController { public class TemplateController {
private static final Logger logger = LoggerFactory.getLogger(AccountController.class);
@Autowired
TemplateService templateService;
//todo: //todo:
//[Route("getTemplateJson")] //[Route("getTemplateJson")]
// [HttpGet] // [HttpGet]
...@@ -14,10 +27,18 @@ public class TemplateController { ...@@ -14,10 +27,18 @@ public class TemplateController {
// return this.Ok(templateService.GetTemplateJson(templateID)); // return this.Ok(templateService.GetTemplateJson(templateID));
// } // }
// [Route("get")] @RequestMapping(value = "get", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
// [HttpGet] public @ResponseBody
// public IHttpActionResult get(string templateGroupID, int? reportType) List<TemplateDto> get(@RequestParam String templateGroupID, @RequestParam Integer reportType) {
// { if (StringUtils.isEmpty(templateGroupID)) {
// return this.Ok(this.templateService.Get(templateGroupID, reportType)); return Collections.emptyList();
// } }
try {
return templateService.get(templateGroupID, reportType);
} catch (Exception e) {
logger.error("GetCellConfigList", e);
}
return Collections.emptyList();
}
} }
package pwc.taxtech.atms.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyMapper;
import pwc.taxtech.atms.entitiy.TemplateFormula;
import pwc.taxtech.atms.entitiy.TemplateFormulaExample;
@Mapper
public interface TemplateFormulaMapper extends MyMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
long countByExample(TemplateFormulaExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
int deleteByExample(TemplateFormulaExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
int deleteByPrimaryKey(String ID);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
int insert(TemplateFormula record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
int insertSelective(TemplateFormula record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
List<TemplateFormula> selectByExampleWithRowbounds(TemplateFormulaExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
List<TemplateFormula> selectByExample(TemplateFormulaExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
TemplateFormula selectByPrimaryKey(String ID);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") TemplateFormula record, @Param("example") TemplateFormulaExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
int updateByExample(@Param("record") TemplateFormula record, @Param("example") TemplateFormulaExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(TemplateFormula record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
int updateByPrimaryKey(TemplateFormula record);
}
\ No newline at end of file
package pwc.taxtech.atms.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyMapper;
import pwc.taxtech.atms.entitiy.Template;
import pwc.taxtech.atms.entitiy.TemplateExample;
@Mapper
public interface TemplateMapper extends MyMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
long countByExample(TemplateExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
int deleteByExample(TemplateExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
int deleteByPrimaryKey(String ID);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
int insert(Template record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
int insertSelective(Template record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
List<Template> selectByExampleWithRowbounds(TemplateExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
List<Template> selectByExample(TemplateExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
Template selectByPrimaryKey(String ID);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") Template record, @Param("example") TemplateExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
int updateByExample(@Param("record") Template record, @Param("example") TemplateExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(Template record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
int updateByPrimaryKey(Template record);
}
\ No newline at end of file
package pwc.taxtech.atms.dto;
public class CellTemplateDto {
private String ID;
private String reportTemplateID;
private int rowIndex;
private String rowName;
private int columnIndex;
private String columnName;
private String comment;
private String copyFromID;
private Integer dataType;
private Integer isReadOnly;
/**
* 单元格的值(从Excel导入的单元格数据)
*/
private String CellValue;
public CellTemplateDto() {
}
public String getID() {
return ID;
}
public void setID(String ID) {
this.ID = ID;
}
public String getReportTemplateID() {
return reportTemplateID;
}
public void setReportTemplateID(String reportTemplateID) {
this.reportTemplateID = reportTemplateID;
}
public int getRowIndex() {
return rowIndex;
}
public void setRowIndex(int rowIndex) {
this.rowIndex = rowIndex;
}
public String getRowName() {
return rowName;
}
public void setRowName(String rowName) {
this.rowName = rowName;
}
public int getColumnIndex() {
return columnIndex;
}
public void setColumnIndex(int columnIndex) {
this.columnIndex = columnIndex;
}
public String getColumnName() {
return columnName;
}
public void setColumnName(String columnName) {
this.columnName = columnName;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
public String getCopyFromID() {
return copyFromID;
}
public void setCopyFromID(String copyFromID) {
this.copyFromID = copyFromID;
}
public Integer getDataType() {
return dataType;
}
public void setDataType(Integer dataType) {
this.dataType = dataType;
}
public Integer getIsReadOnly() {
return isReadOnly;
}
public void setIsReadOnly(Integer isReadOnly) {
this.isReadOnly = isReadOnly;
}
}
package pwc.taxtech.atms.dto;
import java.util.Date;
import java.util.List;
public final class TemplateDto {
private String ID;
private String name;
private String path;
private Integer reportType;
private String templateGroupID;
private Date createTime;
private Date updateTime;
private String parentID;
private String templateName;
private int orderIndex;
private String code;
private boolean isSystemType;
private boolean isActiveAssociation;
/**
* 单元格的配置信息
*/
private List<CellTemplateDto> cellTemplateDtos;
/**
* validate msg
*/
private String validateMsg;
public String getID() {
return ID;
}
public void setID(String ID) {
this.ID = ID;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public Integer getReportType() {
return reportType;
}
public void setReportType(Integer reportType) {
this.reportType = reportType;
}
public String getTemplateGroupID() {
return templateGroupID;
}
public void setTemplateGroupID(String templateGroupID) {
this.templateGroupID = templateGroupID;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getParentID() {
return parentID;
}
public void setParentID(String parentID) {
this.parentID = parentID;
}
public String getTemplateName() {
return templateName;
}
public void setTemplateName(String templateName) {
this.templateName = templateName;
}
public int getOrderIndex() {
return orderIndex;
}
public void setOrderIndex(int orderIndex) {
this.orderIndex = orderIndex;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public boolean isSystemType() {
return isSystemType;
}
public void setSystemType(boolean systemType) {
isSystemType = systemType;
}
public boolean isActiveAssociation() {
return isActiveAssociation;
}
public void setActiveAssociation(boolean activeAssociation) {
isActiveAssociation = activeAssociation;
}
public List<CellTemplateDto> getCellTemplateDtos() {
return cellTemplateDtos;
}
public void setCellTemplateDtos(List<CellTemplateDto> cellTemplateDtos) {
this.cellTemplateDtos = cellTemplateDtos;
}
public String getValidateMsg() {
return validateMsg;
}
public void setValidateMsg(String validateMsg) {
this.validateMsg = validateMsg;
}
}
package pwc.taxtech.atms.entitiy;
import java.io.Serializable;
import java.util.Date;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table Template
*
* @mbg.generated do_not_delete_during_merge
*/
public class Template implements Serializable {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column Template.ID
*
* @mbg.generated
*/
private String ID;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column Template.Name
*
* @mbg.generated
*/
private String name;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column Template.Code
*
* @mbg.generated
*/
private String code;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column Template.Path
*
* @mbg.generated
*/
private String path;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column Template.ReportType
*
* @mbg.generated
*/
private Integer reportType;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column Template.TemplateGroupID
*
* @mbg.generated
*/
private String templateGroupID;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column Template.OrderIndex
*
* @mbg.generated
*/
private Integer orderIndex;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column Template.CreateTime
*
* @mbg.generated
*/
private Date createTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column Template.UpdateTime
*
* @mbg.generated
*/
private Date updateTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column Template.IsSystemType
*
* @mbg.generated
*/
private Boolean isSystemType;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column Template.IsActiveAssociation
*
* @mbg.generated
*/
private Boolean isActiveAssociation;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column Template.ParentId
*
* @mbg.generated
*/
private String parentId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table Template
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column Template.ID
*
* @return the value of Template.ID
*
* @mbg.generated
*/
public String getID() {
return ID;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column Template.ID
*
* @param ID the value for Template.ID
*
* @mbg.generated
*/
public void setID(String ID) {
this.ID = ID == null ? null : ID.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column Template.Name
*
* @return the value of Template.Name
*
* @mbg.generated
*/
public String getName() {
return name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column Template.Name
*
* @param name the value for Template.Name
*
* @mbg.generated
*/
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column Template.Code
*
* @return the value of Template.Code
*
* @mbg.generated
*/
public String getCode() {
return code;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column Template.Code
*
* @param code the value for Template.Code
*
* @mbg.generated
*/
public void setCode(String code) {
this.code = code == null ? null : code.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column Template.Path
*
* @return the value of Template.Path
*
* @mbg.generated
*/
public String getPath() {
return path;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column Template.Path
*
* @param path the value for Template.Path
*
* @mbg.generated
*/
public void setPath(String path) {
this.path = path == null ? null : path.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column Template.ReportType
*
* @return the value of Template.ReportType
*
* @mbg.generated
*/
public Integer getReportType() {
return reportType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column Template.ReportType
*
* @param reportType the value for Template.ReportType
*
* @mbg.generated
*/
public void setReportType(Integer reportType) {
this.reportType = reportType;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column Template.TemplateGroupID
*
* @return the value of Template.TemplateGroupID
*
* @mbg.generated
*/
public String getTemplateGroupID() {
return templateGroupID;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column Template.TemplateGroupID
*
* @param templateGroupID the value for Template.TemplateGroupID
*
* @mbg.generated
*/
public void setTemplateGroupID(String templateGroupID) {
this.templateGroupID = templateGroupID == null ? null : templateGroupID.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column Template.OrderIndex
*
* @return the value of Template.OrderIndex
*
* @mbg.generated
*/
public Integer getOrderIndex() {
return orderIndex;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column Template.OrderIndex
*
* @param orderIndex the value for Template.OrderIndex
*
* @mbg.generated
*/
public void setOrderIndex(Integer orderIndex) {
this.orderIndex = orderIndex;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column Template.CreateTime
*
* @return the value of Template.CreateTime
*
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column Template.CreateTime
*
* @param createTime the value for Template.CreateTime
*
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column Template.UpdateTime
*
* @return the value of Template.UpdateTime
*
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column Template.UpdateTime
*
* @param updateTime the value for Template.UpdateTime
*
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column Template.IsSystemType
*
* @return the value of Template.IsSystemType
*
* @mbg.generated
*/
public Boolean getIsSystemType() {
return isSystemType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column Template.IsSystemType
*
* @param isSystemType the value for Template.IsSystemType
*
* @mbg.generated
*/
public void setIsSystemType(Boolean isSystemType) {
this.isSystemType = isSystemType;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column Template.IsActiveAssociation
*
* @return the value of Template.IsActiveAssociation
*
* @mbg.generated
*/
public Boolean getIsActiveAssociation() {
return isActiveAssociation;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column Template.IsActiveAssociation
*
* @param isActiveAssociation the value for Template.IsActiveAssociation
*
* @mbg.generated
*/
public void setIsActiveAssociation(Boolean isActiveAssociation) {
this.isActiveAssociation = isActiveAssociation;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column Template.ParentId
*
* @return the value of Template.ParentId
*
* @mbg.generated
*/
public String getParentId() {
return parentId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column Template.ParentId
*
* @param parentId the value for Template.ParentId
*
* @mbg.generated
*/
public void setParentId(String parentId) {
this.parentId = parentId == null ? null : parentId.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", ID=").append(ID);
sb.append(", name=").append(name);
sb.append(", code=").append(code);
sb.append(", path=").append(path);
sb.append(", reportType=").append(reportType);
sb.append(", templateGroupID=").append(templateGroupID);
sb.append(", orderIndex=").append(orderIndex);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isSystemType=").append(isSystemType);
sb.append(", isActiveAssociation=").append(isActiveAssociation);
sb.append(", parentId=").append(parentId);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package pwc.taxtech.atms.entitiy;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TemplateExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table Template
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table Template
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table Template
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
public TemplateExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table Template
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table Template
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIDIsNull() {
addCriterion("ID is null");
return (Criteria) this;
}
public Criteria andIDIsNotNull() {
addCriterion("ID is not null");
return (Criteria) this;
}
public Criteria andIDEqualTo(String value) {
addCriterion("ID =", value, "ID");
return (Criteria) this;
}
public Criteria andIDNotEqualTo(String value) {
addCriterion("ID <>", value, "ID");
return (Criteria) this;
}
public Criteria andIDGreaterThan(String value) {
addCriterion("ID >", value, "ID");
return (Criteria) this;
}
public Criteria andIDGreaterThanOrEqualTo(String value) {
addCriterion("ID >=", value, "ID");
return (Criteria) this;
}
public Criteria andIDLessThan(String value) {
addCriterion("ID <", value, "ID");
return (Criteria) this;
}
public Criteria andIDLessThanOrEqualTo(String value) {
addCriterion("ID <=", value, "ID");
return (Criteria) this;
}
public Criteria andIDLike(String value) {
addCriterion("ID like", value, "ID");
return (Criteria) this;
}
public Criteria andIDNotLike(String value) {
addCriterion("ID not like", value, "ID");
return (Criteria) this;
}
public Criteria andIDIn(List<String> values) {
addCriterion("ID in", values, "ID");
return (Criteria) this;
}
public Criteria andIDNotIn(List<String> values) {
addCriterion("ID not in", values, "ID");
return (Criteria) this;
}
public Criteria andIDBetween(String value1, String value2) {
addCriterion("ID between", value1, value2, "ID");
return (Criteria) this;
}
public Criteria andIDNotBetween(String value1, String value2) {
addCriterion("ID not between", value1, value2, "ID");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("Name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("Name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("Name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("Name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("Name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("Name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("Name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("Name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("Name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("Name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("Name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("Name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("Name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("Name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andCodeIsNull() {
addCriterion("Code is null");
return (Criteria) this;
}
public Criteria andCodeIsNotNull() {
addCriterion("Code is not null");
return (Criteria) this;
}
public Criteria andCodeEqualTo(String value) {
addCriterion("Code =", value, "code");
return (Criteria) this;
}
public Criteria andCodeNotEqualTo(String value) {
addCriterion("Code <>", value, "code");
return (Criteria) this;
}
public Criteria andCodeGreaterThan(String value) {
addCriterion("Code >", value, "code");
return (Criteria) this;
}
public Criteria andCodeGreaterThanOrEqualTo(String value) {
addCriterion("Code >=", value, "code");
return (Criteria) this;
}
public Criteria andCodeLessThan(String value) {
addCriterion("Code <", value, "code");
return (Criteria) this;
}
public Criteria andCodeLessThanOrEqualTo(String value) {
addCriterion("Code <=", value, "code");
return (Criteria) this;
}
public Criteria andCodeLike(String value) {
addCriterion("Code like", value, "code");
return (Criteria) this;
}
public Criteria andCodeNotLike(String value) {
addCriterion("Code not like", value, "code");
return (Criteria) this;
}
public Criteria andCodeIn(List<String> values) {
addCriterion("Code in", values, "code");
return (Criteria) this;
}
public Criteria andCodeNotIn(List<String> values) {
addCriterion("Code not in", values, "code");
return (Criteria) this;
}
public Criteria andCodeBetween(String value1, String value2) {
addCriterion("Code between", value1, value2, "code");
return (Criteria) this;
}
public Criteria andCodeNotBetween(String value1, String value2) {
addCriterion("Code not between", value1, value2, "code");
return (Criteria) this;
}
public Criteria andPathIsNull() {
addCriterion("Path is null");
return (Criteria) this;
}
public Criteria andPathIsNotNull() {
addCriterion("Path is not null");
return (Criteria) this;
}
public Criteria andPathEqualTo(String value) {
addCriterion("Path =", value, "path");
return (Criteria) this;
}
public Criteria andPathNotEqualTo(String value) {
addCriterion("Path <>", value, "path");
return (Criteria) this;
}
public Criteria andPathGreaterThan(String value) {
addCriterion("Path >", value, "path");
return (Criteria) this;
}
public Criteria andPathGreaterThanOrEqualTo(String value) {
addCriterion("Path >=", value, "path");
return (Criteria) this;
}
public Criteria andPathLessThan(String value) {
addCriterion("Path <", value, "path");
return (Criteria) this;
}
public Criteria andPathLessThanOrEqualTo(String value) {
addCriterion("Path <=", value, "path");
return (Criteria) this;
}
public Criteria andPathLike(String value) {
addCriterion("Path like", value, "path");
return (Criteria) this;
}
public Criteria andPathNotLike(String value) {
addCriterion("Path not like", value, "path");
return (Criteria) this;
}
public Criteria andPathIn(List<String> values) {
addCriterion("Path in", values, "path");
return (Criteria) this;
}
public Criteria andPathNotIn(List<String> values) {
addCriterion("Path not in", values, "path");
return (Criteria) this;
}
public Criteria andPathBetween(String value1, String value2) {
addCriterion("Path between", value1, value2, "path");
return (Criteria) this;
}
public Criteria andPathNotBetween(String value1, String value2) {
addCriterion("Path not between", value1, value2, "path");
return (Criteria) this;
}
public Criteria andReportTypeIsNull() {
addCriterion("ReportType is null");
return (Criteria) this;
}
public Criteria andReportTypeIsNotNull() {
addCriterion("ReportType is not null");
return (Criteria) this;
}
public Criteria andReportTypeEqualTo(Integer value) {
addCriterion("ReportType =", value, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeNotEqualTo(Integer value) {
addCriterion("ReportType <>", value, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeGreaterThan(Integer value) {
addCriterion("ReportType >", value, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("ReportType >=", value, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeLessThan(Integer value) {
addCriterion("ReportType <", value, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeLessThanOrEqualTo(Integer value) {
addCriterion("ReportType <=", value, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeIn(List<Integer> values) {
addCriterion("ReportType in", values, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeNotIn(List<Integer> values) {
addCriterion("ReportType not in", values, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeBetween(Integer value1, Integer value2) {
addCriterion("ReportType between", value1, value2, "reportType");
return (Criteria) this;
}
public Criteria andReportTypeNotBetween(Integer value1, Integer value2) {
addCriterion("ReportType not between", value1, value2, "reportType");
return (Criteria) this;
}
public Criteria andTemplateGroupIDIsNull() {
addCriterion("TemplateGroupID is null");
return (Criteria) this;
}
public Criteria andTemplateGroupIDIsNotNull() {
addCriterion("TemplateGroupID is not null");
return (Criteria) this;
}
public Criteria andTemplateGroupIDEqualTo(String value) {
addCriterion("TemplateGroupID =", value, "templateGroupID");
return (Criteria) this;
}
public Criteria andTemplateGroupIDNotEqualTo(String value) {
addCriterion("TemplateGroupID <>", value, "templateGroupID");
return (Criteria) this;
}
public Criteria andTemplateGroupIDGreaterThan(String value) {
addCriterion("TemplateGroupID >", value, "templateGroupID");
return (Criteria) this;
}
public Criteria andTemplateGroupIDGreaterThanOrEqualTo(String value) {
addCriterion("TemplateGroupID >=", value, "templateGroupID");
return (Criteria) this;
}
public Criteria andTemplateGroupIDLessThan(String value) {
addCriterion("TemplateGroupID <", value, "templateGroupID");
return (Criteria) this;
}
public Criteria andTemplateGroupIDLessThanOrEqualTo(String value) {
addCriterion("TemplateGroupID <=", value, "templateGroupID");
return (Criteria) this;
}
public Criteria andTemplateGroupIDLike(String value) {
addCriterion("TemplateGroupID like", value, "templateGroupID");
return (Criteria) this;
}
public Criteria andTemplateGroupIDNotLike(String value) {
addCriterion("TemplateGroupID not like", value, "templateGroupID");
return (Criteria) this;
}
public Criteria andTemplateGroupIDIn(List<String> values) {
addCriterion("TemplateGroupID in", values, "templateGroupID");
return (Criteria) this;
}
public Criteria andTemplateGroupIDNotIn(List<String> values) {
addCriterion("TemplateGroupID not in", values, "templateGroupID");
return (Criteria) this;
}
public Criteria andTemplateGroupIDBetween(String value1, String value2) {
addCriterion("TemplateGroupID between", value1, value2, "templateGroupID");
return (Criteria) this;
}
public Criteria andTemplateGroupIDNotBetween(String value1, String value2) {
addCriterion("TemplateGroupID not between", value1, value2, "templateGroupID");
return (Criteria) this;
}
public Criteria andOrderIndexIsNull() {
addCriterion("OrderIndex is null");
return (Criteria) this;
}
public Criteria andOrderIndexIsNotNull() {
addCriterion("OrderIndex is not null");
return (Criteria) this;
}
public Criteria andOrderIndexEqualTo(Integer value) {
addCriterion("OrderIndex =", value, "orderIndex");
return (Criteria) this;
}
public Criteria andOrderIndexNotEqualTo(Integer value) {
addCriterion("OrderIndex <>", value, "orderIndex");
return (Criteria) this;
}
public Criteria andOrderIndexGreaterThan(Integer value) {
addCriterion("OrderIndex >", value, "orderIndex");
return (Criteria) this;
}
public Criteria andOrderIndexGreaterThanOrEqualTo(Integer value) {
addCriterion("OrderIndex >=", value, "orderIndex");
return (Criteria) this;
}
public Criteria andOrderIndexLessThan(Integer value) {
addCriterion("OrderIndex <", value, "orderIndex");
return (Criteria) this;
}
public Criteria andOrderIndexLessThanOrEqualTo(Integer value) {
addCriterion("OrderIndex <=", value, "orderIndex");
return (Criteria) this;
}
public Criteria andOrderIndexIn(List<Integer> values) {
addCriterion("OrderIndex in", values, "orderIndex");
return (Criteria) this;
}
public Criteria andOrderIndexNotIn(List<Integer> values) {
addCriterion("OrderIndex not in", values, "orderIndex");
return (Criteria) this;
}
public Criteria andOrderIndexBetween(Integer value1, Integer value2) {
addCriterion("OrderIndex between", value1, value2, "orderIndex");
return (Criteria) this;
}
public Criteria andOrderIndexNotBetween(Integer value1, Integer value2) {
addCriterion("OrderIndex not between", value1, value2, "orderIndex");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("CreateTime is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("CreateTime is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("CreateTime =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("CreateTime <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("CreateTime >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("CreateTime >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("CreateTime <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("CreateTime <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("CreateTime in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("CreateTime not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("CreateTime between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("CreateTime not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("UpdateTime is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("UpdateTime is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("UpdateTime =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("UpdateTime <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("UpdateTime >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("UpdateTime >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("UpdateTime <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("UpdateTime <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("UpdateTime in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("UpdateTime not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("UpdateTime between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("UpdateTime not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andIsSystemTypeIsNull() {
addCriterion("IsSystemType is null");
return (Criteria) this;
}
public Criteria andIsSystemTypeIsNotNull() {
addCriterion("IsSystemType is not null");
return (Criteria) this;
}
public Criteria andIsSystemTypeEqualTo(Boolean value) {
addCriterion("IsSystemType =", value, "isSystemType");
return (Criteria) this;
}
public Criteria andIsSystemTypeNotEqualTo(Boolean value) {
addCriterion("IsSystemType <>", value, "isSystemType");
return (Criteria) this;
}
public Criteria andIsSystemTypeGreaterThan(Boolean value) {
addCriterion("IsSystemType >", value, "isSystemType");
return (Criteria) this;
}
public Criteria andIsSystemTypeGreaterThanOrEqualTo(Boolean value) {
addCriterion("IsSystemType >=", value, "isSystemType");
return (Criteria) this;
}
public Criteria andIsSystemTypeLessThan(Boolean value) {
addCriterion("IsSystemType <", value, "isSystemType");
return (Criteria) this;
}
public Criteria andIsSystemTypeLessThanOrEqualTo(Boolean value) {
addCriterion("IsSystemType <=", value, "isSystemType");
return (Criteria) this;
}
public Criteria andIsSystemTypeIn(List<Boolean> values) {
addCriterion("IsSystemType in", values, "isSystemType");
return (Criteria) this;
}
public Criteria andIsSystemTypeNotIn(List<Boolean> values) {
addCriterion("IsSystemType not in", values, "isSystemType");
return (Criteria) this;
}
public Criteria andIsSystemTypeBetween(Boolean value1, Boolean value2) {
addCriterion("IsSystemType between", value1, value2, "isSystemType");
return (Criteria) this;
}
public Criteria andIsSystemTypeNotBetween(Boolean value1, Boolean value2) {
addCriterion("IsSystemType not between", value1, value2, "isSystemType");
return (Criteria) this;
}
public Criteria andIsActiveAssociationIsNull() {
addCriterion("IsActiveAssociation is null");
return (Criteria) this;
}
public Criteria andIsActiveAssociationIsNotNull() {
addCriterion("IsActiveAssociation is not null");
return (Criteria) this;
}
public Criteria andIsActiveAssociationEqualTo(Boolean value) {
addCriterion("IsActiveAssociation =", value, "isActiveAssociation");
return (Criteria) this;
}
public Criteria andIsActiveAssociationNotEqualTo(Boolean value) {
addCriterion("IsActiveAssociation <>", value, "isActiveAssociation");
return (Criteria) this;
}
public Criteria andIsActiveAssociationGreaterThan(Boolean value) {
addCriterion("IsActiveAssociation >", value, "isActiveAssociation");
return (Criteria) this;
}
public Criteria andIsActiveAssociationGreaterThanOrEqualTo(Boolean value) {
addCriterion("IsActiveAssociation >=", value, "isActiveAssociation");
return (Criteria) this;
}
public Criteria andIsActiveAssociationLessThan(Boolean value) {
addCriterion("IsActiveAssociation <", value, "isActiveAssociation");
return (Criteria) this;
}
public Criteria andIsActiveAssociationLessThanOrEqualTo(Boolean value) {
addCriterion("IsActiveAssociation <=", value, "isActiveAssociation");
return (Criteria) this;
}
public Criteria andIsActiveAssociationIn(List<Boolean> values) {
addCriterion("IsActiveAssociation in", values, "isActiveAssociation");
return (Criteria) this;
}
public Criteria andIsActiveAssociationNotIn(List<Boolean> values) {
addCriterion("IsActiveAssociation not in", values, "isActiveAssociation");
return (Criteria) this;
}
public Criteria andIsActiveAssociationBetween(Boolean value1, Boolean value2) {
addCriterion("IsActiveAssociation between", value1, value2, "isActiveAssociation");
return (Criteria) this;
}
public Criteria andIsActiveAssociationNotBetween(Boolean value1, Boolean value2) {
addCriterion("IsActiveAssociation not between", value1, value2, "isActiveAssociation");
return (Criteria) this;
}
public Criteria andParentIdIsNull() {
addCriterion("ParentId is null");
return (Criteria) this;
}
public Criteria andParentIdIsNotNull() {
addCriterion("ParentId is not null");
return (Criteria) this;
}
public Criteria andParentIdEqualTo(String value) {
addCriterion("ParentId =", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotEqualTo(String value) {
addCriterion("ParentId <>", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdGreaterThan(String value) {
addCriterion("ParentId >", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdGreaterThanOrEqualTo(String value) {
addCriterion("ParentId >=", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdLessThan(String value) {
addCriterion("ParentId <", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdLessThanOrEqualTo(String value) {
addCriterion("ParentId <=", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdLike(String value) {
addCriterion("ParentId like", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotLike(String value) {
addCriterion("ParentId not like", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdIn(List<String> values) {
addCriterion("ParentId in", values, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotIn(List<String> values) {
addCriterion("ParentId not in", values, "parentId");
return (Criteria) this;
}
public Criteria andParentIdBetween(String value1, String value2) {
addCriterion("ParentId between", value1, value2, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotBetween(String value1, String value2) {
addCriterion("ParentId not between", value1, value2, "parentId");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table Template
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table Template
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
package pwc.taxtech.atms.entitiy;
import java.io.Serializable;
import java.util.Date;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table TemplateFormula
*
* @mbg.generated do_not_delete_during_merge
*/
public class TemplateFormula implements Serializable {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TemplateFormula.ID
*
* @mbg.generated
*/
private String ID;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TemplateFormula.RowIndex
*
* @mbg.generated
*/
private Integer rowIndex;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TemplateFormula.ColumnIndex
*
* @mbg.generated
*/
private Integer columnIndex;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TemplateFormula.ColumnEndIndex
*
* @mbg.generated
*/
private Integer columnEndIndex;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TemplateFormula.Formula
*
* @mbg.generated
*/
private String formula;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TemplateFormula.TemplateID
*
* @mbg.generated
*/
private String templateID;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TemplateFormula.CreateTime
*
* @mbg.generated
*/
private Date createTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TemplateFormula.UpdateTime
*
* @mbg.generated
*/
private Date updateTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TemplateFormula.IsManualChange
*
* @mbg.generated
*/
private Boolean isManualChange;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column TemplateFormula.Instructions
*
* @mbg.generated
*/
private String instructions;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TemplateFormula.ID
*
* @return the value of TemplateFormula.ID
*
* @mbg.generated
*/
public String getID() {
return ID;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TemplateFormula.ID
*
* @param ID the value for TemplateFormula.ID
*
* @mbg.generated
*/
public void setID(String ID) {
this.ID = ID == null ? null : ID.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TemplateFormula.RowIndex
*
* @return the value of TemplateFormula.RowIndex
*
* @mbg.generated
*/
public Integer getRowIndex() {
return rowIndex;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TemplateFormula.RowIndex
*
* @param rowIndex the value for TemplateFormula.RowIndex
*
* @mbg.generated
*/
public void setRowIndex(Integer rowIndex) {
this.rowIndex = rowIndex;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TemplateFormula.ColumnIndex
*
* @return the value of TemplateFormula.ColumnIndex
*
* @mbg.generated
*/
public Integer getColumnIndex() {
return columnIndex;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TemplateFormula.ColumnIndex
*
* @param columnIndex the value for TemplateFormula.ColumnIndex
*
* @mbg.generated
*/
public void setColumnIndex(Integer columnIndex) {
this.columnIndex = columnIndex;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TemplateFormula.ColumnEndIndex
*
* @return the value of TemplateFormula.ColumnEndIndex
*
* @mbg.generated
*/
public Integer getColumnEndIndex() {
return columnEndIndex;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TemplateFormula.ColumnEndIndex
*
* @param columnEndIndex the value for TemplateFormula.ColumnEndIndex
*
* @mbg.generated
*/
public void setColumnEndIndex(Integer columnEndIndex) {
this.columnEndIndex = columnEndIndex;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TemplateFormula.Formula
*
* @return the value of TemplateFormula.Formula
*
* @mbg.generated
*/
public String getFormula() {
return formula;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TemplateFormula.Formula
*
* @param formula the value for TemplateFormula.Formula
*
* @mbg.generated
*/
public void setFormula(String formula) {
this.formula = formula == null ? null : formula.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TemplateFormula.TemplateID
*
* @return the value of TemplateFormula.TemplateID
*
* @mbg.generated
*/
public String getTemplateID() {
return templateID;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TemplateFormula.TemplateID
*
* @param templateID the value for TemplateFormula.TemplateID
*
* @mbg.generated
*/
public void setTemplateID(String templateID) {
this.templateID = templateID == null ? null : templateID.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TemplateFormula.CreateTime
*
* @return the value of TemplateFormula.CreateTime
*
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TemplateFormula.CreateTime
*
* @param createTime the value for TemplateFormula.CreateTime
*
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TemplateFormula.UpdateTime
*
* @return the value of TemplateFormula.UpdateTime
*
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TemplateFormula.UpdateTime
*
* @param updateTime the value for TemplateFormula.UpdateTime
*
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TemplateFormula.IsManualChange
*
* @return the value of TemplateFormula.IsManualChange
*
* @mbg.generated
*/
public Boolean getIsManualChange() {
return isManualChange;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TemplateFormula.IsManualChange
*
* @param isManualChange the value for TemplateFormula.IsManualChange
*
* @mbg.generated
*/
public void setIsManualChange(Boolean isManualChange) {
this.isManualChange = isManualChange;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column TemplateFormula.Instructions
*
* @return the value of TemplateFormula.Instructions
*
* @mbg.generated
*/
public String getInstructions() {
return instructions;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column TemplateFormula.Instructions
*
* @param instructions the value for TemplateFormula.Instructions
*
* @mbg.generated
*/
public void setInstructions(String instructions) {
this.instructions = instructions == null ? null : instructions.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", ID=").append(ID);
sb.append(", rowIndex=").append(rowIndex);
sb.append(", columnIndex=").append(columnIndex);
sb.append(", columnEndIndex=").append(columnEndIndex);
sb.append(", formula=").append(formula);
sb.append(", templateID=").append(templateID);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isManualChange=").append(isManualChange);
sb.append(", instructions=").append(instructions);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package pwc.taxtech.atms.entitiy;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TemplateFormulaExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
public TemplateFormulaExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIDIsNull() {
addCriterion("ID is null");
return (Criteria) this;
}
public Criteria andIDIsNotNull() {
addCriterion("ID is not null");
return (Criteria) this;
}
public Criteria andIDEqualTo(String value) {
addCriterion("ID =", value, "ID");
return (Criteria) this;
}
public Criteria andIDNotEqualTo(String value) {
addCriterion("ID <>", value, "ID");
return (Criteria) this;
}
public Criteria andIDGreaterThan(String value) {
addCriterion("ID >", value, "ID");
return (Criteria) this;
}
public Criteria andIDGreaterThanOrEqualTo(String value) {
addCriterion("ID >=", value, "ID");
return (Criteria) this;
}
public Criteria andIDLessThan(String value) {
addCriterion("ID <", value, "ID");
return (Criteria) this;
}
public Criteria andIDLessThanOrEqualTo(String value) {
addCriterion("ID <=", value, "ID");
return (Criteria) this;
}
public Criteria andIDLike(String value) {
addCriterion("ID like", value, "ID");
return (Criteria) this;
}
public Criteria andIDNotLike(String value) {
addCriterion("ID not like", value, "ID");
return (Criteria) this;
}
public Criteria andIDIn(List<String> values) {
addCriterion("ID in", values, "ID");
return (Criteria) this;
}
public Criteria andIDNotIn(List<String> values) {
addCriterion("ID not in", values, "ID");
return (Criteria) this;
}
public Criteria andIDBetween(String value1, String value2) {
addCriterion("ID between", value1, value2, "ID");
return (Criteria) this;
}
public Criteria andIDNotBetween(String value1, String value2) {
addCriterion("ID not between", value1, value2, "ID");
return (Criteria) this;
}
public Criteria andRowIndexIsNull() {
addCriterion("RowIndex is null");
return (Criteria) this;
}
public Criteria andRowIndexIsNotNull() {
addCriterion("RowIndex is not null");
return (Criteria) this;
}
public Criteria andRowIndexEqualTo(Integer value) {
addCriterion("RowIndex =", value, "rowIndex");
return (Criteria) this;
}
public Criteria andRowIndexNotEqualTo(Integer value) {
addCriterion("RowIndex <>", value, "rowIndex");
return (Criteria) this;
}
public Criteria andRowIndexGreaterThan(Integer value) {
addCriterion("RowIndex >", value, "rowIndex");
return (Criteria) this;
}
public Criteria andRowIndexGreaterThanOrEqualTo(Integer value) {
addCriterion("RowIndex >=", value, "rowIndex");
return (Criteria) this;
}
public Criteria andRowIndexLessThan(Integer value) {
addCriterion("RowIndex <", value, "rowIndex");
return (Criteria) this;
}
public Criteria andRowIndexLessThanOrEqualTo(Integer value) {
addCriterion("RowIndex <=", value, "rowIndex");
return (Criteria) this;
}
public Criteria andRowIndexIn(List<Integer> values) {
addCriterion("RowIndex in", values, "rowIndex");
return (Criteria) this;
}
public Criteria andRowIndexNotIn(List<Integer> values) {
addCriterion("RowIndex not in", values, "rowIndex");
return (Criteria) this;
}
public Criteria andRowIndexBetween(Integer value1, Integer value2) {
addCriterion("RowIndex between", value1, value2, "rowIndex");
return (Criteria) this;
}
public Criteria andRowIndexNotBetween(Integer value1, Integer value2) {
addCriterion("RowIndex not between", value1, value2, "rowIndex");
return (Criteria) this;
}
public Criteria andColumnIndexIsNull() {
addCriterion("ColumnIndex is null");
return (Criteria) this;
}
public Criteria andColumnIndexIsNotNull() {
addCriterion("ColumnIndex is not null");
return (Criteria) this;
}
public Criteria andColumnIndexEqualTo(Integer value) {
addCriterion("ColumnIndex =", value, "columnIndex");
return (Criteria) this;
}
public Criteria andColumnIndexNotEqualTo(Integer value) {
addCriterion("ColumnIndex <>", value, "columnIndex");
return (Criteria) this;
}
public Criteria andColumnIndexGreaterThan(Integer value) {
addCriterion("ColumnIndex >", value, "columnIndex");
return (Criteria) this;
}
public Criteria andColumnIndexGreaterThanOrEqualTo(Integer value) {
addCriterion("ColumnIndex >=", value, "columnIndex");
return (Criteria) this;
}
public Criteria andColumnIndexLessThan(Integer value) {
addCriterion("ColumnIndex <", value, "columnIndex");
return (Criteria) this;
}
public Criteria andColumnIndexLessThanOrEqualTo(Integer value) {
addCriterion("ColumnIndex <=", value, "columnIndex");
return (Criteria) this;
}
public Criteria andColumnIndexIn(List<Integer> values) {
addCriterion("ColumnIndex in", values, "columnIndex");
return (Criteria) this;
}
public Criteria andColumnIndexNotIn(List<Integer> values) {
addCriterion("ColumnIndex not in", values, "columnIndex");
return (Criteria) this;
}
public Criteria andColumnIndexBetween(Integer value1, Integer value2) {
addCriterion("ColumnIndex between", value1, value2, "columnIndex");
return (Criteria) this;
}
public Criteria andColumnIndexNotBetween(Integer value1, Integer value2) {
addCriterion("ColumnIndex not between", value1, value2, "columnIndex");
return (Criteria) this;
}
public Criteria andColumnEndIndexIsNull() {
addCriterion("ColumnEndIndex is null");
return (Criteria) this;
}
public Criteria andColumnEndIndexIsNotNull() {
addCriterion("ColumnEndIndex is not null");
return (Criteria) this;
}
public Criteria andColumnEndIndexEqualTo(Integer value) {
addCriterion("ColumnEndIndex =", value, "columnEndIndex");
return (Criteria) this;
}
public Criteria andColumnEndIndexNotEqualTo(Integer value) {
addCriterion("ColumnEndIndex <>", value, "columnEndIndex");
return (Criteria) this;
}
public Criteria andColumnEndIndexGreaterThan(Integer value) {
addCriterion("ColumnEndIndex >", value, "columnEndIndex");
return (Criteria) this;
}
public Criteria andColumnEndIndexGreaterThanOrEqualTo(Integer value) {
addCriterion("ColumnEndIndex >=", value, "columnEndIndex");
return (Criteria) this;
}
public Criteria andColumnEndIndexLessThan(Integer value) {
addCriterion("ColumnEndIndex <", value, "columnEndIndex");
return (Criteria) this;
}
public Criteria andColumnEndIndexLessThanOrEqualTo(Integer value) {
addCriterion("ColumnEndIndex <=", value, "columnEndIndex");
return (Criteria) this;
}
public Criteria andColumnEndIndexIn(List<Integer> values) {
addCriterion("ColumnEndIndex in", values, "columnEndIndex");
return (Criteria) this;
}
public Criteria andColumnEndIndexNotIn(List<Integer> values) {
addCriterion("ColumnEndIndex not in", values, "columnEndIndex");
return (Criteria) this;
}
public Criteria andColumnEndIndexBetween(Integer value1, Integer value2) {
addCriterion("ColumnEndIndex between", value1, value2, "columnEndIndex");
return (Criteria) this;
}
public Criteria andColumnEndIndexNotBetween(Integer value1, Integer value2) {
addCriterion("ColumnEndIndex not between", value1, value2, "columnEndIndex");
return (Criteria) this;
}
public Criteria andFormulaIsNull() {
addCriterion("Formula is null");
return (Criteria) this;
}
public Criteria andFormulaIsNotNull() {
addCriterion("Formula is not null");
return (Criteria) this;
}
public Criteria andFormulaEqualTo(String value) {
addCriterion("Formula =", value, "formula");
return (Criteria) this;
}
public Criteria andFormulaNotEqualTo(String value) {
addCriterion("Formula <>", value, "formula");
return (Criteria) this;
}
public Criteria andFormulaGreaterThan(String value) {
addCriterion("Formula >", value, "formula");
return (Criteria) this;
}
public Criteria andFormulaGreaterThanOrEqualTo(String value) {
addCriterion("Formula >=", value, "formula");
return (Criteria) this;
}
public Criteria andFormulaLessThan(String value) {
addCriterion("Formula <", value, "formula");
return (Criteria) this;
}
public Criteria andFormulaLessThanOrEqualTo(String value) {
addCriterion("Formula <=", value, "formula");
return (Criteria) this;
}
public Criteria andFormulaLike(String value) {
addCriterion("Formula like", value, "formula");
return (Criteria) this;
}
public Criteria andFormulaNotLike(String value) {
addCriterion("Formula not like", value, "formula");
return (Criteria) this;
}
public Criteria andFormulaIn(List<String> values) {
addCriterion("Formula in", values, "formula");
return (Criteria) this;
}
public Criteria andFormulaNotIn(List<String> values) {
addCriterion("Formula not in", values, "formula");
return (Criteria) this;
}
public Criteria andFormulaBetween(String value1, String value2) {
addCriterion("Formula between", value1, value2, "formula");
return (Criteria) this;
}
public Criteria andFormulaNotBetween(String value1, String value2) {
addCriterion("Formula not between", value1, value2, "formula");
return (Criteria) this;
}
public Criteria andTemplateIDIsNull() {
addCriterion("TemplateID is null");
return (Criteria) this;
}
public Criteria andTemplateIDIsNotNull() {
addCriterion("TemplateID is not null");
return (Criteria) this;
}
public Criteria andTemplateIDEqualTo(String value) {
addCriterion("TemplateID =", value, "templateID");
return (Criteria) this;
}
public Criteria andTemplateIDNotEqualTo(String value) {
addCriterion("TemplateID <>", value, "templateID");
return (Criteria) this;
}
public Criteria andTemplateIDGreaterThan(String value) {
addCriterion("TemplateID >", value, "templateID");
return (Criteria) this;
}
public Criteria andTemplateIDGreaterThanOrEqualTo(String value) {
addCriterion("TemplateID >=", value, "templateID");
return (Criteria) this;
}
public Criteria andTemplateIDLessThan(String value) {
addCriterion("TemplateID <", value, "templateID");
return (Criteria) this;
}
public Criteria andTemplateIDLessThanOrEqualTo(String value) {
addCriterion("TemplateID <=", value, "templateID");
return (Criteria) this;
}
public Criteria andTemplateIDLike(String value) {
addCriterion("TemplateID like", value, "templateID");
return (Criteria) this;
}
public Criteria andTemplateIDNotLike(String value) {
addCriterion("TemplateID not like", value, "templateID");
return (Criteria) this;
}
public Criteria andTemplateIDIn(List<String> values) {
addCriterion("TemplateID in", values, "templateID");
return (Criteria) this;
}
public Criteria andTemplateIDNotIn(List<String> values) {
addCriterion("TemplateID not in", values, "templateID");
return (Criteria) this;
}
public Criteria andTemplateIDBetween(String value1, String value2) {
addCriterion("TemplateID between", value1, value2, "templateID");
return (Criteria) this;
}
public Criteria andTemplateIDNotBetween(String value1, String value2) {
addCriterion("TemplateID not between", value1, value2, "templateID");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("CreateTime is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("CreateTime is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("CreateTime =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("CreateTime <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("CreateTime >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("CreateTime >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("CreateTime <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("CreateTime <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("CreateTime in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("CreateTime not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("CreateTime between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("CreateTime not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("UpdateTime is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("UpdateTime is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("UpdateTime =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("UpdateTime <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("UpdateTime >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("UpdateTime >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("UpdateTime <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("UpdateTime <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("UpdateTime in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("UpdateTime not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("UpdateTime between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("UpdateTime not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andIsManualChangeIsNull() {
addCriterion("IsManualChange is null");
return (Criteria) this;
}
public Criteria andIsManualChangeIsNotNull() {
addCriterion("IsManualChange is not null");
return (Criteria) this;
}
public Criteria andIsManualChangeEqualTo(Boolean value) {
addCriterion("IsManualChange =", value, "isManualChange");
return (Criteria) this;
}
public Criteria andIsManualChangeNotEqualTo(Boolean value) {
addCriterion("IsManualChange <>", value, "isManualChange");
return (Criteria) this;
}
public Criteria andIsManualChangeGreaterThan(Boolean value) {
addCriterion("IsManualChange >", value, "isManualChange");
return (Criteria) this;
}
public Criteria andIsManualChangeGreaterThanOrEqualTo(Boolean value) {
addCriterion("IsManualChange >=", value, "isManualChange");
return (Criteria) this;
}
public Criteria andIsManualChangeLessThan(Boolean value) {
addCriterion("IsManualChange <", value, "isManualChange");
return (Criteria) this;
}
public Criteria andIsManualChangeLessThanOrEqualTo(Boolean value) {
addCriterion("IsManualChange <=", value, "isManualChange");
return (Criteria) this;
}
public Criteria andIsManualChangeIn(List<Boolean> values) {
addCriterion("IsManualChange in", values, "isManualChange");
return (Criteria) this;
}
public Criteria andIsManualChangeNotIn(List<Boolean> values) {
addCriterion("IsManualChange not in", values, "isManualChange");
return (Criteria) this;
}
public Criteria andIsManualChangeBetween(Boolean value1, Boolean value2) {
addCriterion("IsManualChange between", value1, value2, "isManualChange");
return (Criteria) this;
}
public Criteria andIsManualChangeNotBetween(Boolean value1, Boolean value2) {
addCriterion("IsManualChange not between", value1, value2, "isManualChange");
return (Criteria) this;
}
public Criteria andInstructionsIsNull() {
addCriterion("Instructions is null");
return (Criteria) this;
}
public Criteria andInstructionsIsNotNull() {
addCriterion("Instructions is not null");
return (Criteria) this;
}
public Criteria andInstructionsEqualTo(String value) {
addCriterion("Instructions =", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsNotEqualTo(String value) {
addCriterion("Instructions <>", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsGreaterThan(String value) {
addCriterion("Instructions >", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsGreaterThanOrEqualTo(String value) {
addCriterion("Instructions >=", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsLessThan(String value) {
addCriterion("Instructions <", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsLessThanOrEqualTo(String value) {
addCriterion("Instructions <=", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsLike(String value) {
addCriterion("Instructions like", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsNotLike(String value) {
addCriterion("Instructions not like", value, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsIn(List<String> values) {
addCriterion("Instructions in", values, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsNotIn(List<String> values) {
addCriterion("Instructions not in", values, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsBetween(String value1, String value2) {
addCriterion("Instructions between", value1, value2, "instructions");
return (Criteria) this;
}
public Criteria andInstructionsNotBetween(String value1, String value2) {
addCriterion("Instructions not between", value1, value2, "instructions");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table TemplateFormula
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table TemplateFormula
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
package pwc.taxtech.atms.service;
import pwc.taxtech.atms.dto.TemplateDto;
import java.util.List;
public interface TemplateService {
/**
* @param 模板组ID
* @param 报表类型
* @return 模板DTO 列表
*/
List<TemplateDto> get(String templateGroupID, Integer reportType);
}
...@@ -117,4 +117,8 @@ public class AbstractService { ...@@ -117,4 +117,8 @@ public class AbstractService {
protected CellTemplateMapper cellTemplateMapper; protected CellTemplateMapper cellTemplateMapper;
@Autowired @Autowired
protected CellTemplateConfigMapper cellTemplateConfigMapper; protected CellTemplateConfigMapper cellTemplateConfigMapper;
@Autowired
protected TemplateMapper templateMapper;
@Autowired
protected TemplateFormulaMapper templateFormulaMapper;
} }
package pwc.taxtech.atms.service.impl;
import org.springframework.stereotype.Service;
import pwc.taxtech.atms.common.CommonUtils;
import pwc.taxtech.atms.dto.TemplateDto;
import pwc.taxtech.atms.entitiy.Template;
import pwc.taxtech.atms.entitiy.TemplateExample;
import pwc.taxtech.atms.service.TemplateService;
import java.util.ArrayList;
import java.util.List;
@Service
public class TemplateServiceImpl extends AbstractService implements TemplateService {
@Override
public List<TemplateDto> get(String templateGroupID, Integer reportType) {
TemplateExample example = new TemplateExample();
TemplateExample.Criteria criteria = example.createCriteria().andTemplateGroupIDEqualTo(templateGroupID);
if (reportType != null) {
criteria.andReportTypeEqualTo(reportType.intValue());
}
example.setOrderByClause("OrderIndex asc");
List<Template> templates = templateMapper.selectByExample(example);
List<TemplateDto> templateDtos = new ArrayList<>();
for (Template template : templates) {
TemplateDto dto = new TemplateDto();
CommonUtils.copyProperties(template, dto);
templateDtos.add(dto);
}
return templateDtos;
}
}
<?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="pwc.taxtech.atms.dao.TemplateFormulaMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entitiy.TemplateFormula">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="ID" jdbcType="VARCHAR" property="ID" />
<result column="RowIndex" jdbcType="INTEGER" property="rowIndex" />
<result column="ColumnIndex" jdbcType="INTEGER" property="columnIndex" />
<result column="ColumnEndIndex" jdbcType="INTEGER" property="columnEndIndex" />
<result column="Formula" jdbcType="VARCHAR" property="formula" />
<result column="TemplateID" jdbcType="VARCHAR" property="templateID" />
<result column="CreateTime" jdbcType="TIMESTAMP" property="createTime" />
<result column="UpdateTime" jdbcType="TIMESTAMP" property="updateTime" />
<result column="IsManualChange" jdbcType="SMALLINT" property="isManualChange" />
<result column="Instructions" jdbcType="VARCHAR" property="instructions" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
ID, RowIndex, ColumnIndex, ColumnEndIndex, Formula, TemplateID, CreateTime, UpdateTime,
IsManualChange, Instructions
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateFormulaExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from TemplateFormula
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from TemplateFormula
where ID = #{ID,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from TemplateFormula
where ID = #{ID,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateFormulaExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from TemplateFormula
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.entitiy.TemplateFormula">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into TemplateFormula (ID, RowIndex, ColumnIndex,
ColumnEndIndex, Formula, TemplateID,
CreateTime, UpdateTime, IsManualChange,
Instructions)
values (#{ID,jdbcType=VARCHAR}, #{rowIndex,jdbcType=INTEGER}, #{columnIndex,jdbcType=INTEGER},
#{columnEndIndex,jdbcType=INTEGER}, #{formula,jdbcType=VARCHAR}, #{templateID,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{isManualChange,jdbcType=SMALLINT},
#{instructions,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entitiy.TemplateFormula">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into TemplateFormula
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ID != null">
ID,
</if>
<if test="rowIndex != null">
RowIndex,
</if>
<if test="columnIndex != null">
ColumnIndex,
</if>
<if test="columnEndIndex != null">
ColumnEndIndex,
</if>
<if test="formula != null">
Formula,
</if>
<if test="templateID != null">
TemplateID,
</if>
<if test="createTime != null">
CreateTime,
</if>
<if test="updateTime != null">
UpdateTime,
</if>
<if test="isManualChange != null">
IsManualChange,
</if>
<if test="instructions != null">
Instructions,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="ID != null">
#{ID,jdbcType=VARCHAR},
</if>
<if test="rowIndex != null">
#{rowIndex,jdbcType=INTEGER},
</if>
<if test="columnIndex != null">
#{columnIndex,jdbcType=INTEGER},
</if>
<if test="columnEndIndex != null">
#{columnEndIndex,jdbcType=INTEGER},
</if>
<if test="formula != null">
#{formula,jdbcType=VARCHAR},
</if>
<if test="templateID != null">
#{templateID,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="isManualChange != null">
#{isManualChange,jdbcType=SMALLINT},
</if>
<if test="instructions != null">
#{instructions,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateFormulaExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from TemplateFormula
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update TemplateFormula
<set>
<if test="record.ID != null">
ID = #{record.ID,jdbcType=VARCHAR},
</if>
<if test="record.rowIndex != null">
RowIndex = #{record.rowIndex,jdbcType=INTEGER},
</if>
<if test="record.columnIndex != null">
ColumnIndex = #{record.columnIndex,jdbcType=INTEGER},
</if>
<if test="record.columnEndIndex != null">
ColumnEndIndex = #{record.columnEndIndex,jdbcType=INTEGER},
</if>
<if test="record.formula != null">
Formula = #{record.formula,jdbcType=VARCHAR},
</if>
<if test="record.templateID != null">
TemplateID = #{record.templateID,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.isManualChange != null">
IsManualChange = #{record.isManualChange,jdbcType=SMALLINT},
</if>
<if test="record.instructions != null">
Instructions = #{record.instructions,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update TemplateFormula
set ID = #{record.ID,jdbcType=VARCHAR},
RowIndex = #{record.rowIndex,jdbcType=INTEGER},
ColumnIndex = #{record.columnIndex,jdbcType=INTEGER},
ColumnEndIndex = #{record.columnEndIndex,jdbcType=INTEGER},
Formula = #{record.formula,jdbcType=VARCHAR},
TemplateID = #{record.templateID,jdbcType=VARCHAR},
CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
IsManualChange = #{record.isManualChange,jdbcType=SMALLINT},
Instructions = #{record.instructions,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entitiy.TemplateFormula">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update TemplateFormula
<set>
<if test="rowIndex != null">
RowIndex = #{rowIndex,jdbcType=INTEGER},
</if>
<if test="columnIndex != null">
ColumnIndex = #{columnIndex,jdbcType=INTEGER},
</if>
<if test="columnEndIndex != null">
ColumnEndIndex = #{columnEndIndex,jdbcType=INTEGER},
</if>
<if test="formula != null">
Formula = #{formula,jdbcType=VARCHAR},
</if>
<if test="templateID != null">
TemplateID = #{templateID,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
CreateTime = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="isManualChange != null">
IsManualChange = #{isManualChange,jdbcType=SMALLINT},
</if>
<if test="instructions != null">
Instructions = #{instructions,jdbcType=VARCHAR},
</if>
</set>
where ID = #{ID,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entitiy.TemplateFormula">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update TemplateFormula
set RowIndex = #{rowIndex,jdbcType=INTEGER},
ColumnIndex = #{columnIndex,jdbcType=INTEGER},
ColumnEndIndex = #{columnEndIndex,jdbcType=INTEGER},
Formula = #{formula,jdbcType=VARCHAR},
TemplateID = #{templateID,jdbcType=VARCHAR},
CreateTime = #{createTime,jdbcType=TIMESTAMP},
UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
IsManualChange = #{isManualChange,jdbcType=SMALLINT},
Instructions = #{instructions,jdbcType=VARCHAR}
where ID = #{ID,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entitiy.TemplateFormulaExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from TemplateFormula
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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="pwc.taxtech.atms.dao.TemplateMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="ID" jdbcType="VARCHAR" property="ID" />
<result column="Name" jdbcType="VARCHAR" property="name" />
<result column="Code" jdbcType="VARCHAR" property="code" />
<result column="Path" jdbcType="VARCHAR" property="path" />
<result column="ReportType" jdbcType="INTEGER" property="reportType" />
<result column="TemplateGroupID" jdbcType="VARCHAR" property="templateGroupID" />
<result column="OrderIndex" jdbcType="INTEGER" property="orderIndex" />
<result column="CreateTime" jdbcType="TIMESTAMP" property="createTime" />
<result column="UpdateTime" jdbcType="TIMESTAMP" property="updateTime" />
<result column="IsSystemType" jdbcType="INTEGER" property="isSystemType" />
<result column="IsActiveAssociation" jdbcType="INTEGER" property="isActiveAssociation" />
<result column="ParentId" jdbcType="VARCHAR" property="parentId" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
ID, Name, Code, Path, ReportType, TemplateGroupID, OrderIndex, CreateTime, UpdateTime,
IsSystemType, IsActiveAssociation, ParentId
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from Template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from Template
where ID = #{ID,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from Template
where ID = #{ID,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from Template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into Template (ID, Name, Code,
Path, ReportType, TemplateGroupID,
OrderIndex, CreateTime, UpdateTime,
IsSystemType, IsActiveAssociation, ParentId
)
values (#{ID,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
#{path,jdbcType=VARCHAR}, #{reportType,jdbcType=INTEGER}, #{templateGroupID,jdbcType=VARCHAR},
#{orderIndex,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{isSystemType,jdbcType=INTEGER}, #{isActiveAssociation,jdbcType=INTEGER}, #{parentId,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into Template
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ID != null">
ID,
</if>
<if test="name != null">
Name,
</if>
<if test="code != null">
Code,
</if>
<if test="path != null">
Path,
</if>
<if test="reportType != null">
ReportType,
</if>
<if test="templateGroupID != null">
TemplateGroupID,
</if>
<if test="orderIndex != null">
OrderIndex,
</if>
<if test="createTime != null">
CreateTime,
</if>
<if test="updateTime != null">
UpdateTime,
</if>
<if test="isSystemType != null">
IsSystemType,
</if>
<if test="isActiveAssociation != null">
IsActiveAssociation,
</if>
<if test="parentId != null">
ParentId,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="ID != null">
#{ID,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="path != null">
#{path,jdbcType=VARCHAR},
</if>
<if test="reportType != null">
#{reportType,jdbcType=INTEGER},
</if>
<if test="templateGroupID != null">
#{templateGroupID,jdbcType=VARCHAR},
</if>
<if test="orderIndex != null">
#{orderIndex,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="isSystemType != null">
#{isSystemType,jdbcType=INTEGER},
</if>
<if test="isActiveAssociation != null">
#{isActiveAssociation,jdbcType=INTEGER},
</if>
<if test="parentId != null">
#{parentId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from Template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update Template
<set>
<if test="record.ID != null">
ID = #{record.ID,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
Name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.code != null">
Code = #{record.code,jdbcType=VARCHAR},
</if>
<if test="record.path != null">
Path = #{record.path,jdbcType=VARCHAR},
</if>
<if test="record.reportType != null">
ReportType = #{record.reportType,jdbcType=INTEGER},
</if>
<if test="record.templateGroupID != null">
TemplateGroupID = #{record.templateGroupID,jdbcType=VARCHAR},
</if>
<if test="record.orderIndex != null">
OrderIndex = #{record.orderIndex,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.isSystemType != null">
IsSystemType = #{record.isSystemType,jdbcType=INTEGER},
</if>
<if test="record.isActiveAssociation != null">
IsActiveAssociation = #{record.isActiveAssociation,jdbcType=INTEGER},
</if>
<if test="record.parentId != null">
ParentId = #{record.parentId,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update Template
set ID = #{record.ID,jdbcType=VARCHAR},
Name = #{record.name,jdbcType=VARCHAR},
Code = #{record.code,jdbcType=VARCHAR},
Path = #{record.path,jdbcType=VARCHAR},
ReportType = #{record.reportType,jdbcType=INTEGER},
TemplateGroupID = #{record.templateGroupID,jdbcType=VARCHAR},
OrderIndex = #{record.orderIndex,jdbcType=INTEGER},
CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
IsSystemType = #{record.isSystemType,jdbcType=INTEGER},
IsActiveAssociation = #{record.isActiveAssociation,jdbcType=INTEGER},
ParentId = #{record.parentId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update Template
<set>
<if test="name != null">
Name = #{name,jdbcType=VARCHAR},
</if>
<if test="code != null">
Code = #{code,jdbcType=VARCHAR},
</if>
<if test="path != null">
Path = #{path,jdbcType=VARCHAR},
</if>
<if test="reportType != null">
ReportType = #{reportType,jdbcType=INTEGER},
</if>
<if test="templateGroupID != null">
TemplateGroupID = #{templateGroupID,jdbcType=VARCHAR},
</if>
<if test="orderIndex != null">
OrderIndex = #{orderIndex,jdbcType=INTEGER},
</if>
<if test="createTime != null">
CreateTime = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="isSystemType != null">
IsSystemType = #{isSystemType,jdbcType=INTEGER},
</if>
<if test="isActiveAssociation != null">
IsActiveAssociation = #{isActiveAssociation,jdbcType=INTEGER},
</if>
<if test="parentId != null">
ParentId = #{parentId,jdbcType=VARCHAR},
</if>
</set>
where ID = #{ID,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update Template
set Name = #{name,jdbcType=VARCHAR},
Code = #{code,jdbcType=VARCHAR},
Path = #{path,jdbcType=VARCHAR},
ReportType = #{reportType,jdbcType=INTEGER},
TemplateGroupID = #{templateGroupID,jdbcType=VARCHAR},
OrderIndex = #{orderIndex,jdbcType=INTEGER},
CreateTime = #{createTime,jdbcType=TIMESTAMP},
UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
IsSystemType = #{isSystemType,jdbcType=INTEGER},
IsActiveAssociation = #{isActiveAssociation,jdbcType=INTEGER},
ParentId = #{parentId,jdbcType=VARCHAR}
where ID = #{ID,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entitiy.TemplateExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from Template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment