update 快递100查询订单信息

This commit is contained in:
liao
2023-04-24 17:46:31 +08:00
parent c3e7c50660
commit 4a07371319
@@ -90,12 +90,12 @@ public class PostInfoServiceImpl implements IPostInfoService {
} }
private void setCom(PostInfoQuery postInfoQuery) { private void setCom(PostInfoQuery postInfoQuery) {
if ("1".equals(postInfoQuery.getCom())) { if ("2".equals(postInfoQuery.getCom())) {
postInfoQuery.setCom(SF); postInfoQuery.setCom(SF);
if (StringUtils.isBlank(postInfoQuery.getPhone())) { if (StringUtils.isBlank(postInfoQuery.getPhone())) {
throw new JeroBootException("顺丰速递必须填写手机号!"); throw new JeroBootException("顺丰速递必须填写手机号!");
} }
} else if ("2".equals(postInfoQuery.getCom())) { } else if ("1".equals(postInfoQuery.getCom())) {
postInfoQuery.setCom(EMS); postInfoQuery.setCom(EMS);
} else { } else {
throw new JeroBootException("只能查询顺丰和EMS的快递信息!"); throw new JeroBootException("只能查询顺丰和EMS的快递信息!");