| | |
| | | JSONObject jsonObject = JSON.parseObject(response); |
| | | if(jsonObject.get("code").equals(200)){ |
| | | //派发出库任务给RCS==>成功下发出库任务 |
| | | taskWrk.setWrkSts(11); |
| | | taskWrk.setWrkSts(12); |
| | | taskWrkService.updateById(taskWrk); |
| | | bool = true; |
| | | } |
| | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void executeIn() { |
| | | List<TaskWrk> taskWrks = taskWrkService.selectList(new EntityWrapper<TaskWrk>() |
| | | .eq("wrk_sts", 1).eq("io_type", 2)); |
| | | .eq("wrk_sts", 1).eq("io_type", 1)); |
| | | for(TaskWrk taskWrk:taskWrks){ |
| | | HashMap<String, Object> headParam = new HashMap<>(); |
| | | String response = ""; |