package com.ygj.yuemum.controller.promotion; import com.ygj.yuemum.domain.promotion.PromotionDC; import com.ygj.yuemum.domain.promotion.PromotionTest; import com.ygj.yuemum.service.promotion.PromotionDCService; import com.ygj.yuemum.service.promotion.PromotionTestService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController public class PromotionTestController { @Autowired private PromotionTestService promotionTestService; @GetMapping("/getPromotionTestByPrxID") public List getPromotionTestByPrxID(@RequestParam("prx_id") Integer prx_id){ return promotionTestService.getPromotionTestByPrxID(prx_id); } }