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
dabce739
Commit
dabce739
authored
Jul 23, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_register' of…
Merge branch 'develop_tzs_register' of
http://39.100.92.250:5000/moa/amos-boot-biz
into develop_tzs_register
parents
384e2e2c
97f7b54d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
27 deletions
+34
-27
DataDictionaryController.java
.../boot/biz/common/controller/DataDictionaryController.java
+13
-7
DataDictionaryMapper.java
...amos/boot/biz/common/dao/mapper/DataDictionaryMapper.java
+4
-3
IDataDictionaryService.java
.../amos/boot/biz/common/service/IDataDictionaryService.java
+3
-2
DataDictionaryServiceImpl.java
...ot/biz/common/service/impl/DataDictionaryServiceImpl.java
+4
-3
DataDictionaryMapper.xml
...common/src/main/resources/mapper/DataDictionaryMapper.xml
+10
-12
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/controller/DataDictionaryController.java
View file @
dabce739
...
@@ -20,7 +20,6 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
...
@@ -20,7 +20,6 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.*
;
import
java.util.*
;
...
@@ -115,16 +114,23 @@ public class DataDictionaryController extends BaseController {
...
@@ -115,16 +114,23 @@ public class DataDictionaryController extends BaseController {
}
}
/**
/**
* 根据extend
集合和Type查询
* 根据extend
、Type、name模糊查询字典
*
*
* @param extend
List
* @param extend
* @return
* @return
*/
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getDictByExtendsAndType"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getDictByExtendAndTypePage"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据extend集合和Type查询"
,
notes
=
"根据extend集合和Type查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据extend、Type、name模糊查询字典"
,
notes
=
"根据extend、Type、name模糊查询字典"
)
public
List
<
DataDictionary
>
getDictByExtendsAndType
(
@RequestParam
(
"extendList"
)
List
<
String
>
extendList
,
@RequestParam
(
"type"
)
String
type
)
{
public
IPage
<
DataDictionary
>
getDictByExtendAndTypePage
(
@RequestParam
(
"extend"
)
String
extend
,
return
iDataDictionaryService
.
getDictByExtendsAndType
(
extendList
,
type
);
@RequestParam
(
"type"
)
String
type
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
,
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
DataDictionary
>
page
=
new
Page
<
DataDictionary
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
iDataDictionaryService
.
getDictByExtendsAndTypePage
(
extend
,
type
,
name
,
page
);
}
}
/**
/**
...
...
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/dao/mapper/DataDictionaryMapper.java
View file @
dabce739
package
com
.
yeejoin
.
amos
.
boot
.
biz
.
common
.
dao
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
biz
.
common
.
dao
.
mapper
;
import
java.util.List
;
import
java.util.List
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
org.apache.ibatis.annotations.Param
;
/**
/**
* 数据字典 Mapper 接口
* 数据字典 Mapper 接口
...
@@ -35,6 +37,5 @@ public interface DataDictionaryMapper extends BaseMapper<DataDictionary> {
...
@@ -35,6 +37,5 @@ public interface DataDictionaryMapper extends BaseMapper<DataDictionary> {
public
List
<
DataDictionary
>
getFirefightersJobTitle
(
String
type
);
public
List
<
DataDictionary
>
getFirefightersJobTitle
(
String
type
);
IPage
<
DataDictionary
>
getDictByExtendsAndTypePage
(
Page
<?>
page
,
@Param
(
"type"
)
String
type
,
@Param
(
"extend"
)
String
extend
,
@Param
(
"name"
)
String
name
);
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 @
dabce739
package
com
.
yeejoin
.
amos
.
boot
.
biz
.
common
.
service
;
package
com
.
yeejoin
.
amos
.
boot
.
biz
.
common
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.utils.MenuFrom
;
import
com.yeejoin.amos.boot.biz.common.utils.MenuFrom
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -32,5 +33,5 @@ public interface IDataDictionaryService {
...
@@ -32,5 +33,5 @@ public interface IDataDictionaryService {
DataDictionary
getByExtend
(
String
groupId
,
String
type
);
DataDictionary
getByExtend
(
String
groupId
,
String
type
);
List
<
DataDictionary
>
getDictByExtendsAndType
(
List
<
String
>
extendList
,
String
typ
e
);
IPage
<
DataDictionary
>
getDictByExtendsAndTypePage
(
String
extend
,
String
type
,
String
name
,
Page
<
DataDictionary
>
pag
e
);
}
}
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/service/impl/DataDictionaryServiceImpl.java
View file @
dabce739
...
@@ -4,6 +4,8 @@ package com.yeejoin.amos.boot.biz.common.service.impl;
...
@@ -4,6 +4,8 @@ package com.yeejoin.amos.boot.biz.common.service.impl;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
com.yeejoin.amos.boot.biz.common.dao.mapper.DataDictionaryMapper
;
import
com.yeejoin.amos.boot.biz.common.dao.mapper.DataDictionaryMapper
;
import
com.yeejoin.amos.boot.biz.common.dto.DataDictionaryDto
;
import
com.yeejoin.amos.boot.biz.common.dto.DataDictionaryDto
;
...
@@ -16,7 +18,6 @@ import org.springframework.beans.factory.annotation.Value;
...
@@ -16,7 +18,6 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.Collection
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.List
;
...
@@ -198,7 +199,7 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
...
@@ -198,7 +199,7 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
}
}
@Override
@Override
public
List
<
DataDictionary
>
getDictByExtendsAndType
(
List
<
String
>
extendList
,
String
typ
e
)
{
public
IPage
<
DataDictionary
>
getDictByExtendsAndTypePage
(
String
extend
,
String
type
,
String
name
,
Page
<
DataDictionary
>
pag
e
)
{
return
dataDictionaryMapper
.
getDictByExtendsAndType
(
extendList
,
typ
e
);
return
dataDictionaryMapper
.
getDictByExtendsAndType
Page
(
page
,
type
,
extend
,
nam
e
);
}
}
}
}
amos-boot-biz-common/src/main/resources/mapper/DataDictionaryMapper.xml
View file @
dabce739
...
@@ -113,17 +113,15 @@ WHERE
...
@@ -113,17 +113,15 @@ WHERE
</select>
</select>
<select
id=
"getDictByExtendsAndType"
resultType=
"com.yeejoin.amos.boot.biz.common.entity.DataDictionary"
>
<select
id=
"getDictByExtendsAndTypePage"
resultType=
"com.yeejoin.amos.boot.biz.common.entity.DataDictionary"
>
SELECT cbb.*
SELECT *
FROM cb_data_dictionary cbb
FROM cb_data_dictionary
WHERE cbb.is_delete = 0
WHERE type = #{type}
AND cbb.type = #{type}
<if
test=
"extend != null and extend != ''"
>
AND (
AND #{extend} = ANY(string_to_array(extend, ','))
<foreach
collection=
"extendList"
item=
"item"
separator=
" OR "
>
</if>
FIND_IN_SET(#{item}, cbb.extend)
<if
test=
"name != null and name != ''"
>
</foreach>
AND name LIKE CONCAT('%', #{name}, '%')
)
</if>
ORDER BY cbb.sort_num
</select>
</select>
</mapper>
</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