Commit 69eacd10 authored by tangf's avatar tangf

保存资金流水和商户余额MQ拆分

parent b873014e
...@@ -84,10 +84,25 @@ public class FinanceController { ...@@ -84,10 +84,25 @@ public class FinanceController {
return financeService.withdrawalBack(req); return financeService.withdrawalBack(req);
} }
/**
* 转账
* @param req
* @return
*/
// @RequestMapping(value = "/divideSettlment")
// public ResponseResult<String> divideSettlment(@RequestBody OrderMoneyDetailReqVo req) {
// CheckerHelper.newInstance()
// .notBlankCheck("id", req.getId())
// .checkException();
// return financeService.divideSettlement(req);
// }
@RequestMapping(value = "findCompanyMoneyList") @RequestMapping(value = "findCompanyMoneyList")
@ApiOperation(value = "找到公司资金汇总列表", notes = "返回公司资金汇总列表") @ApiOperation(value = "找到公司资金汇总列表", notes = "返回公司资金汇总列表")
public ResponseResult<CompanyMoneyTotalResVo> findCompanyMoneyList(@RequestBody CompanyMoneyReqVo req){ public ResponseResult<CompanyMoneyTotalResVo> findCompanyMoneyList(@RequestBody CompanyMoneyReqVo req){
return ResponseResult.result(companyMoneyService.findCompanyMoney(req)); return ResponseResult.result(companyMoneyService.findCompanyMoney(req));
} }
} }
...@@ -193,9 +193,7 @@ public class FinanceServiceImpl implements FinanceService { ...@@ -193,9 +193,7 @@ public class FinanceServiceImpl implements FinanceService {
if (StringHelper.isEmpty(companyVo)) { if (StringHelper.isEmpty(companyVo)) {
throw new CodeException("未找到公司信息"); throw new CodeException("未找到公司信息");
} }
double oldMoney = companyVo.getWithdrawTotalCash() - money; double oldMoney = companyVo.getWithdrawTotalCash() - money;
// 添加资金流水 // 添加资金流水
CapitalFlowReqVo capitalFlowReqVo = new CapitalFlowReqVo(); CapitalFlowReqVo capitalFlowReqVo = new CapitalFlowReqVo();
capitalFlowReqVo.setOrderId(req.getOrderId()); capitalFlowReqVo.setOrderId(req.getOrderId());
...@@ -281,4 +279,7 @@ public class FinanceServiceImpl implements FinanceService { ...@@ -281,4 +279,7 @@ public class FinanceServiceImpl implements FinanceService {
} }
} }
} }
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