From 919e2989808dd97ba32b4478dbe95851c70fbce5 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期四, 05 十二月 2024 12:01:21 +0800
Subject: [PATCH] 账户功能优化 支持 按物业费和水电费扣费
---
service-fee/src/main/java/com/java110/fee/cmd/returnPayFee/UpdateReturnPayFeeCmd.java | 62 +++++++++++++++---------------
1 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/service-fee/src/main/java/com/java110/fee/cmd/returnPayFee/UpdateReturnPayFeeCmd.java b/service-fee/src/main/java/com/java110/fee/cmd/returnPayFee/UpdateReturnPayFeeCmd.java
index 39cae39..007dcc2 100644
--- a/service-fee/src/main/java/com/java110/fee/cmd/returnPayFee/UpdateReturnPayFeeCmd.java
+++ b/service-fee/src/main/java/com/java110/fee/cmd/returnPayFee/UpdateReturnPayFeeCmd.java
@@ -357,37 +357,37 @@
}
if ("1003".equals(param.getString("state"))) {
//绉垎璐︽埛鎶垫墸姣斾緥
- BigDecimal deductionProportion = new BigDecimal(CommunitySettingFactory.getValue(reqJson.getString("communityId"), DEDUCTION_PROPORTION));
- BigDecimal returnAmount1 = new BigDecimal(returnAmount);
- BigDecimal money = returnAmount1.multiply(deductionProportion);
- accountDto.setAcctType(AccountDto.ACCT_TYPE_INTEGRAL); //2004 绉垎璐︽埛
- List<AccountDto> accountDtos = accountInnerServiceSMOImpl.queryAccounts(accountDto);
- Assert.listOnlyOne(accountDtos, "鏌ヨ涓氫富绉垎璐︽埛閿欒锛�");
- BigDecimal amount = new BigDecimal(accountDtos.get(0).getAmount());
- BigDecimal newAmount = amount.add(money);
- AccountPo accountPo = new AccountPo();
- accountPo.setAcctId(accountDtos.get(0).getAcctId());
- accountPo.setAmount(String.valueOf(newAmount));
- int flag = accountInnerServiceSMOImpl.updateAccount(accountPo);
- if (flag < 1) {
- throw new IllegalArgumentException("鏇存柊涓氫富绉垎璐︽埛澶辫触锛�");
- }
- AccountDetailPo accountDetailPo = new AccountDetailPo();
- accountDetailPo.setDetailId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_detailId));
- accountDetailPo.setAcctId(accountDtos.get(0).getAcctId());
- accountDetailPo.setDetailType("1001"); //1001 杞叆 2002 杞嚭
- accountDetailPo.setRelAcctId("-1");
- accountDetailPo.setAmount(money.toString());
- accountDetailPo.setObjType("6006"); //6006 涓汉 7007 鍟嗘埛
- accountDetailPo.setObjId(ownerId);
- accountDetailPo.setOrderId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_orderId));
- accountDetailPo.setbId("-1");
- accountDetailPo.setRemark("绉垎璐︽埛閫�璐�");
- accountDetailPo.setCreateTime(new Date());
- int i = accountDetailInnerServiceSMOImpl.saveAccountDetails(accountDetailPo);
- if (i < 1) {
- throw new IllegalArgumentException("淇濆瓨涓氫富绉垎璐︽埛鏄庣粏澶辫触锛�");
- }
+// BigDecimal deductionProportion = new BigDecimal(CommunitySettingFactory.getValue(reqJson.getString("communityId"), DEDUCTION_PROPORTION));
+// BigDecimal returnAmount1 = new BigDecimal(returnAmount);
+// BigDecimal money = returnAmount1.multiply(deductionProportion);
+// accountDto.setAcctType(AccountDto.ACCT_TYPE_INTEGRAL); //2004 绉垎璐︽埛
+// List<AccountDto> accountDtos = accountInnerServiceSMOImpl.queryAccounts(accountDto);
+// Assert.listOnlyOne(accountDtos, "鏌ヨ涓氫富绉垎璐︽埛閿欒锛�");
+// BigDecimal amount = new BigDecimal(accountDtos.get(0).getAmount());
+// BigDecimal newAmount = amount.add(money);
+// AccountPo accountPo = new AccountPo();
+// accountPo.setAcctId(accountDtos.get(0).getAcctId());
+// accountPo.setAmount(String.valueOf(newAmount));
+// int flag = accountInnerServiceSMOImpl.updateAccount(accountPo);
+// if (flag < 1) {
+// throw new IllegalArgumentException("鏇存柊涓氫富绉垎璐︽埛澶辫触锛�");
+// }
+// AccountDetailPo accountDetailPo = new AccountDetailPo();
+// accountDetailPo.setDetailId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_detailId));
+// accountDetailPo.setAcctId(accountDtos.get(0).getAcctId());
+// accountDetailPo.setDetailType("1001"); //1001 杞叆 2002 杞嚭
+// accountDetailPo.setRelAcctId("-1");
+// accountDetailPo.setAmount(money.toString());
+// accountDetailPo.setObjType("6006"); //6006 涓汉 7007 鍟嗘埛
+// accountDetailPo.setObjId(ownerId);
+// accountDetailPo.setOrderId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_orderId));
+// accountDetailPo.setbId("-1");
+// accountDetailPo.setRemark("绉垎璐︽埛閫�璐�");
+// accountDetailPo.setCreateTime(new Date());
+// int i = accountDetailInnerServiceSMOImpl.saveAccountDetails(accountDetailPo);
+// if (i < 1) {
+// throw new IllegalArgumentException("淇濆瓨涓氫富绉垎璐︽埛鏄庣粏澶辫触锛�");
+// }
}
--
Gitblit v1.8.0