hfxc226 vor 2 Jahren
Ursprung
Commit
3a190e2989

+ 4 - 4
platform-service/src/main/java/com/platform/service/part/impl/PartInfoServiceImpl.java

@@ -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);
     }