k94314517
2024-05-30 7673755cb8f1b4160ad2a6ffd79ea3fc7e25e7eb
server/system_service/src/main/java/com/doumee/core/utils/Constants.java
@@ -416,9 +416,35 @@
    int cityUseCar = 3;//市内用车
    int unCityUseCar = 4;//市外用车
    int logisticsCarUse = 5;//物流车预约
}
public static Integer  approveTypeToNoticeType(Integer approveType){
    if(Constants.equalsInteger(approveType,Constants.approveObjectType.unConstructionVisit)
            ||Constants.equalsInteger(approveType,Constants.approveObjectType.constructionVisit)){
        return Constants.noticesObjectType.visit;
    }else if(Constants.equalsInteger(approveType,Constants.approveObjectType.visitReporting)){
        return Constants.noticesObjectType.visitReporting;
    }else if(Constants.equalsInteger(approveType,Constants.approveObjectType.cityUseCar)
            ||Constants.equalsInteger(approveType,Constants.approveObjectType.unCityUseCar)){
        return Constants.noticesObjectType.useCar;
    }else {
        return Constants.noticesObjectType.system;
    }
}
    public interface  noticesObjectType{
    int visit = 0;//访客申请
    int visitReporting = 1;//访客报备
    int useCar = 2;//用车申请
    int dangerDeal = 3;//隐患处理
    int logisticsCarUse = 4;//物流车审批
    int system = 5;//系统消息
}
public interface  approveStatus{
@@ -426,8 +452,8 @@
    int auditIng = 1;//审批中
    int pass = 2;//审批通过
    int unPass = 3;//审批未通过
    int otherDeal = 4;//他人已处理
    int cancel = 5;//已取消
    int cancel = 4;//已取消
    int otherDeal = 5;//他人已处理
    int otherUnPass = 6;//他人拒绝
}
@@ -568,6 +594,8 @@
        return reqJson;
    }
    public  enum NoticeType {
        ZERO(0, "待审核","","","待审核","待处理","处理中"),