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
83075f63
Commit
83075f63
authored
May 14, 2019
by
youjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加开放的分公司信息列表
parent
47b235e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
BranchCompanyBiz.java
...m/xinxincaravan/caravan/vehicle/biz/BranchCompanyBiz.java
+1
-1
BranchCompanyController.java
...caravan/caravan/vehicle/rest/BranchCompanyController.java
+9
-1
No files found.
vehicle/src/main/java/com/xinxincaravan/caravan/vehicle/biz/BranchCompanyBiz.java
View file @
83075f63
...
@@ -97,7 +97,7 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
...
@@ -97,7 +97,7 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
if
(
addrTown
!=
null
)
{
if
(
addrTown
!=
null
)
{
criteria
.
andCondition
(
" addr_town = '"
+
addrTown
+
"'"
);
criteria
.
andCondition
(
" addr_town = '"
+
addrTown
+
"'"
);
}
}
if
(
DATA_ALL_FALSE
.
equals
(
userDTO
.
getDataAll
()))
{
if
(
userDTO
!=
null
&&
DATA_ALL_FALSE
.
equals
(
userDTO
.
getDataAll
()))
{
if
(
StringUtils
.
isNotBlank
(
userDTO
.
getDataZone
()))
{
if
(
StringUtils
.
isNotBlank
(
userDTO
.
getDataZone
()))
{
criteria
.
andIn
(
COMPANY_ZONE_ID
,
userDTO
.
dataZone2List
());
criteria
.
andIn
(
COMPANY_ZONE_ID
,
userDTO
.
dataZone2List
());
}
}
...
...
vehicle/src/main/java/com/xinxincaravan/caravan/vehicle/rest/BranchCompanyController.java
View file @
83075f63
...
@@ -41,7 +41,7 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> {
...
@@ -41,7 +41,7 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> {
@Autowired
@Autowired
private
UserAuthConfig
userAuthConfig
;
private
UserAuthConfig
userAuthConfig
;
@IgnoreUserToken
@RequestMapping
(
value
=
"/page"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/page"
,
method
=
RequestMethod
.
GET
)
public
RestResponse
<
PageDataVo
<
BranchCompany
>>
page
(
@RequestParam
Integer
page
,
@RequestParam
Integer
limit
,
public
RestResponse
<
PageDataVo
<
BranchCompany
>>
page
(
@RequestParam
Integer
page
,
@RequestParam
Integer
limit
,
@RequestParam
(
required
=
false
)
Integer
addrProvince
,
@RequestParam
(
required
=
false
)
Integer
addrCity
,
@RequestParam
(
required
=
false
)
Integer
addrProvince
,
@RequestParam
(
required
=
false
)
Integer
addrCity
,
...
@@ -52,6 +52,14 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> {
...
@@ -52,6 +52,14 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> {
return
RestResponse
.
data
(
baseBiz
.
getAll
(
page
,
limit
,
addrProvince
,
addrCity
,
addrTown
,
userDTO
));
return
RestResponse
.
data
(
baseBiz
.
getAll
(
page
,
limit
,
addrProvince
,
addrCity
,
addrTown
,
userDTO
));
}
}
@IgnoreUserToken
@RequestMapping
(
value
=
"/allPage"
,
method
=
RequestMethod
.
GET
)
public
RestResponse
<
PageDataVo
<
BranchCompany
>>
allPage
(
@RequestParam
Integer
page
,
@RequestParam
Integer
limit
,
@RequestParam
(
required
=
false
)
Integer
addrProvince
,
@RequestParam
(
required
=
false
)
Integer
addrCity
,
@RequestParam
(
required
=
false
)
Integer
addrTown
)
{
return
RestResponse
.
data
(
baseBiz
.
getAll
(
page
,
limit
,
addrProvince
,
addrCity
,
addrTown
,
null
));
}
@RequestMapping
(
value
=
""
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
""
,
method
=
RequestMethod
.
GET
)
public
RestResponse
<
List
<
BranchCompany
>>
getAll
()
{
public
RestResponse
<
List
<
BranchCompany
>>
getAll
()
{
return
RestResponse
.
data
(
baseBiz
.
getAll
());
return
RestResponse
.
data
(
baseBiz
.
getAll
());
...
...
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