Commit 506d77cb authored by libin's avatar libin

companybase

parent ef09f214
......@@ -32,7 +32,7 @@ public class BranchCompanyStockApplyInfoBiz extends BaseBiz<BranchCompanyStockAp
* @param applyVo
*/
public void apply(BranchCompanyStockApplyVo applyVo) {
BranchCompanyStockRight stockInfo = branchCompanyStockRightBiz.selectById(applyVo.getCompanyId());
BranchCompanyStockRight stockInfo = branchCompanyStockRightBiz.selectByCompanyId(applyVo.getCompanyId());
if (stockInfo == null) {
throw new BaseException(ResCode.BRANCH_COMPANY_STOCK_UNEXIST.getDesc(), ResCode.BRANCH_COMPANY_STOCK_UNEXIST.getCode());
}
......
......@@ -189,4 +189,12 @@ public class BranchCompanyStockRightBiz extends BaseBiz<BranchCompanyStockRightM
dataPage.setData(stockRights);
return dataPage;
}
public BranchCompanyStockRight selectByCompanyId(Integer companyId) {
BranchCompanyStockRight branchCompanyStockRight = new BranchCompanyStockRight();
branchCompanyStockRight.setCompanyBaseId(companyId);
branchCompanyStockRight.setIsDel(0);
BranchCompanyStockRight result = mapper.selectOne(branchCompanyStockRight);
return result;
}
}
......@@ -23,7 +23,7 @@ spring:
cloud:
nacos:
config:
server-addr: 127.0.0.1:8848,10.1.37.166:8848
server-addr: 127.0.0.1:8848
#共用配置,暂定一个
shared-dataids: common-dev.yaml,mongodb-log-dev.yaml
......
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