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
5a8d6353
Commit
5a8d6353
authored
May 17, 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
93458693
f818f191
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
1 deletion
+32
-1
BranchCompanyStockService.java
...aravan/caravan/vehicle/biz/BranchCompanyStockService.java
+4
-0
BranchCompanyStockInfo.java
...aravan/caravan/vehicle/entity/BranchCompanyStockInfo.java
+5
-0
BranchCompanyStockInfoMapper.java
.../caravan/vehicle/mapper/BranchCompanyStockInfoMapper.java
+2
-0
BranchCompanyStockController.java
...an/caravan/vehicle/rest/BranchCompanyStockController.java
+9
-0
CampsiteController.java
...inxincaravan/caravan/vehicle/rest/CampsiteController.java
+9
-1
BranchCompanyStockInfoMapper.xml
...rc/main/resources/mapper/BranchCompanyStockInfoMapper.xml
+3
-0
No files found.
vehicle/src/main/java/com/xinxincaravan/caravan/vehicle/biz/BranchCompanyStockService.java
View file @
5a8d6353
...
@@ -285,4 +285,8 @@ public class BranchCompanyStockService {
...
@@ -285,4 +285,8 @@ public class BranchCompanyStockService {
}
}
return
RestResponse
.
suc
();
return
RestResponse
.
suc
();
}
}
public
String
getInfoById
(
Integer
id
)
{
return
branchCompanyStockInfoMapper
.
selectInfoById
(
id
);
}
}
}
vehicle/src/main/java/com/xinxincaravan/caravan/vehicle/entity/BranchCompanyStockInfo.java
View file @
5a8d6353
...
@@ -40,4 +40,9 @@ public class BranchCompanyStockInfo {
...
@@ -40,4 +40,9 @@ public class BranchCompanyStockInfo {
private
String
companyPic
;
private
String
companyPic
;
/**
* 详情
*/
private
String
info
;
}
}
\ No newline at end of file
vehicle/src/main/java/com/xinxincaravan/caravan/vehicle/mapper/BranchCompanyStockInfoMapper.java
View file @
5a8d6353
...
@@ -16,4 +16,6 @@ public interface BranchCompanyStockInfoMapper extends Mapper<BranchCompanyStockI
...
@@ -16,4 +16,6 @@ public interface BranchCompanyStockInfoMapper extends Mapper<BranchCompanyStockI
List
<
Integer
>
selectAllPrice
();
List
<
Integer
>
selectAllPrice
();
int
addCompamyList
(
@Param
(
"list"
)
List
<
BranchCompanyStockInfo
>
list
);
int
addCompamyList
(
@Param
(
"list"
)
List
<
BranchCompanyStockInfo
>
list
);
String
selectInfoById
(
Integer
id
);
}
}
\ No newline at end of file
vehicle/src/main/java/com/xinxincaravan/caravan/vehicle/rest/BranchCompanyStockController.java
View file @
5a8d6353
...
@@ -65,6 +65,15 @@ public class BranchCompanyStockController {
...
@@ -65,6 +65,15 @@ public class BranchCompanyStockController {
return
RestResponse
.
suc
(
branchCompanyStockService
.
selectById
(
id
));
return
RestResponse
.
suc
(
branchCompanyStockService
.
selectById
(
id
));
}
}
@GetMapping
(
"info/{id}"
)
public
RestResponse
getInfo
(
@PathVariable
(
"id"
)
Integer
id
)
{
if
(
id
==
null
)
{
return
RestResponse
.
codeAndMessage
(
ResCode
.
INVALID_REST_REQ_PARAM
.
getCode
(),
ResCode
.
INVALID_REST_REQ_PARAM
.
getDesc
());
}
return
RestResponse
.
suc
(
branchCompanyStockService
.
getInfoById
(
id
));
}
/**
/**
* 添加
* 添加
* @return
* @return
...
...
vehicle/src/main/java/com/xinxincaravan/caravan/vehicle/rest/CampsiteController.java
View file @
5a8d6353
...
@@ -7,6 +7,7 @@ import com.xinxincaravan.caravan.vehicle.biz.CampsiteBiz;
...
@@ -7,6 +7,7 @@ import com.xinxincaravan.caravan.vehicle.biz.CampsiteBiz;
import
com.xinxincaravan.caravan.vehicle.common.BaseController
;
import
com.xinxincaravan.caravan.vehicle.common.BaseController
;
import
com.xinxincaravan.caravan.vehicle.common.RestResponse
;
import
com.xinxincaravan.caravan.vehicle.common.RestResponse
;
import
com.xinxincaravan.caravan.vehicle.constant.ResCode.ResCode
;
import
com.xinxincaravan.caravan.vehicle.constant.ResCode.ResCode
;
import
com.xinxincaravan.caravan.vehicle.entity.BranchCompany
;
import
com.xinxincaravan.caravan.vehicle.entity.Campsite
;
import
com.xinxincaravan.caravan.vehicle.entity.Campsite
;
import
com.xinxincaravan.caravan.vehicle.feign.UserFeign
;
import
com.xinxincaravan.caravan.vehicle.feign.UserFeign
;
import
com.xinxincaravan.caravan.vehicle.feign.dto.UserDTO
;
import
com.xinxincaravan.caravan.vehicle.feign.dto.UserDTO
;
...
@@ -35,7 +36,6 @@ public class CampsiteController extends BaseController<CampsiteBiz> {
...
@@ -35,7 +36,6 @@ public class CampsiteController extends BaseController<CampsiteBiz> {
@Autowired
@Autowired
private
UserAuthConfig
userAuthConfig
;
private
UserAuthConfig
userAuthConfig
;
@IgnoreUserToken
@RequestMapping
(
value
=
"/page"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/page"
,
method
=
RequestMethod
.
GET
)
public
RestResponse
<
PageDataVo
<
Campsite
>>
page
(
@RequestParam
Integer
page
,
@RequestParam
Integer
limit
,
public
RestResponse
<
PageDataVo
<
Campsite
>>
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
,
...
@@ -44,6 +44,14 @@ public class CampsiteController extends BaseController<CampsiteBiz> {
...
@@ -44,6 +44,14 @@ public class CampsiteController extends BaseController<CampsiteBiz> {
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
<
Campsite
>>
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
<
Campsite
>>
getAll
()
{
public
RestResponse
<
List
<
Campsite
>>
getAll
()
{
return
RestResponse
.
data
(
baseBiz
.
getAll
());
return
RestResponse
.
data
(
baseBiz
.
getAll
());
...
...
vehicle/src/main/resources/mapper/BranchCompanyStockInfoMapper.xml
View file @
5a8d6353
...
@@ -36,6 +36,9 @@
...
@@ -36,6 +36,9 @@
<select
id=
"selectAllPrice"
resultType=
"int"
>
<select
id=
"selectAllPrice"
resultType=
"int"
>
select distinct price from branch_company_stock_info order by price
select distinct price from branch_company_stock_info order by price
</select>
</select>
<select
id=
"selectInfoById"
resultType=
"String"
>
select info from branch_company_stock_info where id = #{id}
</select>
<insert
id=
"addCompamyList"
parameterType=
"java.util.List"
>
<insert
id=
"addCompamyList"
parameterType=
"java.util.List"
>
insert into branch_company_stock_info (
insert into branch_company_stock_info (
...
...
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