CustomerGradeController.java 749 B

123456789101112131415161718192021222324252627282930
  1. package com.platform.yijia.controller;
  2. import com.platform.yijia.service.CustomerGradeServices;
  3. import org.springframework.stereotype.Controller;
  4. import org.springframework.web.bind.annotation.RequestMapping;
  5. import org.springframework.web.bind.annotation.ResponseBody;
  6. import javax.annotation.Resource;
  7. import java.util.List;
  8. import java.util.Map;
  9. /**
  10. * 客户优惠
  11. */
  12. @Controller
  13. @RequestMapping("/api")
  14. public class CustomerGradeController {
  15. @Resource
  16. private CustomerGradeServices customerGradeServices;
  17. //查询直降客户等级条件和优惠
  18. @RequestMapping("/getCustomerGradeList")
  19. @ResponseBody
  20. public List<Map> getCustomerGradeList(){
  21. return customerGradeServices.getCustomerGradeList();
  22. }
  23. }