Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-health-science
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
徐俊
yn-health-science
Commits
978bd97f
Commit
978bd97f
authored
Dec 11, 2024
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
ea1a1d4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ComUnitController.java
...n/java/com/yiboshi/science/rest/v1/ComUnitController.java
+1
-0
ComUnitDAO.xml
science-admin/src/main/resources/mapper/ComUnitDAO.xml
+1
-2
No files found.
science-admin/src/main/java/com/yiboshi/science/rest/v1/ComUnitController.java
View file @
978bd97f
...
@@ -169,6 +169,7 @@ public class ComUnitController extends BaseController<ComUnitService, ComUnitQue
...
@@ -169,6 +169,7 @@ public class ComUnitController extends BaseController<ComUnitService, ComUnitQue
@ApiOperation
(
value
=
"获取单位信息"
,
httpMethod
=
"GET"
,
notes
=
"获取单位信息"
)
@ApiOperation
(
value
=
"获取单位信息"
,
httpMethod
=
"GET"
,
notes
=
"获取单位信息"
)
@GetMapping
@GetMapping
@RequestMapping
(
"/getListByUnitName"
)
@RequestMapping
(
"/getListByUnitName"
)
@Anonymous
public
ResponseDataModel
<
List
<
SelectListItem
>>
getListByUnitName
(
String
UnitName
)
{
public
ResponseDataModel
<
List
<
SelectListItem
>>
getListByUnitName
(
String
UnitName
)
{
List
<
SelectListItem
>
list
=
new
ArrayList
<>();
List
<
SelectListItem
>
list
=
new
ArrayList
<>();
List
<
ComUnitDTO
>
dtoList
=
comUnitService
.
getListByUnitName
(
UnitName
);
List
<
ComUnitDTO
>
dtoList
=
comUnitService
.
getListByUnitName
(
UnitName
);
...
...
science-admin/src/main/resources/mapper/ComUnitDAO.xml
View file @
978bd97f
...
@@ -34,10 +34,9 @@
...
@@ -34,10 +34,9 @@
<select
id=
"getListByUnitName"
parameterType=
"java.lang.String"
resultType=
"com.yiboshi.science.param.dto.ComUnitDTO"
>
<select
id=
"getListByUnitName"
parameterType=
"java.lang.String"
resultType=
"com.yiboshi.science.param.dto.ComUnitDTO"
>
select a.*
select a.*
from com_unit a
from com_unit a
where a.unit_name
like concat('%', #{UnitName}, '%')
where a.unit_name
= #{UnitName}
</select>
</select>
<select
id=
"getListByPage"
resultType=
"com.yiboshi.science.param.dto.ComUnitDTO"
>
<select
id=
"getListByPage"
resultType=
"com.yiboshi.science.param.dto.ComUnitDTO"
>
select a.*, b.username, b.password, c.unit_name as upUnitName,d.name natureName
select a.*, b.username, b.password, c.unit_name as upUnitName,d.name natureName
from com_unit a
from com_unit a
...
...
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