|  | @@ -22,6 +22,7 @@ import com.ym.mec.biz.dal.dao.MusicGroupPaymentCalenderDao;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dao.MusicGroupStudentFeeDao;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dto.StudentInfo;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.Goods;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.entity.MusicGroup;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.MusicGroupStudentFee;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.MusicGroupSubjectPlan;
 | 
	
	
		
			
				|  | @@ -33,6 +34,7 @@ import com.ym.mec.biz.dal.entity.SysUserTsign;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.VipGroup;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.ContractService;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.GoodsService;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.service.MusicGroupService;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.MusicGroupSubjectGoodsGroupService;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.MusicGroupSubjectPlanService;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.StudentPaymentOrderService;
 | 
	
	
		
			
				|  | @@ -92,6 +94,9 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Autowired
 | 
	
		
			
				|  |  |  	private GoodsService goodsService;
 | 
	
		
			
				|  |  | +	
 | 
	
		
			
				|  |  | +	@Autowired
 | 
	
		
			
				|  |  | +	private MusicGroupService musicGroupService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Value("${contract.baseDir:/var/pdf}")
 | 
	
		
			
				|  |  |  	private String contractBaseDir;
 | 
	
	
		
			
				|  | @@ -278,6 +283,13 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  		
 | 
	
		
			
				|  |  |  		params.put("isShowVisualSeal", false);
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  | +		MusicGroup musicGroup = musicGroupService.get(musicGroupId);
 | 
	
		
			
				|  |  | +		if(musicGroup == null){
 | 
	
		
			
				|  |  | +			throw new BizException("乐团信息没找到");
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  | +		params.put("ownershipType", musicGroup.getOwnershipType().name());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		templateEngine.render(params, "courses.ftl", srcFile);
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -361,6 +373,13 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  		
 | 
	
		
			
				|  |  |  		params.put("isShowVisualSeal", true);
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  | +		MusicGroup musicGroup = musicGroupService.get(musicGroupId);
 | 
	
		
			
				|  |  | +		if(musicGroup == null){
 | 
	
		
			
				|  |  | +			throw new BizException("乐团信息没找到");
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  | +		params.put("ownershipType", musicGroup.getOwnershipType().name());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		templateEngine.render(params, "courses.ftl", srcFile);
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -548,6 +567,13 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  		params.put("depositFeeFmt", MoneyUtil.toChinese(musicGroupSubjectPlan.getDepositFee().toString()));
 | 
	
		
			
				|  |  |  		
 | 
	
		
			
				|  |  |  		params.put("isShowVisualSeal", false);
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  | +		MusicGroup musicGroup = musicGroupService.get(musicGroupId);
 | 
	
		
			
				|  |  | +		if(musicGroup == null){
 | 
	
		
			
				|  |  | +			throw new BizException("乐团信息没找到");
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  | +		params.put("ownershipType", musicGroup.getOwnershipType().name());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		templateEngine.render(params, "goods.ftl", srcFile);
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -618,6 +644,13 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  		params.put("depositFeeFmt", MoneyUtil.toChinese(musicGroupSubjectPlan.getDepositFee().toString()));
 | 
	
		
			
				|  |  |  		
 | 
	
		
			
				|  |  |  		params.put("isShowVisualSeal", true);
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  | +		MusicGroup musicGroup = musicGroupService.get(musicGroupId);
 | 
	
		
			
				|  |  | +		if(musicGroup == null){
 | 
	
		
			
				|  |  | +			throw new BizException("乐团信息没找到");
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  | +		params.put("ownershipType", musicGroup.getOwnershipType().name());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		templateEngine.render(params, "goods.ftl", srcFile);
 | 
	
		
			
				|  |  |  
 |