|
@@ -104,10 +104,10 @@ public class PartInfoServiceImpl extends BaseServiceImpl<PartInfoMapper, PartInf
|
|
|
if(exsitCount>0){
|
|
|
throw new BusinessException("名称已存在,请重新命名");
|
|
|
}
|
|
|
- Weekend<PartInfo> weekend = new Weekend<>(PartInfo.class);
|
|
|
- weekend.weekendCriteria().andIsNotNull(PartInfo::getId);
|
|
|
- Integer count = mapper.selectCountByExample(weekend);
|
|
|
- model.setNo(IdGeneratorUtils.getPartNo(++count));
|
|
|
+ //Weekend<PartInfo> weekend = new Weekend<>(PartInfo.class);
|
|
|
+ //weekend.weekendCriteria().andIsNotNull(PartInfo::getId);
|
|
|
+ //Integer count = mapper.selectCountByExample(weekend);
|
|
|
+ //model.setNo(IdGeneratorUtils.getPartNo(++count));
|
|
|
return super.saveModelByDTO(model);
|
|
|
}
|
|
|
|