Browse Source

Merge branch 'master' of gitee.com:ccsens_s/ccsenscloud

master
zhangye 6 years ago
parent
commit
bda6cb3751
  1. 2
      .gitignore
  2. 87
      ht/src/main/resources/mbg.xml
  3. 90
      tall/src/main/resources/mbg.xml

2
.gitignore

@ -36,3 +36,5 @@ gen
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
mbg.xml
resources/mbg.xml
application.yml

87
ht/src/main/resources/mbg.xml

@ -1,87 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<context id="MySQL" targetRuntime="MyBatis3">
<!-- 为生成的Java模型创建一个toString方法 -->
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
<!-- 自定义的序列化 类文件 插件 -->
<plugin type="org.mybatis.generator.plugins.SerializablePlugin"></plugin>
<!-- 重新生成xml文件,而不是追加 -->
<plugin type="org.mybatis.generator.plugins.UnmergeableXmlMappersPlugin" />
<commentGenerator>
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
<property name="suppressAllComments" value="true" />
</commentGenerator>
<!--数据库连接的信息:驱动类、连接地址、用户名、密码 -->
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://49.233.89.188:3306/ht?useUnicode=true&amp;characterEncoding=UTF-8&amp;tinyInt1isBit=false"
userId="root"
password="po3OynBO[M3579p6L7)o">
</jdbcConnection>
<!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和
NUMERIC 类型解析为java.math.BigDecimal -->
<javaTypeResolver>
<property name="forceBigDecimals" value="true" />
</javaTypeResolver>
<!-- targetProject:生成PO类的位置 -->
<javaModelGenerator targetPackage="com.ccsens.ht.bean.po"
targetProject=".\src\main\java">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
<!-- 从数据库返回的值被清理前后的空格 -->
<property name="trimStrings" value="true" />
</javaModelGenerator>
<!-- targetProject:mapper映射文件生成的位置 -->
<sqlMapGenerator targetPackage="mapper_raw"
targetProject=".\src\main\resources">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
</sqlMapGenerator>
<!-- targetPackage:mapper接口生成的位置 -->
<javaClientGenerator type="XMLMAPPER"
targetPackage="com.ccsens.ht.persist.mapper"
targetProject=".\src\main\java">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
</javaClientGenerator>
<!--<table tableName="t_ht_doctor" domainObjectName="HtDoctor"></table>
<table tableName="t_ht_doctor_audit" domainObjectName="HtDoctorAudit"></table>
<table tableName="t_ht_opretion_log" domainObjectName="HtOperationLog"></table>
<table tableName="t_ht_patient" domainObjectName="HtPatient"></table>
<table tableName="t_ht_patient_acp" domainObjectName="HtPatientAcp"></table>
<table tableName="t_ht_patient_body" domainObjectName="HtPatientBody"></table>
<table tableName="t_ht_patient_family" domainObjectName="HtPatientFamily"></table>
<table tableName="t_ht_patient_family_illness" domainObjectName="HtPatientFamilyIllness"></table>
<table tableName="t_ht_patient_follow_up" domainObjectName="HtPatientFollowUp"></table>
<table tableName="t_ht_patient_illness_history" domainObjectName="HtPatientIllnessHistory"></table>
<table tableName="t_ht_patient_parent_illness" domainObjectName="HtPatientParentIllness"></table>
<table tableName="t_ht_patient_persional" domainObjectName="HtPatientPersional"></table>
<table tableName="t_ht_patient_question_record" domainObjectName="HtPatientQuestionRecord"></table>
<table tableName="t_ht_patient_report" domainObjectName="HtPatientReport"></table>
<table tableName="t_ht_patient_score" domainObjectName="HtPatientScore"></table>
<table tableName="t_ht_position" domainObjectName="HtPosition"></table>
<table tableName="t_ht_question" domainObjectName="HtQuestion"></table>
<table tableName="t_ht_question_introducer" domainObjectName="HtQuestionIntroducer"></table>
<table tableName="t_ht_question_option" domainObjectName="HtQuestionOption"></table>
<table tableName="t_ht_question_scoring_rule" domainObjectName="HtQuestionScoringRule"></table>
<table tableName="t_ht_relation" domainObjectName="HtRelation"></table>
<table tableName="t_ht_report" domainObjectName="HtReport"></table>
<table tableName="t_ht_title" domainObjectName="HtTitle"></table>-->
<table tableName="t_ht_patient_report_record" domainObjectName="HtPatientReportRecord"></table>
<!-- 有些表的字段需要指定java类型
<table schema="" tableName="">
<columnOverride column="" javaType="" />
</table> -->
</context>
</generatorConfiguration>

