-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf:优化插件管理菜单默认插件查询 #11142 #11144
perf:优化插件管理菜单默认插件查询 #11142 #11144
Conversation
conditions.add(tspr.PROJECT_CODE.eq(projectCode).and(tspr.STORE_TYPE.eq(0))) | ||
} else { | ||
conditions.add( | ||
ta.ID.`in`(defaultAtomIds) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
逻辑写得有问题,默认插件无需安装,不需要关联T_STORE_PROJECT_REL
installType == StoreProjectTypeEnum.INIT.type.toByte() || | ||
installType == StoreProjectTypeEnum.TEST.type.toByte() | ||
} | ||
if (default) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这是什么代码?
installTime = DateTimeUtil.toDateTime(it[KEY_INSTALL_TIME] as LocalDateTime), | ||
installType = StoreProjectTypeEnum.getProjectType((it[KEY_INSTALL_TYPE] as Byte).toInt()), | ||
installer = installer, | ||
installTime = if (default) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个默认插件的安装时间用更新时间有点奇怪,需要找产品确认下
var limit = pageSize | ||
var offset = 0 | ||
if ((page -1) * pageSize - projectCount > 0) { | ||
offset = (page - 1) * pageSize- projectCount |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这逻辑有问题吧,临界页面offset不是0开始,limit也不是pageSize吧
/** | ||
* 获取默认插件 | ||
*/ | ||
fun getDefaultAtoms( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
service把普通插件和默认插件分开处理,但dao的逻辑差不多,看能不能合并,通过标识字段来区分逻辑差异
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1
perf:优化插件管理菜单默认插件查询 #11142