fix: 强制设置代码生成器 为小写模式,保持与生成权限一致

pull/19/head
Parker 2 years ago
parent 6182aaae06
commit 1f27d24092

@ -116,6 +116,13 @@ public class GenLogsServiceImpl extends CrudServiceImpl<GenLogsMapper, GenLogs,
throw new GeneratorException(GeneratorMsg.EXCEPTION_CREATE_NULL); throw new GeneratorException(GeneratorMsg.EXCEPTION_CREATE_NULL);
} }
model.setVersion(null); model.setVersion(null);
// 强制设置为小写 保持权限统一
model.setModuleName(null==model.getModuleName()
?null:model.getModuleName().toLowerCase());
model.setSubModuleName(null==model.getSubModuleName()
?null:model.getSubModuleName().toLowerCase());
GenLogsModel saveModel = this.save(model); GenLogsModel saveModel = this.save(model);
if(saveModel != null){ if(saveModel != null){
GenTableModel genTableModel = iGenTableService.get(saveModel.getTableId()); GenTableModel genTableModel = iGenTableService.get(saveModel.getTableId());

Loading…
Cancel
Save