对比新文件 |
| | |
| | | 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.TransportCertProduct; |
| | | import com.gk.firework.Domain.TransportCertificatePerson; |
| | | import com.gk.firework.Mapper.TransportCertificatePersonMapper; |
| | | import com.gk.firework.Service.TransportCertificatePersonService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Service("transportCertificatePersonService") |
| | | public class TransportCertificatePersonServiceImpl extends ServiceImpl<TransportCertificatePersonMapper, TransportCertificatePerson> implements TransportCertificatePersonService { |
| | | |
| | | @Autowired |
| | | private TransportCertificatePersonMapper transportCertificatePersonMapper; |
| | | |
| | | /** |
| | | * @Description: 根据{运输证编码}删除押运人|驾驶人 |
| | | * @date 2021/4/2 15:07 |
| | | */ |
| | | @Override |
| | | public void deleteByCertificateCode(String code) { |
| | | transportCertificatePersonMapper.deleteByCertificateCode(code); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * @Description: 根据运输证号 查找押运人|驾驶人 |
| | | * @date 2021/4/25 17:27 |
| | | */ |
| | | @Override |
| | | public List<TransportCertificatePerson> selectProduct(String code) { |
| | | |
| | | LambdaQueryWrapper<TransportCertificatePerson> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(TransportCertificatePerson::getCertificatecode, code) |
| | | .eq(TransportCertificatePerson::getValidflag,true); |
| | | |
| | | return transportCertificatePersonMapper.selectList(queryWrapper); |
| | | } |
| | | } |