package com.emato.biz.controller.mall; import com.alibaba.fastjson.JSONObject; import com.emato.biz.domain.mall.NewSystemFormatEntiy; import com.emato.biz.service.mall.ISalesDetaiServicel; import com.emato.common.annotation.AnonymousAccess; import com.emato.common.core.Result; import com.emato.common.core.ResultNew; import org.apache.http.Header; import org.apache.http.HttpRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; @RestController @RequestMapping("/salesdetail") public class SalesDetailController { @Autowired private ISalesDetaiServicel salesDetaiServicel; /** * kmall向eccs系统推送数据 * @param newSystemFormatEntiy * @return */ @AnonymousAccess @PostMapping("/eccspushsales") public ResultNew pushSalesDetailServicel(@RequestBody NewSystemFormatEntiy newSystemFormatEntiy) { return ResultNew.success(salesDetaiServicel.pushSalesDetaiServicel(newSystemFormatEntiy)); } /** * 外部系统查询订单销售数据 * @param msg * @return */ @AnonymousAccess @PostMapping("/getsalesdet") public Result getSalesDetaiData(@RequestBody JSONObject msg, HttpServletRequest httpRequest) { return salesDetaiServicel.getSalesDetaiData(msg,httpRequest); } }