|  | @@ -28,6 +28,7 @@ import com.yonge.cooleshow.biz.dal.service.SysConfigService;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.biz.dal.vo.PlatformCashAccountRecordSummaryVo;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.common.constant.SysConfigConstant;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.common.enums.PostStatusEnum;
 | 
	
		
			
				|  |  | +import org.springframework.util.CollectionUtils;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * 平台账户流水表(PlatformCashAccountRecord)表服务实现类
 | 
	
	
		
			
				|  | @@ -76,19 +77,13 @@ public class PlatformCashAccountRecordServiceImpl extends ServiceImpl<PlatformCa
 | 
	
		
			
				|  |  |          paramNames.add(AccountBizTypeEnum.VIP_SHARE.getCode());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          List<PlatformCashAccountRecord> list = getDao().queryCanAccountByBizType(paramNames);
 | 
	
		
			
				|  |  | -        if (list.size() > 0) {
 | 
	
		
			
				|  |  | -            Date date = new Date();
 | 
	
		
			
				|  |  | -            List<PlatformCashAccountRecord> batchUpdateList = new ArrayList<>();
 | 
	
		
			
				|  |  | +        if(!CollectionUtils.isEmpty(list)){
 | 
	
		
			
				|  |  |              for (PlatformCashAccountRecord pcar : list) {
 | 
	
		
			
				|  |  |                  //预收改成实收
 | 
	
		
			
				|  |  |                  pcar.setPostStatus(PostStatusEnum.RECORDED);
 | 
	
		
			
				|  |  | -                pcar.setUpdateTime(date);
 | 
	
		
			
				|  |  | -                batchUpdateList.add(pcar);
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -            if (batchUpdateList.size() > 0) {
 | 
	
		
			
				|  |  | -                getDao().batchUpdate(batchUpdateList);
 | 
	
		
			
				|  |  | +                pcar.setUpdateTime(new Date());
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            getDao().batchUpdate(list);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          //老师账户修改
 | 
	
		
			
				|  |  |          userAccountRecordService.updateWaitRecord();
 |