|
@@ -228,7 +228,7 @@ public class BizAppointmentRecordServiceImpl extends ServiceImpl<BizAppointmentR
|
|
//校验车牌号是否添加过预约,排除11:已签收、 13:销售已审核 、 14:已取消
|
|
//校验车牌号是否添加过预约,排除11:已签收、 13:销售已审核 、 14:已取消
|
|
long count = this.count(new QueryWrapper<BizAppointmentRecord>().lambda().
|
|
long count = this.count(new QueryWrapper<BizAppointmentRecord>().lambda().
|
|
eq(BizAppointmentRecord::getLicenseNumber,bizAppointmentRecordAddParam.getLicenseNumber()).
|
|
eq(BizAppointmentRecord::getLicenseNumber,bizAppointmentRecordAddParam.getLicenseNumber()).
|
|
- notIn(BizAppointmentRecord::getStatus, "10","11", "13", "14","15"));
|
|
|
|
|
|
+ notIn(BizAppointmentRecord::getStatus, "10","11","12", "13", "14","15"));
|
|
if(count>0){
|
|
if(count>0){
|
|
throw new CommonException("车牌号:{}已经添加过预约!",bizAppointmentRecordAddParam.getLicenseNumber());
|
|
throw new CommonException("车牌号:{}已经添加过预约!",bizAppointmentRecordAddParam.getLicenseNumber());
|
|
}
|
|
}
|
|
@@ -287,7 +287,7 @@ public class BizAppointmentRecordServiceImpl extends ServiceImpl<BizAppointmentR
|
|
//校验车牌号是否添加过预约,排除11:已签收、 13:销售已审核 、 14:已取消
|
|
//校验车牌号是否添加过预约,排除11:已签收、 13:销售已审核 、 14:已取消
|
|
long count = this.count(new QueryWrapper<BizAppointmentRecord>().lambda().
|
|
long count = this.count(new QueryWrapper<BizAppointmentRecord>().lambda().
|
|
eq(BizAppointmentRecord::getLicenseNumber,bizAppointmentRecordEditParam.getLicenseNumber()).
|
|
eq(BizAppointmentRecord::getLicenseNumber,bizAppointmentRecordEditParam.getLicenseNumber()).
|
|
- notIn(BizAppointmentRecord::getStatus, "10","11", "13", "14","15"));
|
|
|
|
|
|
+ notIn(BizAppointmentRecord::getStatus, "10","11", "12", "13", "14","15"));
|
|
if(count>0){
|
|
if(count>0){
|
|
throw new CommonException("车牌号:{}已经添加过预约!",bizAppointmentRecordEditParam.getLicenseNumber());
|
|
throw new CommonException("车牌号:{}已经添加过预约!",bizAppointmentRecordEditParam.getLicenseNumber());
|
|
}
|
|
}
|