Commit f818f191 authored by youjj's avatar youjj

添加股权详情信息

parent 108fdb1b
......@@ -285,4 +285,8 @@ public class BranchCompanyStockService {
}
return RestResponse.suc();
}
public String getInfoById(Integer id) {
return branchCompanyStockInfoMapper.selectInfoById(id);
}
}
......@@ -40,4 +40,9 @@ public class BranchCompanyStockInfo {
private String companyPic;
/**
* 详情
*/
private String info;
}
\ No newline at end of file
......@@ -16,4 +16,6 @@ public interface BranchCompanyStockInfoMapper extends Mapper<BranchCompanyStockI
List<Integer> selectAllPrice();
int addCompamyList(@Param("list") List<BranchCompanyStockInfo> list);
String selectInfoById(Integer id);
}
\ No newline at end of file
......@@ -65,6 +65,15 @@ public class BranchCompanyStockController {
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
......
......@@ -36,6 +36,9 @@
<select id="selectAllPrice" resultType="int">
select distinct price from branch_company_stock_info order by price
</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 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