| | |
| | | |
| | | private void auth(String appkey, Object obj, HttpServletRequest request) { |
| | | log.info("{}接口被访问;appkey:{};请求数据:{}", "open/sensorType/list/auth/v1", appkey, JSON.toJSONString(obj)); |
| | | log.info("[auth] cache: {}", obj == null ? "null" : JSON.toJSONString(obj)); |
| | | request.setAttribute("cache", obj); |
| | | if (!auth) { |
| | | return; |
| | |
| | | public synchronized R syncMatInfoV2(@RequestBody(required = false) List<MatSyncParam.MatParam> param, |
| | | HttpServletRequest request) { |
| | | if (request != null) { |
| | | log.info("[syncMatInfoV2] cache: {}", param == null ? "null" : JSON.toJSONString(param)); |
| | | request.setAttribute("cache", param); |
| | | } |
| | | System.out.println(param); |
| | |
| | | @PostMapping("/station/all") |
| | | public synchronized R stationAll(HttpServletRequest request) { |
| | | if (request != null) { |
| | | request.setAttribute("cache", JSON.toJSONString(Collections.singletonMap("op", "stationAll"))); |
| | | String cachePayload = JSON.toJSONString(Collections.singletonMap("op", "stationAll")); |
| | | log.info("[stationAll] cache: {}", cachePayload); |
| | | request.setAttribute("cache", cachePayload); |
| | | } |
| | | return openService.stationAll(); |
| | | } |
| | |
| | | @PostMapping("/comb/auth") |
| | | public synchronized R comb(@RequestBody ArrayList<MesToCombParam> param, HttpServletRequest request) { |
| | | if (request != null) { |
| | | log.info("[comb] cache: {}", param == null ? "null" : JSON.toJSONString(param)); |
| | | request.setAttribute("cache", param); |
| | | } |
| | | List<MesToCombParam> errorComb = Lists.newArrayList(); |
| | |
| | | if (Cools.isEmpty(params)) { |
| | | return R.error("请求参数不能为空"); |
| | | } |
| | | log.info("[outOrder] cache: {}", JSON.toJSONString(params)); |
| | | request.setAttribute("cache", params); |
| | | Set<String> orderIds = new LinkedHashSet<>(); |
| | | for (OutTaskParam outTaskParam : params) { |
| | |
| | | @PostMapping("/order/pakout/pause/default/v1") |
| | | public synchronized R pakoutOrderPause(@RequestBody OpenOrderPakoutPauseParam param, HttpServletRequest request) { |
| | | if (request != null) { |
| | | log.info("[pakoutOrderPause] cache: {}", param == null ? "null" : JSON.toJSONString(param)); |
| | | request.setAttribute("cache", param); |
| | | } |
| | | if (Cools.isEmpty(param) || Cools.isEmpty(param.getOrderId())) { |
| | |
| | | @PostMapping("/queryTask") |
| | | public synchronized R queryTask(@RequestBody QueryTaskParam param, HttpServletRequest request) { |
| | | if (request != null) { |
| | | log.info("[queryTask] cache: {}", param == null ? "null" : JSON.toJSONString(param)); |
| | | request.setAttribute("cache", param); |
| | | } |
| | | if (Cools.isEmpty(param)) { |