Commit 69eacd10 authored by tangf's avatar tangf

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

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