Commit f818f191 authored by youjj's avatar youjj

添加股权详情信息

parent 108fdb1b
...@@ -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);
}
} }
...@@ -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
...@@ -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
...@@ -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
......
...@@ -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 (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment