From a795d002d1d958a388f70f430daf788e7f769a4c Mon Sep 17 00:00:00 2001 From: Lemon Date: Fri, 9 Jun 2023 16:20:00 +0800 Subject: [PATCH] update --- .../pile/service/impl/CarVinInfoServiceImpl.java | 4 +--- .../resources/mapper/pile/CarVinInfoMapper.xml | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/CarVinInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/CarVinInfoServiceImpl.java index 40ded08e3..7326b101e 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/CarVinInfoServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/CarVinInfoServiceImpl.java @@ -153,9 +153,7 @@ public class CarVinInfoServiceImpl implements ICarVinInfoService { if (carVinInfo != null) { throw new BusinessException(ReturnCodeEnum.CODE_SELECT_INFO_IS_NULL); } - if (!StringUtils.equals("1", carVinInfo.getStatus())) { - throw new BusinessException("", ""); - } + carVinInfo = new CarVinInfo(); // 绑定操作 carVinInfo.setVinCode(dto.getVinCode()); carVinInfo.setStatus("1"); diff --git a/jsowell-pile/src/main/resources/mapper/pile/CarVinInfoMapper.xml b/jsowell-pile/src/main/resources/mapper/pile/CarVinInfoMapper.xml index b87a8c70c..88e9d1305 100644 --- a/jsowell-pile/src/main/resources/mapper/pile/CarVinInfoMapper.xml +++ b/jsowell-pile/src/main/resources/mapper/pile/CarVinInfoMapper.xml @@ -112,8 +112,18 @@