|  | @@ -5,14 +5,19 @@ import com.dayaedu.cbs.openfeign.client.MusicFeignClientService;
 | 
	
		
			
				|  |  |  import com.dayaedu.cbs.openfeign.wrapper.music.CbsSubjectWrapper;
 | 
	
		
			
				|  |  |  import com.dayaedu.cbs.openfeign.wrapper.musicInstrument.CbsMusicalInstrumentWrapper;
 | 
	
		
			
				|  |  |  import com.microsvc.toolkit.common.webportal.exception.BizException;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.dto.SubFeeSettingDto;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.dto.SubjectApplyDetailDto;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.Subject;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.SubjectGoodsMapper;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.SubjectQueryInfo;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.wrapper.InstrumentWrapper;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.wrapper.SubjectWrapper;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.SubjectService;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.controller.BaseController;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.entity.HttpResponseResult;
 | 
	
		
			
				|  |  | +import com.ym.mec.common.page.PageInfo;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.*;
 | 
	
		
			
				|  |  | +import lombok.extern.slf4j.Slf4j;
 | 
	
		
			
				|  |  |  import org.apache.commons.collections.CollectionUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.BeanUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
	
		
			
				|  | @@ -26,6 +31,7 @@ import java.util.stream.Collectors;
 | 
	
		
			
				|  |  |  @RequestMapping("${app-config.url.web:}/subject")
 | 
	
		
			
				|  |  |  @Api(tags = "科目服务")
 | 
	
		
			
				|  |  |  @RestController
 | 
	
		
			
				|  |  | +@Slf4j
 | 
	
		
			
				|  |  |  public class SubjectController extends BaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Resource
 | 
	
	
		
			
				|  | @@ -36,7 +42,7 @@ public class SubjectController extends BaseController {
 | 
	
		
			
				|  |  |      @ApiOperation(value = "修改、新增科目")
 | 
	
		
			
				|  |  |      @PostMapping("/upset")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('subject/upset')")
 | 
	
		
			
				|  |  | -    public Object update(@RequestBody Subject subject){
 | 
	
		
			
				|  |  | +    public HttpResponseResult<Object> update(@RequestBody Subject subject){
 | 
	
		
			
				|  |  |          subjectService.upSetSubject(subject);
 | 
	
		
			
				|  |  |          return succeed();
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -44,21 +50,21 @@ public class SubjectController extends BaseController {
 | 
	
		
			
				|  |  |      @ApiOperation(value = "根据科目编号查询科目")
 | 
	
		
			
				|  |  |      @GetMapping("/get/{id}")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('subject/get')")
 | 
	
		
			
				|  |  | -    public Object get(@ApiParam(value = "科目编号", required = true) @PathVariable("id") Integer id){
 | 
	
		
			
				|  |  | +    public HttpResponseResult<Subject> get(@ApiParam(value = "科目编号", required = true) @PathVariable("id") Integer id){
 | 
	
		
			
				|  |  |          return succeed(subjectService.get(id));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "分页查询科目列表")
 | 
	
		
			
				|  |  |      @GetMapping("/queryPage")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('subject/queryPage')")
 | 
	
		
			
				|  |  | -    public Object queryPage(SubjectQueryInfo queryInfo){
 | 
	
		
			
				|  |  | +    public HttpResponseResult<PageInfo<Subject>> queryPage(SubjectQueryInfo queryInfo){
 | 
	
		
			
				|  |  |          return succeed(subjectService.queryPage(queryInfo));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "分页查询科目树状列表")
 | 
	
		
			
				|  |  |      @GetMapping("/queryPageTree")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('subject/queryPageTree')")
 | 
	
		
			
				|  |  | -    public Object queryPageTree(SubjectQueryInfo queryInfo){
 | 
	
		
			
				|  |  | +    public HttpResponseResult<PageInfo<Subject>> queryPageTree(SubjectQueryInfo queryInfo){
 | 
	
		
			
				|  |  |          return succeed(subjectService.queryPageTree(queryInfo));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -66,7 +72,7 @@ public class SubjectController extends BaseController {
 | 
	
		
			
				|  |  |      @GetMapping("/querySubByMusicGroupId")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('subject/querySubByMusicGroupId')")
 | 
	
		
			
				|  |  |      @ApiImplicitParams({ @ApiImplicitParam(name = "musicGroupId", value = "乐团编号", required = true, dataType = "String")})
 | 
	
		
			
				|  |  | -    public Object findSubByMusicGroupId(String musicGroupId){
 | 
	
		
			
				|  |  | +    public HttpResponseResult<List<Subject>> findSubByMusicGroupId(String musicGroupId){
 | 
	
		
			
				|  |  |          return succeed(subjectService.findSubByMusicGroupId(musicGroupId));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -74,14 +80,14 @@ public class SubjectController extends BaseController {
 | 
	
		
			
				|  |  |      @GetMapping("/setSubjectInfo")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('subject/setSubjectInfo')")
 | 
	
		
			
				|  |  |      @ApiImplicitParams({ @ApiImplicitParam(name = "chargeTypeId", value = "收费类型编号", required = true, dataType = "Integer")})
 | 
	
		
			
				|  |  | -    public Object setSubjectInfo(Integer chargeTypeId){
 | 
	
		
			
				|  |  | +    public HttpResponseResult<SubFeeSettingDto> setSubjectInfo(Integer chargeTypeId){
 | 
	
		
			
				|  |  |          return succeed(subjectService.setSubjectInfo(chargeTypeId));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "修改、新增声部关联的商品列表")
 | 
	
		
			
				|  |  |      @PostMapping("/markGoods")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('subject/markGoods')")
 | 
	
		
			
				|  |  | -    public Object markGoods(@RequestBody List<SubjectGoodsMapper> subjectGoodsMappers){
 | 
	
		
			
				|  |  | +    public HttpResponseResult<Object> markGoods(@RequestBody List<SubjectGoodsMapper> subjectGoodsMappers){
 | 
	
		
			
				|  |  |          subjectService.markGoods(subjectGoodsMappers);
 | 
	
		
			
				|  |  |          return succeed();
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -90,28 +96,28 @@ public class SubjectController extends BaseController {
 | 
	
		
			
				|  |  |      @GetMapping("/findSubApplyDetail")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('subject/findSubApplyDetail')")
 | 
	
		
			
				|  |  |      @ApiImplicitParams({ @ApiImplicitParam(name = "musicGroupId", value = "乐团编号", required = true, dataType = "String")})
 | 
	
		
			
				|  |  | -    public Object findSubApplyDetail(String musicGroupId){
 | 
	
		
			
				|  |  | +    public HttpResponseResult<List<SubjectApplyDetailDto>> findSubApplyDetail(String musicGroupId){
 | 
	
		
			
				|  |  |          return succeed(subjectService.findSubApplyDetail(musicGroupId));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "获取子集科目列表按父Id")
 | 
	
		
			
				|  |  |      @GetMapping("/findSubSubjects")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('subject/findSubSubjects')")
 | 
	
		
			
				|  |  | -    public Object findSubSubjects(Integer parentSubjectId){
 | 
	
		
			
				|  |  | +    public HttpResponseResult<List<Subject>> findSubSubjects(Integer parentSubjectId){
 | 
	
		
			
				|  |  |          return succeed(subjectService.findSubSubjects(parentSubjectId));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "搜索按Id和名称")
 | 
	
		
			
				|  |  |      @PostMapping("/queryPageByIdOrName")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('subject/queryPageByIdOrName')")
 | 
	
		
			
				|  |  | -    public Object queryPageByIdOrName(SubjectQueryInfo queryInfo){
 | 
	
		
			
				|  |  | +    public HttpResponseResult<PageInfo<Subject>> queryPageByIdOrName(SubjectQueryInfo queryInfo){
 | 
	
		
			
				|  |  |          return succeed(subjectService.queryPageByIdOrName(queryInfo));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "列出所有分部")
 | 
	
		
			
				|  |  |      @PostMapping("/list")
 | 
	
		
			
				|  |  |      // @PreAuthorize("@pcs.hasPermissions('subject/list')")
 | 
	
		
			
				|  |  | -    public Object list(){
 | 
	
		
			
				|  |  | +    public HttpResponseResult<List<Subject>> list(){
 | 
	
		
			
				|  |  |          return succeed(subjectService.list());
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 |