Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
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
hubin
long-tern-care-service
Commits
22f761b4
Commit
22f761b4
authored
Apr 11, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
省市区查询接口修改
parent
72085864
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
DisableController.java
...n/java/com/hungraim/ism/controller/DisableController.java
+2
-2
DisableService.java
...rc/main/java/com/hungraim/ism/service/DisableService.java
+1
-1
DisableServiceImpl.java
...ava/com/hungraim/ism/service/impl/DisableServiceImpl.java
+4
-4
No files found.
apply/apply-service/src/main/java/com/hungraim/ism/controller/DisableController.java
View file @
22f761b4
...
...
@@ -34,8 +34,8 @@ public class DisableController {
* @param districtCode 上级区域代码
*/
@RequestMapping
(
"/district"
)
public
Result
<
List
<
ChFndDistrict
>>
district
(
String
districtLevel
,
String
district
Cod
e
)
{
List
<
ChFndDistrict
>
districts
=
disableService
.
district
(
districtLevel
,
district
Cod
e
);
public
Result
<
List
<
ChFndDistrict
>>
district
(
String
districtLevel
,
String
district
Nam
e
)
{
List
<
ChFndDistrict
>
districts
=
disableService
.
district
(
districtLevel
,
district
Nam
e
);
return
Result
.
success
(
districts
);
}
...
...
apply/apply-service/src/main/java/com/hungraim/ism/service/DisableService.java
View file @
22f761b4
...
...
@@ -48,7 +48,7 @@ public interface DisableService {
void
disableExamine
(
String
applyId
,
String
checkName
,
Short
applyStatus
,
String
checkRemark
);
List
<
ChFndDistrict
>
district
(
String
districtLevel
,
String
district
Cod
e
);
List
<
ChFndDistrict
>
district
(
String
districtLevel
,
String
district
Nam
e
);
List
<
ChFndOrgan
>
fndOrganRoot
();
...
...
apply/apply-service/src/main/java/com/hungraim/ism/service/impl/DisableServiceImpl.java
View file @
22f761b4
...
...
@@ -95,10 +95,10 @@ public class DisableServiceImpl implements DisableService {
}
@Override
public
List
<
ChFndDistrict
>
district
(
String
districtLevel
,
String
district
Cod
e
)
{
if
(
"4"
.
equals
(
district
Code
))
{
public
List
<
ChFndDistrict
>
district
(
String
districtLevel
,
String
district
Nam
e
)
{
if
(
"4"
.
equals
(
district
Level
))
{
QueryWrapper
<
ChFndStreet
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"
AREA_CODE"
,
districtCod
e
);
queryWrapper
.
eq
(
"
STREET_NAME"
,
districtNam
e
);
queryWrapper
.
eq
(
"IS_VALID"
,
0
);
List
<
ChFndStreet
>
fndStreets
=
fndStreetMapper
.
selectList
(
queryWrapper
);
List
<
ChFndDistrict
>
resuts
=
new
ArrayList
<>();
...
...
@@ -114,7 +114,7 @@ public class DisableServiceImpl implements DisableService {
queryWrapper
.
eq
(
"IS_VALID"
,
"Y"
);
queryWrapper
.
eq
(
"DISTRICT_LEVEL"
,
districtLevel
);
if
(!
"1"
.
equals
(
districtLevel
))
{
queryWrapper
.
eq
(
"
PARENT_DISTIRCT_CODE"
,
districtCod
e
);
queryWrapper
.
eq
(
"
DISTRICT_NAME"
,
districtNam
e
);
}
return
districtMapper
.
selectList
(
queryWrapper
);
}
...
...
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