| | |
| | | package com.doumee.core.utils; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.fasterxml.jackson.databind.PropertyNamingStrategy; |
| | | import io.swagger.models.auth.In; |
| | | import org.apache.batik.util.Platform; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.io.IOException; |
| | | import java.math.BigDecimal; |
| | |
| | | // 超时预警配置 |
| | | public static final String TIMEOUT_WARNING = "TIMEOUT_WARNING"; |
| | | // FTP文件服务器资源访问地址 |
| | | |
| | | |
| | | public static String getRandom6Num( ) { |
| | | Random random = new Random(); |
| | |
| | | int cityUseCar = 3;//市内用车 |
| | | int unCityUseCar = 4;//市外用车 |
| | | int logisticsCarUse = 5;//物流车预约 |
| | | int reason = 6;//入园原因 |
| | | } |
| | | |
| | | |
| | |
| | | }else if(Constants.equalsInteger(approveType,Constants.approveObjectType.cityUseCar) |
| | | ||Constants.equalsInteger(approveType,Constants.approveObjectType.unCityUseCar)){ |
| | | return Constants.noticesObjectType.useCar; |
| | | }else if(Constants.equalsInteger(approveType,Constants.approveObjectType.logisticsCarUse)){ |
| | | return Constants.noticesObjectType.logisticsCarUse; |
| | | }else if(Constants.equalsInteger(approveType, approveObjectType.reason)){ |
| | | return noticesObjectType.reason; |
| | | }else { |
| | | return Constants.noticesObjectType.system; |
| | | } |
| | |
| | | int dangerDeal = 3;//隐患处理 |
| | | int logisticsCarUse = 4;//物流车审批 |
| | | int system = 5;//系统消息 |
| | | int reason = 6;//入园原因 |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | /** |
| | | * 月台作业 状态 |
| | | * 0任务创建 1司机确认任务 2司机签到 3入园等待 4月台叫号 5开始作业 6作业完成 7月台转移 8任务挂起 9下发授权离园 10离园 |
| | | */ |
| | | public enum PlatformJobLogType { |
| | | CREATE(0, "任务创建","任务创建" ), |
| | | CONFIRM_TASK(1, "司机确认任务","司机确认任务" ), |
| | | SIGN(2, "司机签到","司机签到"), |
| | | IN_WAIT(3, "入园等待","入园等待" ), |
| | | CALLED(4, "月台叫号","月台叫号" ), |
| | | WORKING(5, "开始作业","开始作业" ), |
| | | DONE(6, "作业完成 ","作业完成 " ), |
| | | TRANSFERING(7, "月台转移","月台转移" ), |
| | | EXCEPTION(8, "任务挂起","任务挂起" ), |
| | | AUTHED_LEAVE(9, "下发授权离园","下发授权离园" ), |
| | | LEAVED(10, "已离园 ","已离园 " ), |
| | | ; |
| | | |
| | | // 成员变量 |
| | | private int key; |
| | | private String name; |
| | | private String info; |
| | | |
| | | // 构造方法 |
| | | PlatformJobLogType(int key, String name,String info ) { |
| | | this.key = key; |
| | | this.info = info; |
| | | this.name = name; |
| | | } |
| | | public static String getName(int index) { |
| | | for (PlatformJobLogType c : PlatformJobLogType.values()) { |
| | | if (c.getKey() == index) { |
| | | return c.name; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public int getKey() { |
| | | return key; |
| | | } |
| | | |
| | | public void setKey(int key) { |
| | | this.key = key; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getInfo() { |
| | | return info; |
| | | } |
| | | |
| | | public void setInfo(String info) { |
| | | this.info = info; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 月台作业 状态 |
| | | * 0待确认 1待签到 2等待叫号 3入园等待 4已叫号 5作业中 6作业完成 7转移中 8异常挂起 9已授权离园 10已离园 11 已过号 |
| | | */ |
| | | public enum PlatformJobStatus { |