提现处理优化

This commit is contained in:
hupeng
2020-09-13 12:24:51 +08:00
parent c2c458eb5d
commit 61a104bf49

View File

@ -198,10 +198,13 @@ public class YxUserExtractServiceImpl extends BaseServiceImpl<YxUserExtractMappe
throw new BadRequestException("请选择审核状态");
}
if(!ShopCommonEnum.EXTRACT_0.getValue().equals(resources.getStatus())){
throw new BadRequestException("该申请已经处理过拉!");
if(ShopCommonEnum.EXTRACT_0.getValue().equals(resources.getStatus())){
throw new BadRequestException("请选择审核状态");
}
YxUserExtract userExtract = this.getById(resources.getId());
if(!ShopCommonEnum.EXTRACT_0.getValue().equals(userExtract.getStatus())){
throw new BadRequestException("该申请已经处理过啦!");
}
if(ShopCommonEnum.EXTRACT_MINUS_1.getValue().equals(resources.getStatus())){
if(StrUtil.isEmpty(resources.getFailMsg())){
throw new BadRequestException("请填写失败原因");