郑永安
2023-06-19 59e91a4e9ddaf23cebb12993c774aa899ab22d16
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
37
package com.gk.firework.Service.ServiceImpl;
 
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gk.firework.Domain.TransportCertificateProduct;
import com.gk.firework.Mapper.TransportCertificateProductMapper;
import com.gk.firework.Service.TransportCertificateProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service("transportCertificateProductService")
public class TransportCertificateProductSeriveImpl extends ServiceImpl<TransportCertificateProductMapper, TransportCertificateProduct> implements TransportCertificateProductService {
 
    @Autowired
    private TransportCertificateProductMapper transportCertificateProductMapper;
 
    /**
    * @Description: 根据{运输证编号} 删除产品
    * @date 2021/4/2 15:15
    */
    @Override
    public void deleteByCertificateCode(String code) {
        transportCertificateProductMapper.deleteByCertificateCode(code);
    }
 
    @Override
    public List<TransportCertificateProduct> getListByTransportCode(String code) {
        LambdaQueryWrapper<TransportCertificateProduct> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(TransportCertificateProduct::getCertificatecode, code)
                .eq(TransportCertificateProduct::getValidflag,true);
        return transportCertificateProductMapper.selectList(queryWrapper);
    }
 
 
}