|
@@ -199,7 +199,7 @@ public class AssetServiceImpl extends ServiceImpl<AssetMapper, Asset> implements
|
|
|
*/
|
|
|
@Override
|
|
|
public void withdraw(Long userId, Integer type, BigDecimal amount) {
|
|
|
- if(amount.compareTo(new BigDecimal("1.00")) <= 0){
|
|
|
+ if(amount.compareTo(new BigDecimal("1.00")) < 0){
|
|
|
throw new ResourceUnavailableException("提现金额不能少于1元");
|
|
|
}
|
|
|
Long withdrawId = transferWithdrawService.createTransferWithdraw(userId, type, amount, 1, 0);
|