【功能修复】INFRA:代码生成在 ERP 模式时,updateTime 无法被正确更新
This commit is contained in:
parent
e5453028f1
commit
9fbc953dd1
|
@ -286,6 +286,7 @@ public class ${table.className}ServiceImpl implements ${table.className}Service
|
|||
// 校验存在
|
||||
validate${subSimpleClassName}Exists(${subClassNameVar}.getId());
|
||||
// 更新
|
||||
${subClassNameVar}.setUpdater(null).setUpdateTime(null); // 解决更新情况下:updateTime 不更新
|
||||
${subClassNameVars.get($index)}Mapper.updateById(${subClassNameVar});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue