| | |
| | | import com.thhy.secure.modules.biz.regionInspection.entity.RegionInspectionUserEntity; |
| | | import com.thhy.secure.modules.biz.regionInspection.mapper.RegionInspectionMapper; |
| | | import com.thhy.secure.modules.biz.regionInspection.service.RegionInspectionService; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | //默认给uuid |
| | | String regionInspectId = UUIDUtils.create(); |
| | | //修改区域巡检判断 |
| | | if (!"".equals(regionInspectionEntity.getId())){ |
| | | if (StringUtils.isNotBlank(regionInspectionEntity.getId())){ |
| | | regionInspectId = regionInspectionEntity.getId(); |
| | | //根据区域巡检id删除中间表 |
| | | regionInspectionEntity.setUpdateTime(new Date()); |
| | |
| | | |
| | | @Override |
| | | public BasicResult delete(String id) { |
| | | regionInspectionMapper.delete(id); |
| | | regionInspectionMapper.deleteUser(id); |
| | | regionInspectionMapper.deleteInspectionHazardInform(id); |
| | | return BasicResult.success(); |
| | | } |
| | | |