|  | @@ -16,7 +16,9 @@ import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.MusicGroupSubjectPlanService;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.controller.BaseController;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import java.util.HashMap;
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
		
			
				|  |  | +import java.util.Map;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  @RequestMapping("musicGroupSubjectPlan")
 | 
	
		
			
				|  |  |  @Api(tags = "乐团声部计划服务")
 | 
	
	
		
			
				|  | @@ -72,8 +74,15 @@ public class MusicGroupSubjectPlanController extends BaseController {
 | 
	
		
			
				|  |  |              @ApiImplicitParam(name = "type", value = "INSTRUMENT 乐器, ACCESSORIES 教辅", required = true, dataType = "String"),
 | 
	
		
			
				|  |  |              @ApiImplicitParam(name = "chargeTypeId", value = "收费模式id", required = true, dataType = "Integer")
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  | -    public HttpResponseResult<List<MusicGroupGoodsAndDiscountDto>> getSubjectGoods(Integer subjectId, String type, Integer chargeTypeId) {
 | 
	
		
			
				|  |  | -        return succeed(musicGroupSubjectPlanService.getSubjectGoods(subjectId, type, chargeTypeId));
 | 
	
		
			
				|  |  | +    public HttpResponseResult getSubjectGoods(String subjectIds, String type, Integer chargeTypeId) {
 | 
	
		
			
				|  |  | +        if(StringUtils.isBlank(subjectIds)){
 | 
	
		
			
				|  |  | +            return succeed();
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        Map<String, List<MusicGroupGoodsAndDiscountDto>> result = new HashMap<>();
 | 
	
		
			
				|  |  | +        for (String subjectIdStr : subjectIds.split(",")) {
 | 
	
		
			
				|  |  | +            result.put(subjectIdStr, musicGroupSubjectPlanService.getSubjectGoods(Integer.valueOf(subjectIdStr), type, chargeTypeId));
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return succeed(result);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  }
 |