mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
【功能修复】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());
|
validate${subSimpleClassName}Exists(${subClassNameVar}.getId());
|
||||||
// 更新
|
// 更新
|
||||||
|
${subClassNameVar}.setUpdater(null).setUpdateTime(null); // 解决更新情况下:updateTime 不更新
|
||||||
${subClassNameVars.get($index)}Mapper.updateById(${subClassNameVar});
|
${subClassNameVars.get($index)}Mapper.updateById(${subClassNameVar});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user