zyy
2025-08-15 b25b5291764db80c79e24fd60c53d4b2d15640be
src/main/java/com/nq/service/impl/UserAssetsServices.java
@@ -101,7 +101,7 @@
    }
    @Override
    public ServerResponse updateUserAssets(Integer id, String amt,String type) {
    public ServerResponse updateUserAssets(Integer id, String amt,String type, String accectType) {
        UserAssets userAssets = userAssetsMapper.selectById(id);
        UserPosition userPosition = userPositionMapper.selectOne(new LambdaQueryWrapper<UserPosition>().gt(UserPosition::getAmountToBeCovered, BigDecimal.ZERO).eq(UserPosition::getUserId,userAssets.getUserId()));
        //  0 入款  1是扣钱  2 是充值  3 是提币
@@ -152,7 +152,7 @@
            }
        }else{
            if(type.equals("2")){
                return  userRechargeService.createOrder(userAssets.getUserId(),1,bigAmt.intValue(),"1");
                return  userRechargeService.createOrder(userAssets.getUserId(),1,bigAmt.intValue(),"1", accectType);
            }else{
                return ServerResponse.createBySuccess();
            }