Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
f65d6dee
Commit
f65d6dee
authored
Sep 08, 2021
by
chenzhao
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
因code不唯一 修改 根据code查询 增添条件 type 判断条件 code相等 type值相等
parent
427e8239
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
DataDictionaryDto.java
...m/yeejoin/amos/boot/biz/common/dto/DataDictionaryDto.java
+3
-0
DataDictionary.java
...m/yeejoin/amos/boot/biz/common/entity/DataDictionary.java
+3
-0
DataDictionaryServiceImpl.java
...ot/biz/common/service/impl/DataDictionaryServiceImpl.java
+2
-2
DataDictionaryMapper.xml
...common/src/main/resources/mapper/DataDictionaryMapper.xml
+1
-1
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/dto/DataDictionaryDto.java
View file @
f65d6dee
...
@@ -30,6 +30,9 @@ public class DataDictionaryDto extends BaseDto {
...
@@ -30,6 +30,9 @@ public class DataDictionaryDto extends BaseDto {
@ApiModelProperty
(
value
=
"父级"
)
@ApiModelProperty
(
value
=
"父级"
)
private
Long
parent
;
private
Long
parent
;
@ApiModelProperty
(
value
=
"类型说明"
)
private
String
typeDesc
;
@ApiModelProperty
(
value
=
"操作人名称"
)
@ApiModelProperty
(
value
=
"操作人名称"
)
private
String
recUserName
;
private
String
recUserName
;
...
...
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/entity/DataDictionary.java
View file @
f65d6dee
...
@@ -37,6 +37,9 @@ public class DataDictionary extends BaseEntity {
...
@@ -37,6 +37,9 @@ public class DataDictionary extends BaseEntity {
@ApiModelProperty
(
value
=
"父级"
)
@ApiModelProperty
(
value
=
"父级"
)
private
Long
parent
;
private
Long
parent
;
@ApiModelProperty
(
value
=
"类型说明"
)
private
String
typeDesc
;
//新加排序字段
//新加排序字段
@ApiModelProperty
(
value
=
"排序字段"
)
@ApiModelProperty
(
value
=
"排序字段"
)
private
int
sortNum
;
private
int
sortNum
;
...
...
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/service/impl/DataDictionaryServiceImpl.java
View file @
f65d6dee
...
@@ -88,9 +88,9 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
...
@@ -88,9 +88,9 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
}
}
public
DataDictionary
getByCode
(
String
code
)
{
public
DataDictionary
getByCode
(
String
code
,
String
type
)
{
DataDictionary
byCode
=
dataDictionaryMapper
.
getByCode
(
code
);
DataDictionary
byCode
=
dataDictionaryMapper
.
getByCode
(
code
,
type
);
return
byCode
;
return
byCode
;
}
}
...
...
amos-boot-biz-common/src/main/resources/mapper/DataDictionaryMapper.xml
View file @
f65d6dee
...
@@ -55,6 +55,6 @@ AND elink.count IS NOT NULL
...
@@ -55,6 +55,6 @@ AND elink.count IS NOT NULL
cb_data_dictionary cbb
cb_data_dictionary cbb
WHERE
WHERE
cbb.code = #{code} and cbb.is_delete = 0
cbb.code = #{code} and cbb.is_delete = 0
and cbb.type = #{type}
</select>
</select>
</mapper>
</mapper>
陈召
@chenzhao
mentioned in commit
7e567160
·
Sep 08, 2021
mentioned in commit
7e567160
mentioned in commit 7e56716070f16aad727b9d530eee6b8342c9ad5d
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment