判重问题修复

This commit is contained in:
SGK\17962 2025-10-14 14:42:08 +08:00
parent 8b7efd3e2c
commit 78a77537b7

View File

@ -355,7 +355,7 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
MpsTraffic traffic = new MpsTraffic();
traffic.setTrafficNo(mpsTraffic.getTrafficNo());
LambdaQueryWrapper<MpsTraffic> lqw1 = new LambdaQueryWrapper<>(traffic);
lqw1.eq( MpsTraffic::getTrafficNo, mpsTraffic.getTrafficNo());
lqw1.ne(mpsTraffic.getId() != null, MpsTraffic::getId, mpsTraffic.getId());
List<MpsTrafficVo> result1 = TrafficMapper.selectVoList(lqw1);
if (!result1.isEmpty()) {
throw new ServiceException("该代缴交警罚没款已存在,编号:"+mpsTraffic.getTrafficNo());