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
f818f191
Commit
f818f191
authored
May 16, 2019
by
youjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加股权详情信息
parent
108fdb1b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
0 deletions
+23
-0
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
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 @
f818f191
...
@@ -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 @
f818f191
...
@@ -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 @
f818f191
...
@@ -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 @
f818f191
...
@@ -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/resources/mapper/BranchCompanyStockInfoMapper.xml
View file @
f818f191
...
@@ -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