wuxw
2019-06-20 ad4aa3dea3554b168824e426e66bd9849e3193d4
ShopService/src/main/java/com/java110/shop/api/ShopApi.java
@@ -8,6 +8,8 @@
import com.java110.core.context.BusinessServiceDataFlow;
import com.java110.core.factory.DataTransactionFactory;
import com.java110.shop.smo.IShopServiceSMO;
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;
@@ -24,11 +26,12 @@
 */
@RestController
public class ShopApi extends BaseController {
    private final static Logger logger = LoggerFactory.getLogger(ShopApi.class);
    @Autowired
    IShopServiceSMO shopServiceSMOImpl;
    @RequestMapping(path = "/storeApi/service",method= RequestMethod.GET)
    @RequestMapping(path = "/shopApi/service",method= RequestMethod.GET)
    public String serviceGet(HttpServletRequest request) {
        return DataTransactionFactory.createBusinessResponseJson(ResponseConstant.RESULT_CODE_ERROR,"不支持Get方法请求").toJSONString();
    }
@@ -39,7 +42,7 @@
     * @param request
     * @return
     */
    @RequestMapping(path = "/storeApi/service",method= RequestMethod.POST)
    @RequestMapping(path = "/shopApi/service",method= RequestMethod.POST)
    public String servicePost(@RequestBody String orderInfo, HttpServletRequest request) {
        BusinessServiceDataFlow businessServiceDataFlow = null;
        JSONObject responseJson = null;