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
4153ee54
Commit
4153ee54
authored
Sep 08, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
因code不唯一 修改 根据code查询 增添条件 type 判断条件 code相等 type值相等 v1
parent
7e567160
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
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/entity/DataDictionary.java
View file @
4153ee54
...
...
@@ -37,6 +37,9 @@ public class DataDictionary extends BaseEntity {
@ApiModelProperty
(
value
=
"父级"
)
private
Long
parent
;
@ApiModelProperty
(
value
=
"类型说明"
)
private
String
typeDesc
;
//新加排序字段
@ApiModelProperty
(
value
=
"排序字段"
)
private
int
sortNum
;
...
...
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/service/impl/DataDictionaryServiceImpl.java
View file @
4153ee54
...
...
@@ -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
;
}
...
...
amos-boot-biz-common/src/main/resources/mapper/DataDictionaryMapper.xml
View file @
4153ee54
...
...
@@ -55,6 +55,6 @@ AND elink.count IS NOT NULL
cb_data_dictionary cbb
WHERE
cbb.code = #{code} and cbb.is_delete = 0
cbb.code = #{code} and cbb.is_delete = 0
and cbb.type = #{type}
</select>
</mapper>
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