Commit 9fbc953dd1ff6f11470bcda12f48e4845982ce59

Authored by YunaiV
1 parent e5453028

【功能修复】INFRA:代码生成在 ERP 模式时,updateTime 无法被正确更新

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,6 +286,7 @@ public class ${table.className}ServiceImpl implements ${table.className}Service
286 // 校验存在 286 // 校验存在
287 validate${subSimpleClassName}Exists(${subClassNameVar}.getId()); 287 validate${subSimpleClassName}Exists(${subClassNameVar}.getId());
288 // 更新 288 // 更新
  289 + ${subClassNameVar}.setUpdater(null).setUpdateTime(null); // 解决更新情况下:updateTime 不更新
289 ${subClassNameVars.get($index)}Mapper.updateById(${subClassNameVar}); 290 ${subClassNameVars.get($index)}Mapper.updateById(${subClassNameVar});
290 } 291 }
291 292