|
@ -80,7 +80,7 @@ public class IcPlaceOrgServiceImpl extends BaseServiceImpl<IcPlaceOrgDao, IcPlac |
|
|
public void edit(EditPlaceOrgFormDTO formDTO) { |
|
|
public void edit(EditPlaceOrgFormDTO formDTO) { |
|
|
IcPlaceOrgEntity entity = baseDao.selectById(formDTO.getPlaceOrgId()); |
|
|
IcPlaceOrgEntity entity = baseDao.selectById(formDTO.getPlaceOrgId()); |
|
|
if (null == entity) { |
|
|
if (null == entity) { |
|
|
throw new RenException(String.format("修改九小场所下组织信息失败,场所信息不存在,场所Id->%s", formDTO.getPlaceOrgId())); |
|
|
throw new RenException(String.format("修改九小场所下场所信息失败,场所不存在,场所Id->%s", formDTO.getPlaceOrgId())); |
|
|
} |
|
|
} |
|
|
entity = ConvertUtils.sourceToTarget(formDTO, IcPlaceOrgEntity.class); |
|
|
entity = ConvertUtils.sourceToTarget(formDTO, IcPlaceOrgEntity.class); |
|
|
entity.setId(formDTO.getPlaceOrgId()); |
|
|
entity.setId(formDTO.getPlaceOrgId()); |
|
@ -95,7 +95,7 @@ public class IcPlaceOrgServiceImpl extends BaseServiceImpl<IcPlaceOrgDao, IcPlac |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public void del(String placeOrgId) { |
|
|
public void del(String placeOrgId) { |
|
|
if (baseDao.deleteById(placeOrgId) < NumConstant.ONE) { |
|
|
if (baseDao.deleteById(placeOrgId) < NumConstant.ONE) { |
|
|
throw new RenException(String.format("修改九小场所下组织信息删除失败,场所Id->%s", placeOrgId)); |
|
|
throw new RenException(String.format("删除九小场所下场所信息失败,场所Id->%s", placeOrgId)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|