1
zj
5 days ago b42c0777927e79bc77996b508a534ee4e56fd4c2
trading-order-service/src/main/java/com/yami/trading/service/impl/RealNameAuthRecordServiceImpl.java
@@ -7,6 +7,8 @@
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.trading.bean.model.HighLevelAuthRecord;
import com.yami.trading.bean.model.RealNameAuthRecord;
import com.yami.trading.bean.model.User;
import com.yami.trading.common.exception.YamiShopBindException;
import com.yami.trading.dao.user.RealNameAuthRecordMapper;
import com.yami.trading.service.RealNameAuthRecordService;
import org.apache.ibatis.annotations.Param;
@@ -37,6 +39,19 @@
    }
    @Override
    public void requireApproved(User user, boolean skipSimAccount) {
        if (user == null) {
            throw new YamiShopBindException("The user does not exist.\n");
        }
        if (skipSimAccount && user.getAccountType() != null && user.getAccountType() == 1) {
            return;
        }
        if (!isPass(user.getUserId())) {
            throw new YamiShopBindException("Please complete real-name verification first.");
        }
    }
    @Override
    public long waitCount(List<String> userIds) {
      LambdaQueryWrapper<RealNameAuthRecord>  lambdaQueryWrapper= Wrappers.<RealNameAuthRecord>query().lambda().eq(RealNameAuthRecord::getStatus,1);