Browse Source

数据模型字段comment改名为jdbc_comment以避免数据库关键词

fix_bug_pro20231227
smallchill 2 years ago
parent
commit
976dbf432a
  1. 2
      src/const/tool/model.js
  2. 1
      src/views/tool/model.vue

2
src/const/tool/model.js

@ -263,7 +263,7 @@ export const optionModel = {
},
{
label: '字段说明',
prop: 'comment',
prop: 'jdbcComment',
cell: true,
},
{

1
src/views/tool/model.vue

@ -320,6 +320,7 @@ export default {
if (!validatenull(item.name)) {
item.jdbcName = item.name;
item.jdbcType = item.propertyType;
item.jdbcComment = item.comment;
if (item.propertyType === 'LocalDateTime') {
item.propertyType = 'Date';
item.propertyEntity = 'java.util.Date';

Loading…
Cancel
Save