mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
Merge branch 'dev' of http://192.168.2.2:8099/jsowell/jsowell-charger-web into dev
This commit is contained in:
@@ -147,6 +147,8 @@ public enum ReturnCodeEnum {
|
||||
CODE_THIS_CARD_BIND_INFO_ERROR("00600006", "卡绑定信息有误!"),
|
||||
|
||||
CODE_SELECT_INFO_IS_NULL("00700001", "查询信息为空!"),
|
||||
|
||||
CODE_THIS_VIN_HAS_BEEN_BINDING("00700002", "该vin已被绑定,请检查!"),
|
||||
;
|
||||
|
||||
private String value;
|
||||
|
||||
@@ -150,7 +150,7 @@ public class CarVinInfoServiceImpl implements ICarVinInfoService {
|
||||
// }
|
||||
// 判断此vin号码是否已被绑定
|
||||
CarVinInfo carVinInfo = carVinInfoMapper.selectVinInfoByVin(dto.getVinCode());
|
||||
if (carVinInfo == null) {
|
||||
if (carVinInfo != null) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_SELECT_INFO_IS_NULL);
|
||||
}
|
||||
if (!StringUtils.equals("1", carVinInfo.getStatus())) {
|
||||
|
||||
Reference in New Issue
Block a user