90
tall/src/main/resources/mbg.xml

@ -1,90 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<context id="MySQL" targetRuntime="MyBatis3">
<!-- 为生成的Java模型创建一个toString方法 -->
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
<!-- 自定义的序列化 类文件 插件 -->
<plugin type="org.mybatis.generator.plugins.SerializablePlugin"></plugin>
<!-- 重新生成xml文件,而不是追加 -->
<plugin type="org.mybatis.generator.plugins.UnmergeableXmlMappersPlugin" />
<commentGenerator>
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
<property name="suppressAllComments" value="true" />
</commentGenerator>
<!--数据库连接的信息:驱动类、连接地址、用户名、密码 -->
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://49.233.89.188:3306/tall?useUnicode=true&amp;characterEncoding=UTF-8&amp;tinyInt1isBit=false"
userId="root"
password="po3OynBO[M3579p6L7)o">
</jdbcConnection>
<!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和
NUMERIC 类型解析为java.math.BigDecimal -->
<javaTypeResolver>
<property name="forceBigDecimals" value="true" />
</javaTypeResolver>
<!-- targetProject:生成PO类的位置 -->
<javaModelGenerator targetPackage="com.ccsens.tall.bean.po"
targetProject=".\src\main\java">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
<!-- 从数据库返回的值被清理前后的空格 -->
<property name="trimStrings" value="true" />
</javaModelGenerator>
<!-- targetProject:mapper映射文件生成的位置 -->
<sqlMapGenerator targetPackage="mapper_raw"
targetProject=".\src\main\resources">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
</sqlMapGenerator>
<!-- targetPackage:mapper接口生成的位置 -->
<javaClientGenerator type="XMLMAPPER"
targetPackage="com.ccsens.tall.persist.mapper"
targetProject=".\src\main\java">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
</javaClientGenerator>
<!--<table tableName="t_sys_user" domainObjectName="SysUser"></table>
<table tableName="t_sys_auth" domainObjectName="SysAuth"></table>
<table tableName="t_sys_grade" domainObjectName="SysGrade"></table>
<table tableName="t_sys_balance_log" domainObjectName="SysBalanceLog"></table>
<table tableName="t_sys_project" domainObjectName="SysProject"></table>
<table tableName="t_pro_scene" domainObjectName="ProScene"></table>
<table tableName="t_pro_role" domainObjectName="ProRole"></table>
<table tableName="t_pro_member_role" domainObjectName="ProMemberRole"></table>
<table tableName="t_pro_member" domainObjectName="ProMember"></table>
<table tableName="t_pro_exclude_role" domainObjectName="ProExcludeRole"></table>
<table tableName="t_pro_task" domainObjectName="ProTask"></table>
<table tableName="t_sub_task" domainObjectName="SubTask"></table>
<table tableName="t_pro_log" domainObjectName="ProLog"></table>
<table tableName="t_task_plugin" domainObjectName="TaskPlugin"></table>
<table tableName="t_task_deliver" domainObjectName="TaskDeliver"></table>
<table tableName="t_deliver_post_log" domainObjectName="DeliverPostLog"></table>
<table tableName="t_commited_file" domainObjectName="CommitedFile"></table>
<table tableName="t_msg" domainObjectName="Msg"></table>
<table tableName="t_msg_log" domainObjectName="MsgLog"></table>
<table tableName="t_stakeholder" domainObjectName="Stakeholder"></table>
<table tableName="t_task_hardware" domainObjectName="TaskHardware"></table>-->
<!--<table tableName="t_sys_user" domainObjectName="SysUser"></table>-->
<table tableName="t_pro_sub_time_member" domainObjectName="ProSubTimeMember"></table>
<table tableName="t_sys_domain" domainObjectName="SysDomain"></table>
<table tableName="t_pro_show" domainObjectName="ProShow"></table>
<!-- 有些表的字段需要指定java类型
<table schema="" tableName="">
<columnOverride column="" javaType="" />
</table> -->
</context>
</generatorConfiguration>
Loading…
Cancel
Save