gxt-order-score-entity-class-diagram.md 7.3 KB

工单评分管理实体类图

1. 核心实体类关系图

classDiagram
    class OrderScoreInfo {
        +Integer orderType
        +Long id
        +String workOrderProjectNo
        +String workOrderStatus
        +String scoringStatus
        +String workSummary
        +String maintenanceType
        +String inspectionType
        +BigDecimal itemCompletionFactor
        +BigDecimal itemCompletionFactorSum
        +Integer reviewScoreNum
        +BigDecimal finalCoefficient
        +Integer confirmStatus
        +String feedbackReason
        +String appealReason
        +List~OrderScorePerson~ scorePersonList
        +BigDecimal myScore
        +Date createTime
        +Date updateTime
    }
    
    class OrderScorePerson {
        +Long id
        +Long userId
        +String nickName
        +String userName
        +Double selfScore
        +Double reviewScore
        +Double finalScore
        +Integer isLeader
        +String feedbackReason
        +Integer confirmStatus
    }
    
    OrderScoreInfo "1" --> "0..*" OrderScorePerson : contains

2. 工单实体类图

classDiagram
    class GxtRepairOrder {
        +Long id
        +String workOrderProjectNo
        +String workOrderStatus
        +Long gxtCenterId
        +String gxtCenter
        +Long pcsStationId
        +String pcsStationName
        +Long pcsDeviceId
        +String pcsDeviceName
        +String brand
        +String model
        +String faultCode
        +Date occurTime
        +String assignUserName
        +Date assignTime
        +String acceptUserName
        +Date acceptTime
        +String teamLeaderName
        +Date realStartTime
        +Date realEndTime
        +String content
        +BigDecimal planHour
        +String priorityType
        +BigDecimal score
        +String reviewContent
        +String maintenanceType
        +String suspendReason
        +String rejectionReason
        +Date restartTime
        +String scoringStatus
        +Integer reviewScoreNum
        +BigDecimal finalCoefficient
        +Long orderType
    }
    
    class GxtWorkOrder {
        +Long id
        +String workOrderProjectNo
        +String workOrderStatus
        +Long gxtCenterId
        +String gxtCenter
        +Long pcsStationId
        +Long pcsStationPid
        +String pcsStationName
        +Long pcsDeviceId
        +String pcsDeviceName
        +String brand
        +String model
        +String inspectionType
        +String misNo
        +Date planStartTime
        +Date planEndTime
        +Date assignTime
        +String assignUserName
        +String acceptUserName
        +Date acceptTime
        +String teamLeaderName
        +Date realStartTime
        +Date realEndTime
        +String suspendReason
        +Date suspendTime
        +String rejectionReason
        +String pauseReason
        +Date pauseTime
        +Date restartTime
        +Date completeTime
        +BigDecimal planHour
        +String content
        +String realContent
        +String faultCode
        +String faultDesc
        +Long orderType
        +Long priorityType
        +BigDecimal score
        +String reviewContent
    }
    
    class GxtRepairOrderPerson {
        +Long id
        +Long userId
        +String nickName
        +Long orderId
        +String orderCode
        +Integer status
        +String userName
        +Double selfScore
        +Double reviewScore
        +Double finalScore
        +Integer isLeader
        +String feedbackReason
        +Integer confirmStatus
        +String monthPeriod
        +BigDecimal score
    }
    
    class GxtWorkOrderPerson {
        +Long id
        +Long userId
        +String nickName
        +Long orderId
        +String orderCode
        +Integer status
        +String misNo
        +String userName
        +Double selfScore
        +Double reviewScore
        +Double finalScore
        +Integer isLeader
        +String feedbackReason
        +Integer confirmStatus
        +String monthPeriod
        +BigDecimal score
    }
    
    GxtRepairOrder "1" --> "0..*" GxtRepairOrderPerson : contains
    GxtWorkOrder "1" --> "0..*" GxtWorkOrderPerson : contains

3. 流程记录实体类图

classDiagram
    class GxtRepairOrderFlow {
        +Long id
        +Long orderId
        +String orderCode
        +String actionType
        +String fromStatus
        +String toStatus
        +String fromScoreStatus
        +String toScoreStatus
        +Long operatorId
        +String operatorName
        +Date actionTime
        +String actionRemark
    }
    
    class GxtWorkOrderFlow {
        +Long id
        +Long orderId
        +String orderCode
        +String actionType
        +String fromStatus
        +String toStatus
        +String fromScoreStatus
        +String toScoreStatus
        +Long operatorId
        +String operatorName
        +Date actionTime
        +String actionRemark
    }

4. 月度统计相关实体类图

classDiagram
    class GxtMonthScore {
        +Long id
        +Long deptId
        +String deptName
        +String monthPeriod
        +Integer status
        +Long persionId
    }
    
    class GxtUserScore {
        +Long id
        +Long monthScoreId
        +String userName
        +String monthPeriod
        +BigDecimal repairTotalScore
        +BigDecimal maintenanceTotalScore
        +BigDecimal finalScore
        +Integer status
    }
    
    class GxtMonthRepairProject {
        +Long id
        +Long monthScoreId
        +Long deptId
        +String deptName
        +String maintenanceType
        +String monthPeriod
        +Integer orderCount
        +BigDecimal projectScore
        +BigDecimal calculatedScore
        +Integer status
    }
    
    class GxtMonthFanInspection {
        +Long id
        +Long monthScoreId
        +Long deptId
        +String deptName
        +String model
        +Long inspectionTypeId
        +String inspectionTypeName
        +String monthPeriod
        +Integer deviceCount
        +BigDecimal fanInspectionScore
        +BigDecimal calculatedScore
        +Integer status
    }
    
    GxtMonthScore "1" --> "0..*" GxtUserScore : contains
    GxtMonthScore "1" --> "0..*" GxtMonthRepairProject : contains
    GxtMonthScore "1" --> "0..*" GxtMonthFanInspection : contains

5. 实体间关系汇总图

classDiagram
    class OrderScoreInfo {
        <<DTO>>
    }
    
    class OrderScorePerson {
        <<DTO>>
    }
    
    class GxtRepairOrder {
        <<Entity>>
    }
    
    class GxtWorkOrder {
        <<Entity>>
    }
    
    class GxtRepairOrderPerson {
        <<Entity>>
    }
    
    class GxtWorkOrderPerson {
        <<Entity>>
    }
    
    class GxtRepairOrderFlow {
        <<Entity>>
    }
    
    class GxtWorkOrderFlow {
        <<Entity>>
    }
    
    class GxtMonthScore {
        <<Entity>>
    }
    
    class GxtUserScore {
        <<Entity>>
    }
    
    class GxtMonthRepairProject {
        <<Entity>>
    }
    
    class GxtMonthFanInspection {
        <<Entity>>
    }
    
    OrderScoreInfo "1" --> "0..*" OrderScorePerson : contains
    GxtRepairOrder "1" --> "0..*" GxtRepairOrderPerson : contains
    GxtWorkOrder "1" --> "0..*" GxtWorkOrderPerson : contains
    GxtMonthScore "1" --> "0..*" GxtUserScore : contains
    GxtMonthScore "1" --> "0..*" GxtMonthRepairProject : contains
    GxtMonthScore "1" --> "0..*" GxtMonthFanInspection : contains