优化代码生成同步后字典值NULL问题
parent
07c2e08e4a
commit
3b4f1d7937
|
@ -92,19 +92,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<update id="updateGenTableColumn" parameterType="GenTableColumn">
|
<update id="updateGenTableColumn" parameterType="GenTableColumn">
|
||||||
update gen_table_column
|
update gen_table_column
|
||||||
<set>
|
<set>
|
||||||
column_comment = #{columnComment},
|
<if test="columnComment != null">column_comment = #{columnComment},</if>
|
||||||
java_type = #{javaType},
|
<if test="javaType != null">java_type = #{javaType},</if>
|
||||||
java_field = #{javaField},
|
<if test="javaField != null">java_field = #{javaField},</if>
|
||||||
is_insert = #{isInsert},
|
<if test="isInsert != null">is_insert = #{isInsert},</if>
|
||||||
is_edit = #{isEdit},
|
<if test="isEdit != null">is_edit = #{isEdit},</if>
|
||||||
is_list = #{isList},
|
<if test="isList != null">is_list = #{isList},</if>
|
||||||
is_query = #{isQuery},
|
<if test="isQuery != null">is_query = #{isQuery},</if>
|
||||||
is_required = #{isRequired},
|
<if test="isRequired != null">is_required = #{isRequired},</if>
|
||||||
query_type = #{queryType},
|
<if test="queryType != null">query_type = #{queryType},</if>
|
||||||
html_type = #{htmlType},
|
<if test="htmlType != null">html_type = #{htmlType},</if>
|
||||||
dict_type = #{dictType},
|
<if test="dictType != null">dict_type = #{dictType},</if>
|
||||||
sort = #{sort},
|
<if test="sort != null">sort = #{sort},</if>
|
||||||
update_by = #{updateBy},
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
update_time = sysdate()
|
update_time = sysdate()
|
||||||
</set>
|
</set>
|
||||||
where column_id = #{columnId}
|
where column_id = #{columnId}
|
||||||
|
|
|
@ -45,22 +45,22 @@
|
||||||
|
|
||||||
<el-table-column label="插入" min-width="5%">
|
<el-table-column label="插入" min-width="5%">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-checkbox true-label="1" v-model="scope.row.isInsert"></el-checkbox>
|
<el-checkbox true-label="1" false-label="0" v-model="scope.row.isInsert"></el-checkbox>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="编辑" min-width="5%">
|
<el-table-column label="编辑" min-width="5%">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-checkbox true-label="1" v-model="scope.row.isEdit"></el-checkbox>
|
<el-checkbox true-label="1" false-label="0" v-model="scope.row.isEdit"></el-checkbox>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="列表" min-width="5%">
|
<el-table-column label="列表" min-width="5%">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-checkbox true-label="1" v-model="scope.row.isList"></el-checkbox>
|
<el-checkbox true-label="1" false-label="0" v-model="scope.row.isList"></el-checkbox>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="查询" min-width="5%">
|
<el-table-column label="查询" min-width="5%">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-checkbox true-label="1" v-model="scope.row.isQuery"></el-checkbox>
|
<el-checkbox true-label="1" false-label="0" v-model="scope.row.isQuery"></el-checkbox>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="查询方式" min-width="10%">
|
<el-table-column label="查询方式" min-width="10%">
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="必填" min-width="5%">
|
<el-table-column label="必填" min-width="5%">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-checkbox true-label="1" v-model="scope.row.isRequired"></el-checkbox>
|
<el-checkbox true-label="1" false-label="0" v-model="scope.row.isRequired"></el-checkbox>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="显示类型" min-width="12%">
|
<el-table-column label="显示类型" min-width="12%">
|
||||||
|
|
Loading…
Reference in New Issue