Commit 51173730 authored by shanqiyun's avatar shanqiyun

bug

parent 44510002
...@@ -51,7 +51,7 @@ public class AccidentTypeServiceImpl implements IAccidentTypeService { ...@@ -51,7 +51,7 @@ public class AccidentTypeServiceImpl implements IAccidentTypeService {
private void checkBeforeDet(Long id) { private void checkBeforeDet(Long id) {
List<RiskFactor> list = iRiskFactorDao.findByAccidentTypeId(id); List<RiskFactor> list = iRiskFactorDao.findByAccidentTypeId(id);
if(null != list && list.size()>0){ if(null != list && list.size()>0){
throw new YeeException("危险因素"+list.get(0).getName()+"在使用中,不能删除"); throw new YeeException(list.get(0).getName()+"在使用中,不能删除");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment