提交 | 用户 | 时间
|
e7c126
|
1 |
// TODO 待办:请将下面的错误码复制到 iailab-module-${table.moduleName}-api 模块的 ErrorCodeConstants 类中。注意,请给“TODO 补充编号”设置一个错误码编号!!! |
H |
2 |
// ========== ${table.classComment} TODO 补充编号 ========== |
|
3 |
ErrorCode ${simpleClassName_underlineCase.toUpperCase()}_NOT_EXISTS = new ErrorCode(TODO 补充编号, "${table.classComment}不存在"); |
|
4 |
## 特殊:树表专属逻辑 |
|
5 |
#if ( $table.templateType == 2 ) |
|
6 |
ErrorCode ${simpleClassName_underlineCase.toUpperCase()}_EXITS_CHILDREN = new ErrorCode(TODO 补充编号, "存在存在子${table.classComment},无法删除"); |
|
7 |
ErrorCode ${simpleClassName_underlineCase.toUpperCase()}_PARENT_NOT_EXITS = new ErrorCode(TODO 补充编号,"父级${table.classComment}不存在"); |
|
8 |
ErrorCode ${simpleClassName_underlineCase.toUpperCase()}_PARENT_ERROR = new ErrorCode(TODO 补充编号, "不能设置自己为父${table.classComment}"); |
|
9 |
ErrorCode ${simpleClassName_underlineCase.toUpperCase()}_${treeNameColumn_javaField_underlineCase.toUpperCase()}_DUPLICATE = new ErrorCode(TODO 补充编号, "已经存在该${treeNameColumn.columnComment}的${table.classComment}"); |
|
10 |
ErrorCode ${simpleClassName_underlineCase.toUpperCase()}_PARENT_IS_CHILD = new ErrorCode(TODO 补充编号, "不能设置自己的子${table.className}为父${table.className}"); |
|
11 |
#end |
|
12 |
## 特殊:主子表专属逻辑 |
|
13 |
#if ( $table.templateType == 11 )## 特殊:ERP 情况 |
|
14 |
#foreach ($subTable in $subTables) |
|
15 |
#set ($index = $foreach.count - 1) |
|
16 |
#set ($simpleClassNameUnderlineCase = $simpleClassNameUnderlineCases.get($index)) |
|
17 |
ErrorCode ${simpleClassNameUnderlineCase.toUpperCase()}_NOT_EXISTS = new ErrorCode(TODO 补充编号, "${subTable.classComment}不存在"); |
|
18 |
#if ( !$subTable.subJoinMany ) |
|
19 |
ErrorCode ${simpleClassNameUnderlineCase.toUpperCase()}_EXISTS = new ErrorCode(TODO 补充编号, "${subTable.classComment}已存在"); |
|
20 |
#end |
|
21 |
#end |
|
22 |
#end |