|
@@ -28,8 +28,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
-import java.math.BigDecimal;
|
|
|
|
|
-import java.text.DecimalFormat;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 结算管理app
|
|
* 结算管理app
|
|
@@ -120,12 +118,12 @@ public class SettlementAppController extends BaseWebController {
|
|
|
VaultsResponse<GroupLeaderDTO> vaultsResponse = customerFeignClient.getGroupLeaderById(groupLeaderParams);
|
|
VaultsResponse<GroupLeaderDTO> vaultsResponse = customerFeignClient.getGroupLeaderById(groupLeaderParams);
|
|
|
GroupLeaderDTO groupLeaderDTO = vaultsResponse.getData();
|
|
GroupLeaderDTO groupLeaderDTO = vaultsResponse.getData();
|
|
|
|
|
|
|
|
- if(groupLeaderDTO.getRemainedAmt()>=dto.getAmount()){
|
|
|
|
|
|
|
+ /* if(groupLeaderDTO.getRemainedAmt()>=dto.getAmount()){
|
|
|
DecimalFormat df = new DecimalFormat("#0.00");
|
|
DecimalFormat df = new DecimalFormat("#0.00");
|
|
|
return VaultsResponse.failed("留存保证金为:"+new BigDecimal(df.format(groupLeaderDTO.getRemainedAmt() / 100.0))+"元,可提现金额不足");
|
|
return VaultsResponse.failed("留存保证金为:"+new BigDecimal(df.format(groupLeaderDTO.getRemainedAmt() / 100.0))+"元,可提现金额不足");
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
|
|
- dto.setAmount(dto.getAmount()-groupLeaderDTO.getRemainedAmt());
|
|
|
|
|
|
|
+ dto.setAmount(dto.getAmount());
|
|
|
return splitService.withdraw(dto);
|
|
return splitService.withdraw(dto);
|
|
|
}
|
|
}
|
|
|
|
|
|