songhuangfeng123
2022-08-05 d887d1db33d88948c71c5af670033382079bb250
emergency/emergency-service/src/main/java/com/gkhy/safePlatform/emergency/service/impl/EmergencySuppliesServiceImpl.java
@@ -6,7 +6,6 @@
import com.gkhy.safePlatform.commons.enums.ResultCodes;
import com.gkhy.safePlatform.commons.query.PageQuery;
import com.gkhy.safePlatform.commons.utils.BeanCopyUtils;
import com.gkhy.safePlatform.commons.utils.StringUtils;
import com.gkhy.safePlatform.commons.vo.ResultVO;
import com.gkhy.safePlatform.commons.vo.SearchResultVO;
import com.gkhy.safePlatform.emergency.entity.*;
@@ -33,6 +32,13 @@
    @Autowired
    private EmergencySuppliesInfoService emergencySuppliesInfoService;
    @Autowired
    private EmergencySuppliesInspectInfoService emergencySuppliesInspectInfoService;
    @Autowired
    private EmergencySuppliesMaintainInfoService emergencySuppliesMaintainInfoService;
    @DubboReference(check = false)
    private AccountDepartmentService accountDepartmentService;
@@ -145,6 +151,12 @@
        }else{
            Long SuppliesId = emergencySuppliesInfoDetailDO.getId();
            emergencySuppliesInfoService.deleteEmergencySupplies(SuppliesId);
            // 删除保养记录
            emergencySuppliesMaintainInfoService.deleteBySuppliesId(id);
            // 删除检查记录
            emergencySuppliesInspectInfoService.deleteBySuppliesId(id);
        }
    }
}