| | |
| | | package com.java110.store.api; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.common.constant.ResponseConstant; |
| | | import com.java110.common.exception.InitConfigDataException; |
| | | import com.java110.common.exception.InitDataFlowContextException; |
| | | import com.java110.utils.constant.ResponseConstant; |
| | | import com.java110.utils.exception.InitConfigDataException; |
| | | import com.java110.utils.exception.InitDataFlowContextException; |
| | | import com.java110.core.base.controller.BaseController; |
| | | import com.java110.core.context.BusinessServiceDataFlow; |
| | | import com.java110.core.factory.DataTransactionFactory; |
| | | import com.java110.store.smo.IStoreServiceSMO; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | */ |
| | | @RestController |
| | | public class StoreApi extends BaseController { |
| | | private final static Logger logger = LoggerFactory.getLogger(StoreApi.class); |
| | | |
| | | @Autowired |
| | | IStoreServiceSMO storeServiceSMOImpl; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 用户服务统一处理接口 |
| | | * 商户服务统一处理接口 |
| | | * @param orderInfo |
| | | * @param request |
| | | * @return |
| | |
| | | responseJson = DataTransactionFactory.createBusinessResponseJson(businessServiceDataFlow,ResponseConstant.RESULT_CODE_ERROR,e.getMessage()+e, |
| | | null); |
| | | }finally { |
| | | logger.debug("storeApi 请求报文{},返回报文:{}",orderInfo,responseJson.toJSONString()); |
| | | return responseJson.toJSONString(); |
| | | } |
| | | } |