|  | @@ -22,7 +22,6 @@ import com.ym.mec.biz.dal.dao.MusicGroupPaymentCalenderDao;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dto.StudentInfo;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.Goods;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.entity.MusicGroupSubjectGoodsGroup;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.MusicGroupSubjectPlan;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.StudentRegistration;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.Subject;
 | 
	
	
		
			
				|  | @@ -70,7 +69,7 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Autowired
 | 
	
		
			
				|  |  |  	private MusicGroupPaymentCalenderDao musicGroupPaymentCalenderDao;
 | 
	
		
			
				|  |  | -	
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	@Autowired
 | 
	
		
			
				|  |  |  	private MusicGroupSubjectGoodsGroupService musicGroupSubjectGoodsGroupService;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -85,7 +84,7 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Autowired
 | 
	
		
			
				|  |  |  	private StoragePlugin storagePlugin;
 | 
	
		
			
				|  |  | -	
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	@Autowired
 | 
	
		
			
				|  |  |  	private GoodsService goodsService;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -130,10 +129,10 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		if (sysUserTsign == null) {
 | 
	
		
			
				|  |  |  			SysUser user = sysUserFeignService.queryUserById(userId);
 | 
	
		
			
				|  |  | -			if(user == null){
 | 
	
		
			
				|  |  | +			if (user == null) {
 | 
	
		
			
				|  |  |  				throw new BizException("用户信息查询失败");
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  | -			sysUserTsign = register(userId,user.getRealName(),user.getIdCardNo(),user.getPhone());
 | 
	
		
			
				|  |  | +			sysUserTsign = register(userId, user.getRealName(), user.getIdCardNo(), user.getPhone());
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		// 合成freemarker
 | 
	
	
		
			
				|  | @@ -218,10 +217,10 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		if (sysUserTsign == null) {
 | 
	
		
			
				|  |  |  			SysUser user = sysUserFeignService.queryUserById(userId);
 | 
	
		
			
				|  |  | -			if(user == null){
 | 
	
		
			
				|  |  | +			if (user == null) {
 | 
	
		
			
				|  |  |  				throw new BizException("用户信息查询失败");
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  | -			sysUserTsign = register(userId,user.getRealName(),user.getIdCardNo(),user.getPhone());
 | 
	
		
			
				|  |  | +			sysUserTsign = register(userId, user.getRealName(), user.getIdCardNo(), user.getPhone());
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		// 合成freemarker
 | 
	
	
		
			
				|  | @@ -361,10 +360,10 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		if (sysUserTsign == null) {
 | 
	
		
			
				|  |  |  			SysUser user = sysUserFeignService.queryUserById(userId);
 | 
	
		
			
				|  |  | -			if(user == null){
 | 
	
		
			
				|  |  | +			if (user == null) {
 | 
	
		
			
				|  |  |  				throw new BizException("用户信息查询失败");
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  | -			sysUserTsign = register(userId,user.getRealName(),user.getIdCardNo(),user.getPhone());
 | 
	
		
			
				|  |  | +			sysUserTsign = register(userId, user.getRealName(), user.getIdCardNo(), user.getPhone());
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		// 合成freemarker
 | 
	
	
		
			
				|  | @@ -477,15 +476,15 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  | -	public boolean transferGoodsContract(Integer userId, String musicGroupId, String musicGroupSubjectGoodsGroupIds) {
 | 
	
		
			
				|  |  | +	public boolean transferGoodsContract(Integer userId, String musicGroupId, String goodsIds) {
 | 
	
		
			
				|  |  |  		SysUserTsign sysUserTsign = sysUserTsignService.get(userId);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		if (sysUserTsign == null) {
 | 
	
		
			
				|  |  |  			SysUser user = sysUserFeignService.queryUserById(userId);
 | 
	
		
			
				|  |  | -			if(user == null){
 | 
	
		
			
				|  |  | +			if (user == null) {
 | 
	
		
			
				|  |  |  				throw new BizException("用户信息查询失败");
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  | -			sysUserTsign = register(userId,user.getRealName(),user.getIdCardNo(),user.getPhone());
 | 
	
		
			
				|  |  | +			sysUserTsign = register(userId, user.getRealName(), user.getIdCardNo(), user.getPhone());
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		// 合成freemarker
 | 
	
	
		
			
				|  | @@ -512,12 +511,8 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  		studentInfo.setSubject(subject);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		params.put("studentInfo", studentInfo);
 | 
	
		
			
				|  |  | -		
 | 
	
		
			
				|  |  | -		List<MusicGroupSubjectGoodsGroup> musicGroupSubjectGoodsGroupList = musicGroupSubjectGoodsGroupService.findGoodsGroupByIds(musicGroupSubjectGoodsGroupIds);
 | 
	
		
			
				|  |  | -		
 | 
	
		
			
				|  |  | -		String goodIdList = musicGroupSubjectGoodsGroupList.stream().map(t -> t.getGoodsIdList()).collect(Collectors.joining(","));
 | 
	
		
			
				|  |  | -		
 | 
	
		
			
				|  |  | -		List<Goods> goodsList = goodsService.findGoodsByIds(goodIdList);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		List<Goods> goodsList = goodsService.findGoodsByIds(goodsIds);
 | 
	
		
			
				|  |  |  		params.put("goodsList", goodsList);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		MusicGroupSubjectPlan musicGroupSubjectPlan = musicGroupSubjectPlanService.getMusicOneSubjectClassPlan(musicGroupId, subjectId);
 | 
	
	
		
			
				|  | @@ -558,7 +553,7 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  | -	public String queryGoodsContract(Integer userId, String musicGroupId, String musicGroupSubjectGoodsGroupIds) {
 | 
	
		
			
				|  |  | +	public String queryGoodsContract(Integer userId, String musicGroupId, String goodsIds) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		// 合成freemarker
 | 
	
		
			
				|  |  |  		String srcPdfPath = contractBaseDir + "/goods/" + userId + ".pdf";
 | 
	
	
		
			
				|  | @@ -584,12 +579,8 @@ public class ContractServiceImpl implements ContractService {
 | 
	
		
			
				|  |  |  		studentInfo.setSubject(subject);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		params.put("studentInfo", studentInfo);
 | 
	
		
			
				|  |  | -		
 | 
	
		
			
				|  |  | -		List<MusicGroupSubjectGoodsGroup> musicGroupSubjectGoodsGroupList = musicGroupSubjectGoodsGroupService.findGoodsGroupByIds(musicGroupSubjectGoodsGroupIds);
 | 
	
		
			
				|  |  | -		
 | 
	
		
			
				|  |  | -		String goodIdList = musicGroupSubjectGoodsGroupList.stream().map(t -> t.getGoodsIdList()).collect(Collectors.joining(","));
 | 
	
		
			
				|  |  | -		
 | 
	
		
			
				|  |  | -		List<Goods> goodsList = goodsService.findGoodsByIds(goodIdList);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		List<Goods> goodsList = goodsService.findGoodsByIds(goodsIds);
 | 
	
		
			
				|  |  |  		params.put("goodsList", goodsList);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		MusicGroupSubjectPlan musicGroupSubjectPlan = musicGroupSubjectPlanService.getMusicOneSubjectClassPlan(musicGroupId, subjectId);
 |