| | |
| | | |
| | | private static Map<String, Integer> contextOrder = new HashMap<>(); |
| | | |
| | | /** |
| | | * 请求缓存 key = deviceId,value = requData |
| | | */ |
| | | private static Map<String, BaseReqData> contextSyncReqMap = new HashMap<>(); |
| | | |
| | | /** |
| | | * 将执行命令信息存放在缓存 |
| | | * |
| | | * @param depotId 仓库编码 |
| | | * @param reqData 请求参数信息 |
| | | */ |
| | | public static void addSyncReq2Map(String depotId, BaseReqData reqData) { |
| | | contextSyncReqMap.put(depotId, reqData); |
| | | } |
| | | |
| | | public static BaseReqData getSyncReq(String depotId) { |
| | | return contextSyncReqMap.get(depotId); |
| | | } |
| | | |
| | | |
| | | public static final String MSG_BEGIN = "<FZZY>"; |
| | | public static final String MSG_END = "<END>"; |