| | |
| | | JSONObject jsonObject = JSON.parseObject(systemConfig.getContent()); |
| | | Integer waitTime = jsonObject.getInteger("waitTime"); |
| | | redisTemplate.opsForZSet().add("order_express", order.getId(), LocalDateTime.now().plusHours(waitTime).toEpochSecond(ZoneOffset.UTC)); |
| | | |
| | | |
| | | JSONObject jsonObject1 = JSON.parseObject(confirmDelivery.getCode()); |
| | | String com = jsonObject1.getString("com"); |
| | | String num = jsonObject1.getString("num"); |
| | |
| | | order.setExpressResult(JSON.toJSONString(mapTrackKD100Vo)); |
| | | this.updateById(order); |
| | | return R.ok(); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | System.out.println(LocalDateTime.now().toEpochSecond(ZoneOffset.UTC)); |
| | | } |
| | | |
| | | |
| | |
| | | throw new ServiceException("城市编码错误:"+cityCode, 500); |
| | | } |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("com", expressName); |
| | | jsonObject.put("com", companyNameByCode); |
| | | jsonObject.put("num", expressNum); |
| | | ConfirmDelivery confirmDelivery =new ConfirmDelivery(); |
| | | confirmDelivery.setOrderId(order.getId()); |
| | |
| | | } |
| | | } |
| | | |
| | | public static void main(String[] args) throws MalformedURLException { |
| | | importExpress2("http://qijishenghuiyuan.obs.cn-southwest-2.myhuaweicloud.com/admin/69c1fcbe5c114f2a9f38703e4f5e1af0.xlsx"); |
| | | } |
| | | } |