MyBatisCodeHelperDatasource.xml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project version="4">
  3. <component name="MyBatisCodeHelperDatasource">
  4. <option name="projectProfile">
  5. <ProjectProfile>
  6. <option name="controllerTemplateString" value="&#10;#* @vtlvariable name=&quot;tableName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;entityPackageName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;entityClassName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;servicePackageName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;serviceInterfacePackage&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;serviceClassName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;serviceInterfaceClassName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;mapperPackageName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;mapperClassName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;controllerPackage&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;tableRemark&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;myDate&quot; type=&quot;java.util.Date&quot; *#&#10;#* @vtlvariable name=&quot;simpleDateFormat&quot; type=&quot;java.text.SimpleDateFormat&quot; *#&#10;package $!{controllerPackage};&#10;import $!{entityPackageName}.$!{entityClassName};&#10;###set($realServiceName = $!{serviceClassName}+'Impl')&#10;import $!{servicePackageName}.$!{serviceClassName};&#10;import org.springframework.web.bind.annotation.*;&#10;&#10;#set($serviceFirstLower = $!{serviceClassName.substring(0,1).toLowerCase()}+$!{serviceClassName.substring(1,$!{serviceClassName.length()})})&#10;import org.springframework.beans.factory.annotation.Autowired;&#10;&#10;/**&#10;* $!{tableRemark}($!{tableName})表控制层&#10;*&#10;* @author xxxxx&#10;*/&#10;@RestController&#10;@RequestMapping(&quot;/$!{tableName}&quot;)&#10;public class $!{entityClassName}Controller {&#10;/**&#10;* 服务对象&#10;*/&#10; @Autowired&#10; private $!{serviceClassName} $!{serviceFirstLower};&#10;&#10; /**&#10; * 通过主键查询单条数据&#10; *&#10; * @param id 主键&#10; * @return 单条数据&#10; */&#10; @GetMapping(&quot;selectOne&quot;)&#10; public $!{entityClassName} selectOne(Integer id) {&#10; return $!{serviceFirstLower}.selectByPrimaryKey(id);&#10; }&#10;&#10;}" />
  7. <option name="javaMapperPackage" value="com.shanghaichengdi.dao.mapper" />
  8. <option name="javaMapperPath" value="$PROJECT_DIR$/src/main/java" />
  9. <option name="javaModelPackage" value="com.shanghaichengdi.dao.entity" />
  10. <option name="javaModelPath" value="$PROJECT_DIR$/src/main/java" />
  11. <option name="lastDatabaseCrudChooseModuleName" value="pollution-warning" />
  12. <option name="moduleNameToPackageAndPathMap">
  13. <map>
  14. <entry key="pollution-warning">
  15. <value>
  16. <UserPackageAndPathInfoByModule>
  17. <option name="javaMapperPackage" value="com.shanghaichengdi.dao.mapper" />
  18. <option name="javaMapperPath" value="$PROJECT_DIR$/src/main/java" />
  19. <option name="javaModelPacakge" value="com.shanghaichengdi.dao.entity" />
  20. <option name="javaModelPath" value="$PROJECT_DIR$/src/main/java" />
  21. <option name="javaServiceInterfacePath" value="$PROJECT_DIR$/src/main/java" />
  22. <option name="javaServicePath" value="$PROJECT_DIR$/src/main/java" />
  23. <option name="xmlPackage" value="mapper" />
  24. <option name="xmlPath" value="$PROJECT_DIR$/src/main/resources" />
  25. </UserPackageAndPathInfoByModule>
  26. </value>
  27. </entry>
  28. </map>
  29. </option>
  30. <option name="tableGenerateConfigs">
  31. <map>
  32. <entry key="GHJG_BUSSINESS:BOAT_WATER_POLLUTANT_ACCEPT_F">
  33. <value>
  34. <TableGenerateConfig>
  35. <option name="generatedKey" value="" />
  36. <option name="javaModelName" value="BoatWaterPollutantAcceptF" />
  37. <option name="moduleName" value="pollution-warning" />
  38. <option name="mybatisplusIdType" value="INPUT" />
  39. <option name="sequenceColumn" value="" />
  40. <option name="sequenceId" value="" />
  41. <option name="useActualColumnName" value="false" />
  42. </TableGenerateConfig>
  43. </value>
  44. </entry>
  45. <entry key="GHJG_BUSSINESS:BOAT_WATER_POLLUTANT_WARNING_S">
  46. <value>
  47. <TableGenerateConfig>
  48. <option name="generatedKey" value="" />
  49. <option name="javaModelName" value="BoatWaterPollutantWarningS" />
  50. <option name="moduleName" value="pollution-warning" />
  51. <option name="mybatisplusIdType" value="INPUT" />
  52. <option name="sequenceColumn" value="" />
  53. <option name="sequenceId" value="" />
  54. <option name="useActualColumnName" value="false" />
  55. </TableGenerateConfig>
  56. </value>
  57. </entry>
  58. <entry key="GHJG_DYNAMIC:BOAT_INPORT_AIS_NEW">
  59. <value>
  60. <TableGenerateConfig>
  61. <option name="generatedKey" value="" />
  62. <option name="javaModelName" value="BoatInportAisNew" />
  63. <option name="moduleName" value="pollution-warning" />
  64. <option name="mybatisplusIdType" value="INPUT" />
  65. <option name="sequenceColumn" value="" />
  66. <option name="sequenceId" value="" />
  67. <option name="useActualColumnName" value="false" />
  68. </TableGenerateConfig>
  69. </value>
  70. </entry>
  71. <entry key="NHDT:GPSINFO_HISTORY">
  72. <value>
  73. <TableGenerateConfig>
  74. <option name="generatedKey" value="" />
  75. <option name="javaModelName" value="GpsinfoHistory" />
  76. <option name="moduleName" value="pollution-warning" />
  77. <option name="mybatisplusIdType" value="INPUT" />
  78. <option name="sequenceColumn" value="" />
  79. <option name="sequenceId" value="" />
  80. <option name="useActualColumnName" value="false" />
  81. </TableGenerateConfig>
  82. </value>
  83. </entry>
  84. <entry key="NHDT:GPSINFO_REALTIME">
  85. <value>
  86. <TableGenerateConfig>
  87. <option name="generatedKey" value="" />
  88. <option name="javaModelName" value="GpsinfoRealtime" />
  89. <option name="moduleName" value="pollution-warning" />
  90. <option name="mybatisplusIdType" value="INPUT" />
  91. <option name="sequenceColumn" value="" />
  92. <option name="sequenceId" value="" />
  93. <option name="useActualColumnName" value="false" />
  94. </TableGenerateConfig>
  95. </value>
  96. </entry>
  97. </map>
  98. </option>
  99. <option name="xmlMapperPackage" value="mapper" />
  100. <option name="xmlMapperPath" value="$PROJECT_DIR$/src/main/resources" />
  101. </ProjectProfile>
  102. </option>
  103. </component>
  104. </project>