1
0

SalesDetailController.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package com.emato.biz.controller.mall;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.emato.biz.domain.mall.NewSystemFormatEntiy;
  4. import com.emato.biz.service.mall.ISalesDetaiServicel;
  5. import com.emato.common.annotation.AnonymousAccess;
  6. import com.emato.common.core.Result;
  7. import com.emato.common.core.ResultNew;
  8. import org.apache.http.Header;
  9. import org.apache.http.HttpRequest;
  10. import org.springframework.beans.factory.annotation.Autowired;
  11. import org.springframework.web.bind.annotation.PostMapping;
  12. import org.springframework.web.bind.annotation.RequestBody;
  13. import org.springframework.web.bind.annotation.RequestMapping;
  14. import org.springframework.web.bind.annotation.RestController;
  15. import javax.servlet.http.HttpServletRequest;
  16. @RestController
  17. @RequestMapping("/salesdetail")
  18. public class SalesDetailController {
  19. @Autowired
  20. private ISalesDetaiServicel salesDetaiServicel;
  21. /**
  22. * kmall向eccs系统推送数据
  23. * @param newSystemFormatEntiy
  24. * @return
  25. */
  26. @AnonymousAccess
  27. @PostMapping("/eccspushsales")
  28. public ResultNew pushSalesDetailServicel(@RequestBody NewSystemFormatEntiy newSystemFormatEntiy)
  29. {
  30. return ResultNew.success(salesDetaiServicel.pushSalesDetaiServicel(newSystemFormatEntiy));
  31. }
  32. /**
  33. * 外部系统查询订单销售数据
  34. * @param msg
  35. * @return
  36. */
  37. @AnonymousAccess
  38. @PostMapping("/getsalesdet")
  39. public Result getSalesDetaiData(@RequestBody JSONObject msg, HttpServletRequest httpRequest)
  40. {
  41. return salesDetaiServicel.getSalesDetaiData(msg,httpRequest);
  42. }
  43. }