Просмотр исходного кода

完善账户提现扣款和预存

shiyj1101 лет назад: 5
Родитель
Сommit
9f9cdefc3d

+ 2 - 1
service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/ISaveAccountWithdrawalApplyBMO.java

@@ -1,5 +1,6 @@
 package com.java110.acct.bmo.accountWithdrawalApply;
 
+import com.alibaba.fastjson.JSONObject;
 import com.java110.po.accountWithdrawalApply.AccountWithdrawalApplyPo;
 import org.springframework.http.ResponseEntity;
 public interface ISaveAccountWithdrawalApplyBMO {
@@ -11,7 +12,7 @@ public interface ISaveAccountWithdrawalApplyBMO {
      * @param accountWithdrawalApplyPo
      * @return
      */
-    ResponseEntity<String> save(AccountWithdrawalApplyPo accountWithdrawalApplyPo,String userId);
+    ResponseEntity<String> save(AccountWithdrawalApplyPo accountWithdrawalApplyPo, String userId);
 
 
 }

+ 1 - 0
service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/IUpdateAccountWithdrawalApplyBMO.java

@@ -1,4 +1,5 @@
 package com.java110.acct.bmo.accountWithdrawalApply;
+import com.alibaba.fastjson.JSONObject;
 import com.java110.po.accountWithdrawalApply.AccountWithdrawalApplyPo;
 import org.springframework.http.ResponseEntity;
 

+ 2 - 2
service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/SaveAccountWithdrawalApplyBMOImpl.java

@@ -1,5 +1,6 @@
 package com.java110.acct.bmo.accountWithdrawalApply.impl;
 
+import com.alibaba.fastjson.JSONObject;
 import com.java110.acct.bmo.accountWithdrawalApply.ISaveAccountWithdrawalApplyBMO;
 import com.java110.core.annotation.Java110Transactional;
 import com.java110.core.factory.GenerateCodeFactory;
@@ -34,7 +35,7 @@ public class SaveAccountWithdrawalApplyBMOImpl implements ISaveAccountWithdrawal
      * @return 订单服务能够接受的报文
      */
     @Java110Transactional
-    public ResponseEntity<String> save(AccountWithdrawalApplyPo accountWithdrawalApplyPo,String userId) {
+    public ResponseEntity<String> save(AccountWithdrawalApplyPo accountWithdrawalApplyPo, String userId) {
 
 
         UserDto userDto = new UserDto();
@@ -52,7 +53,6 @@ public class SaveAccountWithdrawalApplyBMOImpl implements ISaveAccountWithdrawal
             accountDetailPo.setAcctId( accountWithdrawalApplyPo.getAcctId() );
             accountDetailPo.setAmount( accountWithdrawalApplyPo.getAmount() );
             accountDetailPo.setRemark( accountWithdrawalApplyPo.getContext() );
-            accountDetailPo.setObjId( accountWithdrawalApplyPo.getApplyId() );
             //调用扣款接口进行扣款
             int acctflag = accountInnerServiceSMOImpl.withholdAccount( accountDetailPo );
             if (acctflag < 1) {

+ 1 - 1
service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/UpdateAccountWithdrawalApplyBMOImpl.java

@@ -1,5 +1,6 @@
 package com.java110.acct.bmo.accountWithdrawalApply.impl;
 
+import com.alibaba.fastjson.JSONObject;
 import com.java110.acct.bmo.accountWithdrawalApply.IUpdateAccountWithdrawalApplyBMO;
 import com.java110.core.annotation.Java110Transactional;
 
@@ -43,7 +44,6 @@ public class UpdateAccountWithdrawalApplyBMOImpl implements IUpdateAccountWithdr
                     accountDetailPo.setAcctId( WithdrawalApplyDto.getAcctId() );
                     accountDetailPo.setAmount( WithdrawalApplyDto.getAmount() );
                     accountDetailPo.setRemark( accountWithdrawalApplyPo.getContext() );
-                    accountDetailPo.setObjId( accountWithdrawalApplyPo.getApplyId() );
                     accountInnerServiceSMOImpl.prestoreAccount( accountDetailPo );
             }
         }