对比新文件 |
| | |
| | | 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); |
| | | } |
| | | |
| | | |
| | | } |