Bläddra i källkod

try抛出异常,无需捕获

shasha 1 vecka sedan
förälder
incheckning
06cccdd9e1

+ 0 - 6
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizappointmentrecord/service/impl/BizAppointmentRecordServiceImpl.java

@@ -1701,8 +1701,6 @@ public class BizAppointmentRecordServiceImpl extends ServiceImpl<BizAppointmentR
                 bizChargeStation.setChargeStationUsedNumber(bizChargeStation.getChargeStationUsedNumber() + 1);
                 bizChargeStationService.updateById(bizChargeStation);
             }
-        } catch (Exception e) {
-
         } finally {
             lock.unlock();
         }
@@ -1742,8 +1740,6 @@ public class BizAppointmentRecordServiceImpl extends ServiceImpl<BizAppointmentR
             }
             // 执行删除
             this.removeByIds(CollStreamUtil.toList(bizAppointmentRecordIdParamList, BizAppointmentRecordIdParam::getId));
-        } catch (Exception e) {
-
         } finally {
             lock.unlock();
         }
@@ -1775,8 +1771,6 @@ public class BizAppointmentRecordServiceImpl extends ServiceImpl<BizAppointmentR
                 }
             }
 
-        } catch (Exception e) {
-
         } finally {
             lock.unlock();
         }