Commit 9fbc953dd1ff6f11470bcda12f48e4845982ce59
1 parent
e5453028
【功能修复】INFRA:代码生成在 ERP 模式时,updateTime 无法被正确更新
Showing
1 changed file
with
1 additions
and
0 deletions
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/service/serviceImpl.vm
| ... | ... | @@ -286,6 +286,7 @@ public class ${table.className}ServiceImpl implements ${table.className}Service |
| 286 | 286 | // 校验存在 |
| 287 | 287 | validate${subSimpleClassName}Exists(${subClassNameVar}.getId()); |
| 288 | 288 | // 更新 |
| 289 | + ${subClassNameVar}.setUpdater(null).setUpdateTime(null); // 解决更新情况下:updateTime 不更新 | |
| 289 | 290 | ${subClassNameVars.get($index)}Mapper.updateById(${subClassNameVar}); |
| 290 | 291 | } |
| 291 | 292 | ... | ... |