Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
1849c744
Commit
1849c744
authored
Sep 26, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://113.105.137.151:22280/youjj/cloud-platform
parents
6e1e3240
3cb8c1a8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
CompanySearchDTO.java
...java/com/xxfc/platform/vehicle/pojo/CompanySearchDTO.java
+3
-0
BranchCompanyBiz.java
.../java/com/xxfc/platform/vehicle/biz/BranchCompanyBiz.java
+1
-1
BranchCompanyMapper.java
...com/xxfc/platform/vehicle/mapper/BranchCompanyMapper.java
+1
-1
BranchCompanyMapper.xml
...-server/src/main/resources/mapper/BranchCompanyMapper.xml
+9
-0
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/CompanySearchDTO.java
View file @
1849c744
...
@@ -9,4 +9,7 @@ public class CompanySearchDTO {
...
@@ -9,4 +9,7 @@ public class CompanySearchDTO {
Integer
addrCity
;
Integer
addrCity
;
String
lon
;
String
lon
;
String
lat
;
String
lat
;
Integer
state
=
1
;
Integer
isShow
=
1
;
Integer
isDel
=
0
;
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/BranchCompanyBiz.java
View file @
1849c744
...
@@ -208,7 +208,7 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
...
@@ -208,7 +208,7 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
public
PageDataVO
<
BranchCompany
>
search
(
CompanySearchDTO
vo
)
{
public
PageDataVO
<
BranchCompany
>
search
(
CompanySearchDTO
vo
)
{
PageHelper
.
startPage
(
vo
.
getPage
(),
vo
.
getLimit
());
PageHelper
.
startPage
(
vo
.
getPage
(),
vo
.
getLimit
());
PageInfo
<
BranchCompany
>
branchCompanyPageInfo
=
new
PageInfo
<>(
mapper
.
search
(
vo
.
getLon
(),
vo
.
getLat
(),
vo
.
getAddrCity
()));
PageInfo
<
BranchCompany
>
branchCompanyPageInfo
=
new
PageInfo
<>(
mapper
.
search
(
vo
.
getLon
(),
vo
.
getLat
(),
vo
.
getAddrCity
()
,
vo
.
getState
(),
vo
.
getIsShow
(),
vo
.
getIsDel
()
));
return
PageDataVO
.
pageInfo
(
branchCompanyPageInfo
);
return
PageDataVO
.
pageInfo
(
branchCompanyPageInfo
);
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/mapper/BranchCompanyMapper.java
View file @
1849c744
...
@@ -12,7 +12,7 @@ import java.util.List;
...
@@ -12,7 +12,7 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
public
interface
BranchCompanyMapper
extends
Mapper
<
BranchCompany
>,
SelectByIdListMapper
<
BranchCompany
,
Integer
>
{
public
interface
BranchCompanyMapper
extends
Mapper
<
BranchCompany
>,
SelectByIdListMapper
<
BranchCompany
,
Integer
>
{
List
<
BranchCompany
>
search
(
@Param
(
"lon"
)
String
lon
,
@Param
(
"lat"
)
String
lat
,
@Param
(
"addrCity"
)
Integer
addrCity
);
List
<
BranchCompany
>
search
(
@Param
(
"lon"
)
String
lon
,
@Param
(
"lat"
)
String
lat
,
@Param
(
"addrCity"
)
Integer
addrCity
,
Integer
state
,
Integer
isShow
,
Integer
isDel
);
List
<
BranchCompany
>
selectByZoneId
(
Map
<
String
,
Object
>
param
);
List
<
BranchCompany
>
selectByZoneId
(
Map
<
String
,
Object
>
param
);
List
<
Integer
>
findCompanyIdsByAreaId
(
@Param
(
"areaId"
)
Integer
areaId
);
List
<
Integer
>
findCompanyIdsByAreaId
(
@Param
(
"areaId"
)
Integer
areaId
);
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/BranchCompanyMapper.xml
View file @
1849c744
...
@@ -36,6 +36,15 @@
...
@@ -36,6 +36,15 @@
<if
test=
"lon != null and lat != null"
>
<if
test=
"lon != null and lat != null"
>
and longitude is not null and latitude is not null
and longitude is not null and latitude is not null
</if>
</if>
<if
test=
"state != null"
>
and state = #{state}
</if>
<if
test=
"isShow != null"
>
and is_show = #{isShow}
</if>
<if
test=
"isDel != null"
>
and is_del = #{isDel}
</if>
</where>
</where>
<if
test=
"lon != null and lat != null"
>
<if
test=
"lon != null and lat != null"
>
order by distance asc
order by distance asc
...
...
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