master
袁野 6 months ago
parent 439f77bf7b
commit 9cf5d08b5b
  1. 8
      cweb/src/main/java/com/cweb/controller/CommonController.java

@ -70,8 +70,14 @@ public class CommonController {
public ResponseData getLogisticsMsg(@RequestParam(value = "logisticsNo" , required = true) String logisticsNo) { public ResponseData getLogisticsMsg(@RequestParam(value = "logisticsNo" , required = true) String logisticsNo) {
try { try {
Map<String, Object> params = new HashMap<>();
GoodsLogistics logistics = (GoodsLogistics) bsOrderGoodsService.getLogisticsMsg(logisticsNo); GoodsLogistics logistics = (GoodsLogistics) bsOrderGoodsService.getLogisticsMsg(logisticsNo);
return ResponseMsgUtil.success(logistics);
params.put("logistics", logistics);
JSONArray object = JSONArray.parseArray(logistics.getLogisticsTraceDetails());
params.put("logisticsTraceDetails", object);
return ResponseMsgUtil.success(params);
} catch (Exception e) { } catch (Exception e) {
log.error("error!",e); log.error("error!",e);

Loading…
Cancel
Save