jiangqs
2023-04-29 28e19d6740469ad5c2d1061faa07d29cd9520a13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.ruoyi.system.service.impl.shop;
 
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.ruoyi.system.domain.pojo.shop.ShopCertificate;
import com.ruoyi.system.mapper.shop.ShopCertificateMapper;
import com.ruoyi.system.service.shop.ShopCertificateService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * <p>
 * 商户证书 服务实现类
 * </p>
 *
 * @author jqs
 * @since 2023-04-25
 */
@Service
public class ShopCertificateServiceImpl extends ServiceImpl<ShopCertificateMapper, ShopCertificate> implements ShopCertificateService {
 
    /**
     * 通过商户id获取商户证书
     * @param shopId
     * @return
     */
    @Override
    public List<ShopCertificate> listShopCertificateByShopId(Long shopId){
        LambdaQueryWrapper<ShopCertificate> queryWrapper = Wrappers.lambdaQuery();
        queryWrapper.eq(ShopCertificate::getDelFlag, 0).eq(ShopCertificate::getShopId, shopId).eq(ShopCertificate::getCerStatus,1);
        return this.list(queryWrapper);
    }
 
}