| | |
| | | package com.java110.order.smo; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.entity.order.OrderList; |
| | | import com.java110.utils.exception.SMOException; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 订单服务业务处理接口 |
| | | * |
| | | * 订单受理 |
| | | * Created by wuxw on 2017/4/11. |
| | | * 中心服务 SMO 业务逻辑接口 |
| | | * Created by wuxw on 2018/4/13. |
| | | */ |
| | | public interface IOrderServiceSMO { |
| | | |
| | | |
| | | /** |
| | | * 根据购物车ID 或者 外部系统ID 或者 custId 或者 channelId 查询订单信息 |
| | | * |
| | | * @param orderList |
| | | * 业务统一处理服务方法 |
| | | * @param reqJson 请求报文json |
| | | * @return |
| | | */ |
| | | public String queryOrderInfo(OrderList orderList) throws Exception; |
| | | |
| | | |
| | | public String queryOrderInfo(OrderList orderList,Boolean isQueryDataInfo) throws Exception; |
| | | ResponseEntity<String> service(String reqJson, Map<String, String> headers) throws SMOException; |
| | | |
| | | /** |
| | | * 订单调度, |
| | | * 根据订单类型 调用不同服务 处理 |
| | | * @param orderInfo |
| | | * @return |
| | | * @throws Exception |
| | | * 接受业务系统通知消息 |
| | | * @param receiveJson 接受报文 |
| | | * @throws SMOException |
| | | */ |
| | | public String orderDispatch(JSONObject orderInfo) throws Exception; |
| | | |
| | | /** |
| | | * 作废订单 |
| | | * 根据业务动作作废 |
| | | * 请求协议: |
| | | * { |
| | | * "orderList":{ |
| | | * "transactionId": "1000000200201704113137002690", |
| | | "channelId": "700212896", |
| | | "remarks": "", |
| | | "custId": "701008023904", |
| | | "statusCd": "S", |
| | | "reqTime": "20170411163709", |
| | | "extSystemId": "310013698777", |
| | | "olTypeCd": "15", |
| | | * "oldOlId":"123456789", |
| | | * "asyn":"S" |
| | | * }, |
| | | * "busiOrder":[{ |
| | | * "actionTypeCd":"ALL" |
| | | * }] |
| | | * } |
| | | * |
| | | * , |
| | | * |
| | | * 根据 订单项ID作废 |
| | | * |
| | | * { |
| | | * "orderList":{ |
| | | * "transactionId": "1000000200201704113137002690", |
| | | "channelId": "700212896", |
| | | "remarks": "", |
| | | "custId": "701008023904", |
| | | "statusCd": "S", |
| | | "reqTime": "20170411163709", |
| | | "extSystemId": "310013698777", |
| | | "olTypeCd": "15", |
| | | "asyn":"A" |
| | | * }, |
| | | * "busiOrder":[{ |
| | | * "oldBoId":"123456789" |
| | | * }, |
| | | * { |
| | | * "oldBoId":"123456799" |
| | | * }] |
| | | * } |
| | | * @param orderInfo |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | public String deleteOrder(JSONObject orderInfo) throws Exception; |
| | | |
| | | |
| | | /** |
| | | * 撤单处理 add by wuxw 2017-09-10 22:35 |
| | | * 修改以前逻辑,根据olId 去目标系统查询需要查询撤单订单组装报文 |
| | | * @param orderInfo |
| | | * @throws Exception |
| | | */ |
| | | public void soDeleteOrder(JSONObject orderInfo) throws Exception; |
| | | |
| | | |
| | | void receiveBusinessSystemNotifyMessage(String receiveJson) throws SMOException; |
| | | } |