|
@@ -40,7 +40,20 @@ class ConfigPropService : IConfigPropService {
|
|
|
|
|
|
override fun query(prop: ConfigProperty,
|
|
|
page: Long, pageSize: Long): IPage<ConfigProperty> {
|
|
|
- val queryWrapper = QueryWrapper<ConfigProperty>(prop)
|
|
|
+ val queryWrapper = QueryWrapper<ConfigProperty>()
|
|
|
+ queryWrapper.orderByDesc("`key`","application","profile")
|
|
|
+ if (!prop.application.isNullOrBlank()){
|
|
|
+ queryWrapper.eq("application",prop.application)
|
|
|
+ }
|
|
|
+ if (!prop.profile.isNullOrBlank()){
|
|
|
+ queryWrapper.eq("profile",prop.profile)
|
|
|
+ }
|
|
|
+ if (!prop.label.isNullOrBlank()){
|
|
|
+ queryWrapper.eq("label",prop.label)
|
|
|
+ }
|
|
|
+ if (!prop.key.isNullOrBlank()){
|
|
|
+ queryWrapper.like("key",prop.key)
|
|
|
+ }
|
|
|
return propDao.selectPage(Page(page, pageSize), queryWrapper)
|
|
|
}
|
|
|
|