codegenconfig.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:noNamespaceSchemaLocation="codegen.xsd">
  4. <variables>
  5. <variable name="developer" value="ray"/>
  6. <variable name="company" value="广州红迅软件"/>
  7. <variable name="system" value="demo"/>
  8. <variable name="domain" value="com.misoft"/>
  9. <variable name="email" value="ray@redxun.cn"/>
  10. <variable name="apiProject" value="api-form"/>
  11. <variable name="javaProject" value=""/>
  12. <variable name="frontProject" value="jpaas-web/jpaas-vue"/>
  13. </variables>
  14. <templates>
  15. <template id="dao" path="dao.ftl"/>
  16. <template id="manager" path="manager.ftl"/>
  17. <template id="mapping" path="mapping.ftl"/>
  18. <template id="entity" path="entity.ftl"/>
  19. <template id="controller" path="controller.ftl"/>
  20. <template id="edit" path="edit.ftl"/>
  21. <template id="bpmForm" path="bpmForm.ftl"/>
  22. <template id="editFormModel" path="editFormModel.ftl"/>
  23. <template id="list" path="list.ftl"/>
  24. <template id="doc" path="dbdoc.xml"/>
  25. <template id="router" path="router.ftl"/>
  26. <template id="serviceTest" path="serviceTest.ftl"/>
  27. <template id="apijs" path="api_js.ftl"/>
  28. <template id="genSql" path="genSql.ftl"/>
  29. </templates>
  30. <files baseDir="D:\work\redxun\jpaas-demo">
  31. <file refTemplate="mapping" filename="{class}Mapper.xml" dir="{javaProject}\src\main\resources\mapper\{system}\{package}" sub="true" override="true"/>
  32. <file refTemplate="entity" filename="{class}.java" dir="{javaProject}\src\main\java\com\misoft\{system}\{package}\entity" sub="true" override="true"/>
  33. <file refTemplate="dao" filename="{class}Mapper.java" dir="{javaProject}\src\main\java\com\misoft\{system}\{package}\mapper" sub="false" override="true"/>
  34. <file refTemplate="manager" filename="{class}ServiceImpl.java" dir="{javaProject}\src\main\java\com\misoft\{system}\{package}\service" sub="false" override="true"/>
  35. <file refTemplate="controller" filename="{class}Controller.java" dir="{javaProject}\src\main\java\com\misoft\{system}\{package}\controller" sub="false" override="true"/>
  36. <file refTemplate="serviceTest" filename="{class}ServiceTest.java" dir="{javaProject}\src\test\java\com\redxun\{system}\{package}\" sub="false" override="true"/>
  37. <file refTemplate="list" filename="{class}List.vue" dir="{frontProject}\src\views\modules\{system}\{package}" sub="false" override="true"/>
  38. <file refTemplate="edit" filename="{class}Edit.vue" dir="{frontProject}\src\views\modules\{system}\{package}" sub="false" override="true"/>
  39. <file refTemplate="apijs" filename="{classVar}.js" dir="{frontProject}\src\api\{system}\{package}" sub="false" override="true"/>
  40. <file refTemplate="editFormModel" filename="{class}Edit.vue" dir="{frontProject}\src\views\modules\{system}\{package}" sub="false" override="true"/>
  41. </files>
  42. <table tableName="demo">
  43. <variable name="class" value="Demo"/>
  44. <variable name="package" value="core"/>
  45. <variable name="packageName" value="考勤"></variable>
  46. </table>
  47. <!--
  48. -->
  49. <!-- <files baseDir="D:\redxun_git\jpaas_sources">
  50. &lt;!&ndash;
  51. &ndash;&gt;
  52. &lt;!&ndash; <file refTemplate="mapping" filename="{class}Mapper.xml" dir="{javaProject}\src\main\resources\mapper\{system}\{package}" sub="true" override="true"/>&ndash;&gt;
  53. &lt;!&ndash; <file refTemplate="entity" filename="{class}.java" dir="{javaProject}\src\main\java\com\redxun\{system}\{package}\entity" sub="true" override="true"/>&ndash;&gt;
  54. &lt;!&ndash; <file refTemplate="dao" filename="{class}Mapper.java" dir="{javaProject}\src\main\java\com\redxun\{system}\{package}\mapper" sub="false" override="true"/>&ndash;&gt;
  55. &lt;!&ndash; <file refTemplate="manager" filename="{class}ServiceImpl.java" dir="{javaProject}\src\main\java\com\redxun\{system}\{package}\service" sub="false" override="true"/>&ndash;&gt;
  56. &lt;!&ndash; <file refTemplate="controller" filename="{class}Controller.java" dir="{javaProject}\src\main\java\com\redxun\{system}\{package}\controller" sub="false" override="true"/>&ndash;&gt;
  57. <file refTemplate="apijs" filename="{classVar}.js" dir="{frontProject}\src\api\{system}\{package}" sub="false" override="true"/>
  58. <file refTemplate="list" filename="{class}List.vue" dir="{frontProject}\src\views\modules\{system}\{package}" sub="false" override="true"/>
  59. <file refTemplate="bpmForm" filename="{class}BpmForm.vue" dir="{frontProject}\src\views\modules\{system}\{package}" sub="false" override="true"/>
  60. &lt;!&ndash; <file refTemplate="serviceTest" filename="{class}ServiceTest.java" dir="src\test\java\com\redxun\{system}\{package}\" sub="false" override="true"/>&ndash;&gt;
  61. &lt;!&ndash; <file refTemplate="edit" filename="{class}Edit.vue" dir="{frontProject}\src\views\modules\{system}\{package}" sub="false" override="true"/>&ndash;&gt;
  62. <file refTemplate="editFormModel" filename="{class}Edit.vue" dir="{frontProject}\src\views\modules\{system}\{package}" sub="false" override="true"/>
  63. </files>-->
  64. <!-- <table tableName="ats_typeset_wizard">
  65. <variable name="class" value="AtsTypesetWizard"></variable>
  66. <variable name="package" value="ats"></variable>
  67. <variable name="packageName" value="考勤"></variable>
  68. </table>
  69. -->
  70. <!--<table tableName="ats_holiday">
  71. <variable name="class" value="AtsHoliday"></variable>
  72. <variable name="package" value="ats"></variable>
  73. <variable name="packageName" value="考勤"></variable>
  74. </table>
  75. <table tableName="ats_import_plan">
  76. <variable name="class" value="AtsImportPlan"></variable>
  77. <variable name="package" value="ats"></variable>
  78. <variable name="packageName" value="考勤"></variable>
  79. </table>
  80. <table tableName="ats_over_time">
  81. <variable name="class" value="AtsOverTime"></variable>
  82. <variable name="package" value="ats"></variable>
  83. <variable name="packageName" value="考勤"></variable>
  84. </table>
  85. <table tableName="ats_salary">
  86. <variable name="class" value="AtsSalary"></variable>
  87. <variable name="package" value="ats"></variable>
  88. <variable name="packageName" value="考勤"></variable>
  89. </table>
  90. <table tableName="ats_trip">
  91. <variable name="class" value="AtsTrip"></variable>
  92. <variable name="package" value="ats"></variable>
  93. <variable name="packageName" value="考勤"></variable>
  94. </table>
  95. <table tableName="ats_attence_cycle">
  96. <variable name="class" value="AtsAttenceCycle"></variable>
  97. <variable name="package" value="ats"></variable>
  98. <variable name="packageName" value="考勤"></variable>
  99. </table>
  100. <table tableName="ats_attence_cycle_detail">
  101. <variable name="class" value="AtsattenceCycleDetail"></variable>
  102. <variable name="package" value="ats"></variable>
  103. <variable name="packageName" value="考勤"></variable>
  104. </table>
  105. <table tableName="ats_attence_group">
  106. <variable name="class" value="AtsAttenceGroup"></variable>
  107. <variable name="package" value="ats"></variable>
  108. <variable name="packageName" value="考勤"></variable>
  109. </table>
  110. <table tableName="ats_attence_group_detail">
  111. <variable name="class" value="AtsAttenceGroupDetail"></variable>
  112. <variable name="package" value="ats"></variable>
  113. <variable name="packageName" value="考勤"></variable>
  114. </table>
  115. <table tableName="ats_attence_policy">
  116. <variable name="class" value="AtsAttencePolicy"></variable>
  117. <variable name="package" value="ats"></variable>
  118. <variable name="packageName" value="考勤"></variable>
  119. </table>
  120. <table tableName="ats_attendance_file">
  121. <variable name="class" value="AtsAttendanceFile"></variable>
  122. <variable name="package" value="ats"></variable>
  123. <variable name="packageName" value="考勤"></variable>
  124. </table>
  125. <table tableName="ats_base_item">
  126. <variable name="class" value="AtsBaseItem"></variable>
  127. <variable name="package" value="ats"></variable>
  128. <variable name="packageName" value="考勤"></variable>
  129. </table>
  130. <table tableName="ats_calendar_templ">
  131. <variable name="class" value="AtsCalendarTempl"></variable>
  132. <variable name="package" value="ats"></variable>
  133. <variable name="packageName" value="考勤"></variable>
  134. </table>
  135. <table tableName="ats_calendar_templ_detail">
  136. <variable name="class" value="AtsCalendarTemplDetail"></variable>
  137. <variable name="package" value="ats"></variable>
  138. <variable name="packageName" value="考勤"></variable>
  139. </table>
  140. <table tableName="ats_card_record">
  141. <variable name="class" value="AtsCardRecord"></variable>
  142. <variable name="package" value="ats"></variable>
  143. <variable name="packageName" value="考勤"></variable>
  144. </table>
  145. <table tableName="ats_card_rule">
  146. <variable name="class" value="AtsCardRule"></variable>
  147. <variable name="package" value="ats"></variable>
  148. <variable name="packageName" value="考勤"></variable>
  149. </table>
  150. <table tableName="ats_holiday_policy">
  151. <variable name="class" value="AtsHolidayPolicy"></variable>
  152. <variable name="package" value="ats"></variable>
  153. <variable name="packageName" value="考勤"></variable>
  154. </table>
  155. <table tableName="ats_holiday_policy_detail">
  156. <variable name="class" value="AtsHolidayPolicyDetail"></variable>
  157. <variable name="package" value="ats"></variable>
  158. <variable name="packageName" value="考勤"></variable>
  159. </table>
  160. <table tableName="ats_holiday_type">
  161. <variable name="class" value="AtsHolidayType"></variable>
  162. <variable name="package" value="ats"></variable>
  163. <variable name="packageName" value="考勤"></variable>
  164. </table>
  165. <table tableName="ats_legal_holiday">
  166. <variable name="class" value="AtsLegalHoliday"></variable>
  167. <variable name="package" value="ats"></variable>
  168. <variable name="packageName" value="考勤"></variable>
  169. </table>
  170. <table tableName="ats_legal_holiday_detail">
  171. <variable name="class" value="AtsLegalHolidayDetail"></variable>
  172. <variable name="package" value="ats"></variable>
  173. <variable name="packageName" value="考勤"></variable>
  174. </table>
  175. <table tableName="ats_salary_account">
  176. <variable name="class" value="AtsSalaryAccount"></variable>
  177. <variable name="package" value="ats"></variable>
  178. <variable name="packageName" value="考勤"></variable>
  179. </table>
  180. <table tableName="ats_salary_attence_days">
  181. <variable name="class" value="AtsSalaryAttenceDays"></variable>
  182. <variable name="package" value="ats"></variable>
  183. <variable name="packageName" value="考勤"></variable>
  184. </table>
  185. <table tableName="ats_salary_change">
  186. <variable name="class" value="AtsSalaryChange"></variable>
  187. <variable name="package" value="ats"></variable>
  188. <variable name="packageName" value="考勤"></variable>
  189. </table>
  190. <table tableName="ats_salary_day">
  191. <variable name="class" value="AtsSalaryDay"></variable>
  192. <variable name="package" value="ats"></variable>
  193. <variable name="packageName" value="考勤"></variable>
  194. </table>
  195. <table tableName="ats_salary_subsidy">
  196. <variable name="class" value="AtsSalarySubsidy"></variable>
  197. <variable name="package" value="ats"></variable>
  198. <variable name="packageName" value="考勤"></variable>
  199. </table>
  200. <table tableName="ats_schedule_apple_flow">
  201. <variable name="class" value="AtsScheduleAppleFlow"></variable>
  202. <variable name="package" value="ats"></variable>
  203. <variable name="packageName" value="考勤"></variable>
  204. </table>
  205. <table tableName="ats_schedule_shift_flow">
  206. <variable name="class" value="AtsScheduleShiftFlow"></variable>
  207. <variable name="package" value="ats"></variable>
  208. <variable name="packageName" value="考勤"></variable>
  209. </table>
  210. <table tableName="ats_shift_rule">
  211. <variable name="class" value="AtsShiftRule"></variable>
  212. <variable name="package" value="ats"></variable>
  213. <variable name="packageName" value="考勤"></variable>
  214. </table>
  215. <table tableName="ats_shift_rule_detail">
  216. <variable name="class" value="AtsShiftRuleDetail"></variable>
  217. <variable name="package" value="ats"></variable>
  218. <variable name="packageName" value="考勤"></variable>
  219. </table>
  220. <table tableName="ats_shift_type">
  221. <variable name="class" value="AtsShiftType"></variable>
  222. <variable name="package" value="ats"></variable>
  223. <variable name="packageName" value="考勤"></variable>
  224. </table>
  225. <table tableName="ats_work_calendar">
  226. <variable name="class" value="AtsWorkCalendar"></variable>
  227. <variable name="package" value="ats"></variable>
  228. <variable name="packageName" value="考勤"></variable>
  229. </table>
  230. <table tableName="ats_work_task">
  231. <variable name="class" value="AtsWorkTask"></variable>
  232. <variable name="package" value="ats"></variable>
  233. <variable name="packageName" value="考勤"></variable>
  234. </table>
  235. <table tableName="ats_schedule_shift">
  236. <variable name="class" value="AtsScheduleShift"></variable>
  237. <variable name="package" value="ats"></variable>
  238. <variable name="packageName" value="考勤"></variable>
  239. </table>
  240. <table tableName="ats_shift_info">
  241. <variable name="class" value="AtsShiftInfo"></variable>
  242. <variable name="package" value="ats"></variable>
  243. <variable name="packageName" value="考勤"></variable>
  244. </table>
  245. <table tableName="ats_shift_rest_time">
  246. <variable name="class" value="AtsShiftRestTime"></variable>
  247. <variable name="package" value="ats"></variable>
  248. <variable name="packageName" value="考勤"></variable>
  249. </table>
  250. <table tableName="ats_shift_time">
  251. <variable name="class" value="AtsShiftTime"></variable>
  252. <variable name="package" value="ats"></variable>
  253. <variable name="packageName" value="考勤"></variable>
  254. </table>-->
  255. <!--
  256. <genAll tableNames="os_user,os_dimension,os_rel_type,os_group,os_rank_type,os_inst,os_inst_type">
  257. <file refTemplate="genSql" dir="D:/work/redxun/jpaas/jpaas_sources/metadata/sqlgen" genMode="SingleFile" filename="sqlgen_user.xml"></file>
  258. </genAll>
  259. <genAll tableNames="bpm_caltime_block">
  260. <file refTemplate="genSql" dir="D:/work/redxun/jpaas/jpaas_sources/metadata/sqlgen" genMode="SingleFile" filename="sqlgen_bpm.xml"></file>
  261. </genAll>
  262. <genAll tableNames="sys_tree_cat,sys_tree,sys_dic,sys_api,sys_app,sys_menu,sys_transfer_setting,sys_routing,sys_route_type">
  263. <file refTemplate="genSql" dir="D:/work/redxun/jpaas/jpaas_sources/metadata/sqlgen" genMode="SingleFile" filename="sqlgen_system.xml"></file>
  264. </genAll>
  265. <genAll tableNames="ins_column_def,ins_column_temp,ins_msg_def,ins_msgbox_box_def,ins_msgbox_def,ins_portal_def,ins_remind_def">
  266. <file refTemplate="genSql" dir="D:/work/redxun/jpaas/jpaas_sources/metadata/sqlgen" genMode="SingleFile" filename="sqlgen_portal.xml"></file>
  267. </genAll>
  268. -->
  269. </config>