|  |  | @ -202,8 +202,10 @@ public class GroupActInfoServiceImpl extends BaseServiceImpl<GroupActInfoDao, Gr | 
			
		
	
		
			
				
					|  |  |  |             //组长默认已读,组员默认未读
 | 
			
		
	
		
			
				
					|  |  |  |             if(!groupActInfoEntity.getPublishUserId().equals(memberDTO.getCustomerUserId())){ | 
			
		
	
		
			
				
					|  |  |  |                 actReadRecordEntity.setReadFlag(GroupActConstant.UN_READ); | 
			
		
	
		
			
				
					|  |  |  |                 actReadRecordEntity.setViewDetail(GroupActConstant.UN_READ); | 
			
		
	
		
			
				
					|  |  |  |             }else{ | 
			
		
	
		
			
				
					|  |  |  |                 actReadRecordEntity.setReadFlag(GroupActConstant.READ); | 
			
		
	
		
			
				
					|  |  |  |                 actReadRecordEntity.setViewDetail(GroupActConstant.READ); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |             readRecordEntityList.add(actReadRecordEntity); | 
			
		
	
		
			
				
					|  |  |  |         }); | 
			
		
	
	
		
			
				
					|  |  | @ -507,30 +509,36 @@ public class GroupActInfoServiceImpl extends BaseServiceImpl<GroupActInfoDao, Gr | 
			
		
	
		
			
				
					|  |  |  |         resultDTO.setUserRole(resiGroupMemberDTO.getGroupLeaderFlag()); | 
			
		
	
		
			
				
					|  |  |  |         // 有签到后不可以修改活动时间:true可以修改,false不可以,
 | 
			
		
	
		
			
				
					|  |  |  |         resultDTO.setStartTimeEditFlag(groupActInfoEntity.getSignedInNum() > NumConstant.ZERO ? false : true); | 
			
		
	
		
			
				
					|  |  |  |         if (!GroupActConstant.CLOSED.equals(groupActInfoEntity.getStatus())) { | 
			
		
	
		
			
				
					|  |  |  |             //如果活动关闭,则不更新已读记录
 | 
			
		
	
		
			
				
					|  |  |  |             //非关闭状态下,返回详情,并且已读状态
 | 
			
		
	
		
			
				
					|  |  |  |             ActReadRecordEntity actReadRecordEntity = actReadRecordDao.selectUserRec(formDTO.getGroupActId(), formDTO.getUserId()); | 
			
		
	
		
			
				
					|  |  |  |             if (null == actReadRecordEntity) { | 
			
		
	
		
			
				
					|  |  |  |                 if (!GroupActConstant.CLOSED.equals(groupActInfoEntity.getStatus())) { | 
			
		
	
		
			
				
					|  |  |  |                     //插入已读记录,默认不属于应读人。
 | 
			
		
	
		
			
				
					|  |  |  |                     ActReadRecordEntity insertEntity = new ActReadRecordEntity(); | 
			
		
	
		
			
				
					|  |  |  |                     insertEntity.setCustomerId(groupActInfoEntity.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  |                     insertEntity.setGroupActId(formDTO.getGroupActId()); | 
			
		
	
		
			
				
					|  |  |  |                     insertEntity.setReadFlag(GroupActConstant.READ); | 
			
		
	
		
			
				
					|  |  |  |                     insertEntity.setShouldBeRead(Constant.NO); | 
			
		
	
		
			
				
					|  |  |  |                     insertEntity.setUserId(formDTO.getUserId()); | 
			
		
	
		
			
				
					|  |  |  |                     insertEntity.setGridId(groupActInfoEntity.getGridId()); | 
			
		
	
		
			
				
					|  |  |  |                     insertEntity.setGroupId(groupActInfoEntity.getGroupId()); | 
			
		
	
		
			
				
					|  |  |  |                     actReadRecordDao.insert(insertEntity); | 
			
		
	
		
			
				
					|  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |             } else { | 
			
		
	
		
			
				
					|  |  |  |         //如果活动关闭,则不更新已读记录
 | 
			
		
	
		
			
				
					|  |  |  |         //非关闭状态下,返回详情,并且已读状态
 | 
			
		
	
		
			
				
					|  |  |  |         ActReadRecordEntity actReadRecordEntity = actReadRecordDao.selectUserRec(formDTO.getGroupActId(), formDTO.getUserId()); | 
			
		
	
		
			
				
					|  |  |  |         if (null != actReadRecordEntity) { | 
			
		
	
		
			
				
					|  |  |  |             /*if (!GroupActConstant.CLOSED.equals(groupActInfoEntity.getStatus())) { | 
			
		
	
		
			
				
					|  |  |  |                 //插入已读记录,默认不属于应读人。
 | 
			
		
	
		
			
				
					|  |  |  |                 ActReadRecordEntity insertEntity = new ActReadRecordEntity(); | 
			
		
	
		
			
				
					|  |  |  |                 insertEntity.setCustomerId(groupActInfoEntity.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  |                 insertEntity.setGroupActId(formDTO.getGroupActId()); | 
			
		
	
		
			
				
					|  |  |  |                 insertEntity.setReadFlag(GroupActConstant.READ); | 
			
		
	
		
			
				
					|  |  |  |                 insertEntity.setShouldBeRead(Constant.NO); | 
			
		
	
		
			
				
					|  |  |  |                 insertEntity.setUserId(formDTO.getUserId()); | 
			
		
	
		
			
				
					|  |  |  |                 insertEntity.setGridId(groupActInfoEntity.getGridId()); | 
			
		
	
		
			
				
					|  |  |  |                 insertEntity.setGroupId(groupActInfoEntity.getGroupId()); | 
			
		
	
		
			
				
					|  |  |  |                 insertEntity.setViewDetail(GroupActConstant.READ); | 
			
		
	
		
			
				
					|  |  |  |                 actReadRecordDao.insert(insertEntity); | 
			
		
	
		
			
				
					|  |  |  |             }*/ | 
			
		
	
		
			
				
					|  |  |  |         // } else {
 | 
			
		
	
		
			
				
					|  |  |  |             if(!GroupActConstant.CLOSED.equals(groupActInfoEntity.getStatus())){ | 
			
		
	
		
			
				
					|  |  |  |                 if (GroupActConstant.UN_READ.equals(actReadRecordEntity.getReadFlag())) { | 
			
		
	
		
			
				
					|  |  |  |                     //未读->已读
 | 
			
		
	
		
			
				
					|  |  |  |                     actReadRecordEntity.setReadFlag(GroupActConstant.READ); | 
			
		
	
		
			
				
					|  |  |  |                     actReadRecordEntity.setUpdatedTime(new Date()); | 
			
		
	
		
			
				
					|  |  |  |                     actReadRecordEntity.setViewDetail(GroupActConstant.READ); | 
			
		
	
		
			
				
					|  |  |  |                     actReadRecordDao.updateById(actReadRecordEntity); | 
			
		
	
		
			
				
					|  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |             }else{ | 
			
		
	
		
			
				
					|  |  |  |                 actReadRecordEntity.setUpdatedTime(new Date()); | 
			
		
	
		
			
				
					|  |  |  |                 actReadRecordEntity.setViewDetail(GroupActConstant.READ); | 
			
		
	
		
			
				
					|  |  |  |                 actReadRecordDao.updateById(actReadRecordEntity); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         return resultDTO; | 
			
		
	
	
		
			
				
					|  |  | 
 |