| | |
| | | |
| | | import com.alibaba.nacos.shaded.com.google.gson.Gson; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.kuaidi100.sdk.api.QueryTrack; |
| | |
| | | import com.kuaidi100.sdk.request.QueryTrackReq; |
| | | import com.kuaidi100.sdk.utils.SignUtils; |
| | | import com.ruoyi.order.mapper.LogisticsMapper; |
| | | import com.ruoyi.order.mapper.OrderMapper; |
| | | import com.ruoyi.order.service.ILogisticsService; |
| | | import com.ruoyi.system.api.domain.Logistics; |
| | | import com.ruoyi.system.api.domain.dto.LogisticsDTO; |
| | |
| | | |
| | | @Autowired |
| | | private RestTemplate restTemplate; |
| | | |
| | | @Autowired |
| | | private OrderMapper orderMapper; |
| | | |
| | | @Override |
| | | public Express100VO getLogisticsList(LogisticsDTO logisticsDTO) { |
| | |
| | | QueryTrackParam queryTrackParam = new QueryTrackParam(); |
| | | queryTrackParam.setCom(logisticsDTO.getCompany()); |
| | | queryTrackParam.setNum(logisticsDTO.getPostid()); |
| | | if ((logisticsDTO.getCompany().equals("shunfeng") || logisticsDTO.getCompany() |
| | | .equals("shunfengkuaiyun")) && StringUtils.isNotBlank( |
| | | logisticsDTO.getReceiverPhone())) { |
| | | queryTrackParam.setPhone(logisticsDTO.getReceiverPhone()); |
| | | } |
| | | String param = new Gson().toJson(queryTrackParam); |
| | | |
| | | queryTrackReq.setParam(param); |