| | |
| | | |
| | | 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; |
| | |
| | | public class LogisticsServiceImpl extends ServiceImpl<LogisticsMapper, Logistics> implements |
| | | ILogisticsService { |
| | | |
| | | private String key="BltjQodT7186"; |
| | | private static final String key = "BltjQodT7186"; |
| | | |
| | | private String kye1="GMtjjhxp9pdEpfz37M"; |
| | | private String customer="56DE8E9E3D58CE73C60755C8B7483043"; |
| | | private static final String kye1 = "GMtjjhxp9pdEpfz37M"; |
| | | private static final String customer = "56DE8E9E3D58CE73C60755C8B7483043"; |
| | | |
| | | private static final String AUTONUMBER_AUTO_URL = "http://www.kuaidi100.com/autonumber/auto?num=NUM&key=KEY"; |
| | | |
| | | @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); |