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
68ac92bc
Commit
68ac92bc
authored
Jul 22, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tcm):添加字典查核准证号接口
parent
3c5a993a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
2 deletions
+35
-2
DataDictionaryController.java
.../boot/biz/common/controller/DataDictionaryController.java
+13
-0
DataDictionaryMapper.java
...amos/boot/biz/common/dao/mapper/DataDictionaryMapper.java
+1
-0
IDataDictionaryService.java
.../amos/boot/biz/common/service/IDataDictionaryService.java
+2
-0
DataDictionaryServiceImpl.java
...ot/biz/common/service/impl/DataDictionaryServiceImpl.java
+5
-0
DataDictionaryMapper.xml
...common/src/main/resources/mapper/DataDictionaryMapper.xml
+14
-2
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/controller/DataDictionaryController.java
View file @
68ac92bc
...
...
@@ -115,6 +115,19 @@ public class DataDictionaryController extends BaseController {
}
/**
* 根据extend集合和Type查询
*
* @param extendList
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getDictByExtendsAndType"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据extend集合和Type查询"
,
notes
=
"根据extend集合和Type查询"
)
public
List
<
DataDictionary
>
getDictByExtendsAndType
(
@RequestParam
(
"extendList"
)
List
<
String
>
extendList
,
@RequestParam
(
"type"
)
String
type
)
{
return
iDataDictionaryService
.
getDictByExtendsAndType
(
extendList
,
type
);
}
/**
* 列表分页查询
*
* @return
...
...
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/dao/mapper/DataDictionaryMapper.java
View file @
68ac92bc
...
...
@@ -36,4 +36,5 @@ public interface DataDictionaryMapper extends BaseMapper<DataDictionary> {
public
List
<
DataDictionary
>
getFirefightersJobTitle
(
String
type
);
List
<
DataDictionary
>
getDictByExtendsAndType
(
List
<
String
>
extendList
,
String
type
);
}
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/service/IDataDictionaryService.java
View file @
68ac92bc
...
...
@@ -31,4 +31,6 @@ public interface IDataDictionaryService {
List
<
DataDictionary
>
getByTypeAndDesc
(
String
type
,
String
group
);
DataDictionary
getByExtend
(
String
groupId
,
String
type
);
List
<
DataDictionary
>
getDictByExtendsAndType
(
List
<
String
>
extendList
,
String
type
);
}
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/service/impl/DataDictionaryServiceImpl.java
View file @
68ac92bc
...
...
@@ -196,4 +196,9 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
DataDictionary
dataDictionary
=
dataDictionaryMapper
.
selectOne
(
wrapper
);
return
ObjectUtils
.
isEmpty
(
dataDictionary
)
?
new
DataDictionary
()
:
dataDictionary
;
}
@Override
public
List
<
DataDictionary
>
getDictByExtendsAndType
(
List
<
String
>
extendList
,
String
type
)
{
return
dataDictionaryMapper
.
getDictByExtendsAndType
(
extendList
,
type
);
}
}
amos-boot-biz-common/src/main/resources/mapper/DataDictionaryMapper.xml
View file @
68ac92bc
...
...
@@ -112,6 +112,18 @@ WHERE
cdd.type = 'XFSYLX'
</select>
<select
id=
"getDictByExtendsAndType"
resultType=
"com.yeejoin.amos.boot.biz.common.entity.DataDictionary"
>
SELECT cbb.*
FROM cb_data_dictionary cbb
WHERE cbb.is_delete = 0
AND cbb.type = #{type}
AND (
<foreach
collection=
"extendList"
item=
"item"
separator=
" OR "
>
FIND_IN_SET(#{item}, cbb.extend)
</foreach>
)
ORDER BY cbb.sort_num
</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