Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdict
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdict
提交
c722653f
提交
c722653f
编写于
1月 29, 2021
作者:
sq3536
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
转移
上级
1d76608a
变更
6
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
122 行增加
和
194 行删除
+122
-194
DictCoreService.java
...ibizlab/core/dict/extensions/service/DictCoreService.java
+116
-41
Catalog.java
...main/java/cn/ibizlab/core/dict/extensions/vo/Catalog.java
+0
-32
CodeItem.java
...ain/java/cn/ibizlab/core/dict/extensions/vo/CodeItem.java
+0
-43
CodeList.java
...ain/java/cn/ibizlab/core/dict/extensions/vo/CodeList.java
+0
-38
Option.java
.../main/java/cn/ibizlab/core/dict/extensions/vo/Option.java
+0
-34
DictCoreResource.java
...java/cn/ibizlab/api/rest/extensions/DictCoreResource.java
+6
-6
未找到文件。
ibzdict-core/src/main/java/cn/ibizlab/core/dict/extensions/service/DictCoreService.java
浏览文件 @
c722653f
此差异已折叠。
点击以展开。
ibzdict-core/src/main/java/cn/ibizlab/core/dict/extensions/vo/Catalog.java
已删除
100644 → 0
浏览文件 @
1d76608a
package
cn
.
ibizlab
.
core
.
dict
.
extensions
.
vo
;
import
cn.ibizlab.util.annotation.DEField
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.experimental.Accessors
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Accessors
(
chain
=
true
)
public
class
Catalog
{
private
String
code
;
private
String
name
;
@JSONField
(
name
=
"items"
)
@JsonProperty
(
"items"
)
private
List
<
Option
>
options
=
new
ArrayList
<>();
}
ibzdict-core/src/main/java/cn/ibizlab/core/dict/extensions/vo/CodeItem.java
已删除
100644 → 0
浏览文件 @
1d76608a
package
cn
.
ibizlab
.
core
.
dict
.
extensions
.
vo
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.experimental.Accessors
;
import
java.util.List
;
import
java.util.Map
;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Accessors
(
chain
=
true
)
public
class
CodeItem
{
private
String
id
;
private
Object
value
;
private
String
label
;
@JsonIgnore
@JSONField
(
serialize
=
false
)
private
List
<
CodeItem
>
children
;
private
String
iconClass
;
private
String
filter
;
private
Boolean
disabled
;
@JSONField
(
name
=
"pvalue"
)
@JsonProperty
(
"pvalue"
)
private
String
parent
;
private
Map
<
String
,
Object
>
extension
;
@JSONField
(
name
=
"text"
)
@JsonProperty
(
"text"
)
public
String
getText
()
{
return
label
;
}
}
ibzdict-core/src/main/java/cn/ibizlab/core/dict/extensions/vo/CodeList.java
已删除
100644 → 0
浏览文件 @
1d76608a
package
cn
.
ibizlab
.
core
.
dict
.
extensions
.
vo
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.experimental.Accessors
;
import
java.util.ArrayList
;
import
java.util.List
;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Accessors
(
chain
=
true
)
public
class
CodeList
{
@JSONField
(
name
=
"srfkey"
)
@JsonProperty
(
"srfkey"
)
private
String
code
;
private
String
name
;
@JSONField
(
name
=
"emptytext"
)
@JsonProperty
(
"emptytext"
)
public
String
getEmptytext
()
{
return
""
;
}
@JSONField
(
name
=
"items"
)
@JsonProperty
(
"items"
)
private
List
<
CodeItem
>
options
=
new
ArrayList
<>();
}
ibzdict-core/src/main/java/cn/ibizlab/core/dict/extensions/vo/Option.java
已删除
100644 → 0
浏览文件 @
1d76608a
package
cn
.
ibizlab
.
core
.
dict
.
extensions
.
vo
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.experimental.Accessors
;
import
java.util.List
;
import
java.util.Map
;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Accessors
(
chain
=
true
)
public
class
Option
{
private
String
id
;
private
Object
value
;
private
String
label
;
private
List
<
Option
>
children
;
private
String
iconClass
;
private
String
filter
;
private
Boolean
disabled
;
@JsonIgnore
@JSONField
(
serialize
=
false
)
private
String
parent
;
private
Map
<
String
,
Object
>
extension
;
}
ibzdict-provider/ibzdict-provider-api/src/main/java/cn/ibizlab/api/rest/extensions/DictCoreResource.java
浏览文件 @
c722653f
...
@@ -5,15 +5,15 @@ import cn.ibizlab.api.mapping.DictCatalogMapping;
...
@@ -5,15 +5,15 @@ import cn.ibizlab.api.mapping.DictCatalogMapping;
import
cn.ibizlab.core.dict.domain.DictCatalog
;
import
cn.ibizlab.core.dict.domain.DictCatalog
;
import
cn.ibizlab.core.dict.domain.DictOption
;
import
cn.ibizlab.core.dict.domain.DictOption
;
import
cn.ibizlab.core.dict.extensions.service.DictCoreService
;
import
cn.ibizlab.core.dict.extensions.service.DictCoreService
;
import
cn.ibizlab.core.dict.extensions.vo.Catalog
;
import
cn.ibizlab.core.dict.extensions.vo.CodeItem
;
import
cn.ibizlab.core.dict.extensions.vo.CodeList
;
import
cn.ibizlab.core.dict.extensions.vo.Option
;
import
cn.ibizlab.core.dict.filter.DictCatalogSearchContext
;
import
cn.ibizlab.core.dict.filter.DictCatalogSearchContext
;
import
cn.ibizlab.core.dict.filter.DictOptionSearchContext
;
import
cn.ibizlab.core.dict.filter.DictOptionSearchContext
;
import
cn.ibizlab.core.dict.service.IDictCatalogService
;
import
cn.ibizlab.core.dict.service.IDictCatalogService
;
import
cn.ibizlab.core.dict.service.IDictOptionService
;
import
cn.ibizlab.core.dict.service.IDictOptionService
;
import
cn.ibizlab.util.annotation.VersionCheck
;
import
cn.ibizlab.util.annotation.VersionCheck
;
import
cn.ibizlab.util.dict.Catalog
;
import
cn.ibizlab.util.dict.CodeItem
;
import
cn.ibizlab.util.dict.CodeList
;
import
cn.ibizlab.util.dict.Option
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -67,7 +67,7 @@ public class DictCoreResource {
...
@@ -67,7 +67,7 @@ public class DictCoreResource {
}
}
@RequestMapping
(
method
=
{
RequestMethod
.
GET
},
value
=
"/dictionarys/catalogs/{code}/options"
)
@RequestMapping
(
method
=
{
RequestMethod
.
GET
},
value
=
"/dictionarys/catalogs/{code}/options"
)
public
ResponseEntity
<
List
<
Option
>>
getOptions
(
@PathVariable
(
"code"
)
String
code
,
DictOptionSearchContext
context
)
{
public
ResponseEntity
<
List
<
Option
>>
getOptions
(
@PathVariable
(
"code"
)
String
code
,
DictOptionSearchContext
context
)
{
Catalog
catalog
=
null
;
Catalog
catalog
=
null
;
if
(
context
==
null
||
StringUtils
.
isEmpty
(
context
.
getSelectCond
().
getSqlSegment
()))
if
(
context
==
null
||
StringUtils
.
isEmpty
(
context
.
getSelectCond
().
getSqlSegment
()))
catalog
=
dictCoreService
.
getDictCatalog
(
code
);
catalog
=
dictCoreService
.
getDictCatalog
(
code
);
...
@@ -90,7 +90,7 @@ public class DictCoreResource {
...
@@ -90,7 +90,7 @@ public class DictCoreResource {
@RequestMapping
(
method
=
{
RequestMethod
.
GET
},
value
=
"/dictionarys/codelist/{code}/items"
)
@RequestMapping
(
method
=
{
RequestMethod
.
GET
},
value
=
"/dictionarys/codelist/{code}/items"
)
public
ResponseEntity
<
List
<
CodeItem
>>
getCodeItems
(
@PathVariable
(
"code"
)
String
code
,
DictOptionSearchContext
context
)
{
public
ResponseEntity
<
List
<
CodeItem
>>
getCodeItems
(
@PathVariable
(
"code"
)
String
code
,
DictOptionSearchContext
context
)
{
CodeList
catalog
=
null
;
CodeList
catalog
=
null
;
if
(
context
==
null
||
StringUtils
.
isEmpty
(
context
.
getSelectCond
().
getSqlSegment
()))
if
(
context
==
null
||
StringUtils
.
isEmpty
(
context
.
getSelectCond
().
getSqlSegment
()))
catalog
=
dictCoreService
.
getCodeListCatalog
(
code
);
catalog
=
dictCoreService
.
getCodeListCatalog
(
code
);
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录