|
@@ -65,6 +65,8 @@ public class OrderController {
|
|
|
private PinganResponseService pinganResponseService;
|
|
|
@Autowired
|
|
|
private ExcelUtil excelUtil;
|
|
|
+ @Autowired
|
|
|
+ private ShippingService shippingService;
|
|
|
|
|
|
/**
|
|
|
* 列表
|
|
@@ -759,8 +761,15 @@ public class OrderController {
|
|
|
if(orderInfo.getShippingStatus() == Integer.parseInt(Dict.shippingStatus.item_1.getItem())) {
|
|
|
OrderEntity order = new OrderEntity();
|
|
|
order.setId(orderInfo.getId());
|
|
|
- order.setShippingName(orderEntity.getShippingName());
|
|
|
order.setShippingCode(orderEntity.getShippingCode());
|
|
|
+ Map map = new HashMap();
|
|
|
+ map.put("code", orderEntity.getShippingCode());
|
|
|
+ ShippingEntity shippingEntity = shippingService.queryObjectByCode(orderEntity.getShippingCode());
|
|
|
+ if(shippingEntity != null) {
|
|
|
+ order.setShippingName(shippingEntity.getName());
|
|
|
+ }else{
|
|
|
+ throw new RRException("此订单修改的快递公司信息不存在!不能操作");
|
|
|
+ }
|
|
|
order.setShippingNo(orderEntity.getShippingNo());
|
|
|
order.setModerSn(ShiroUtils.getUserEntity().getUsername());
|
|
|
order.setModTime(new Date());
|