cuikaidong
2025-05-26 7c77e020b81e42fb65aa966742ff7c93e73668e1
lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/aspect/EquipmentHistoryLogAspect.java
@@ -7,10 +7,7 @@
import org.aspectj.lang.annotation.*;
import org.aspectj.lang.reflect.MethodSignature;
import org.jeecg.modules.eam.aspect.annotation.EquipmentHistoryLog;
import org.jeecg.modules.eam.constant.EquipmentOperationTagEnum;
import org.jeecg.modules.eam.constant.InspectionStatus;
import org.jeecg.modules.eam.constant.ReportRepairEnum;
import org.jeecg.modules.eam.constant.WeekMaintenanceStatusEnum;
import org.jeecg.modules.eam.constant.*;
import org.jeecg.modules.eam.entity.*;
import org.jeecg.modules.eam.service.IEamEquipmentHistoryLogService;
import org.springframework.beans.factory.annotation.Autowired;
@@ -114,6 +111,16 @@
                    log.setCreateTime(repair.getFaultStartTime());
                }
                break;
            /**
             * 航宇救生项目
             *
             *
             *
             *
             *
             *
             *
             */
            case REPAIRED:
                if (result instanceof EamRepairOrder) {
                    EamRepairOrder order = (EamRepairOrder) result;
@@ -139,6 +146,16 @@
            case UNSEALED:
                break;
            case TRANSFERRED:
                if (result instanceof EamEquipmentTransfer) {
                    EamEquipmentTransfer order = (EamEquipmentTransfer) result;
                    if (EquipmentTransferStatusEnum.COMPLETE.name().equals(order.getTransferStatus())) {
                        log.setEquipmentId(order.getEquipmentId());
                        log.setBusinessId(order.getId());
                        log.setOperator(order.getReportUser());
                        log.setDescription(order.getTransferReason());
                        log.setCreateTime(order.getTransferTime());
                    }
                }
                break;
            case SCRAPPED:
                break;