|
|
@ -175,7 +175,7 @@ public class GroupActInfoServiceImpl extends BaseServiceImpl<GroupActInfoDao, Gr |
|
|
|
ActReadRecordEntity actReadRecordEntity=new ActReadRecordEntity(); |
|
|
|
actReadRecordEntity.setCustomerId(customerId); |
|
|
|
actReadRecordEntity.setGroupActId(groupActId); |
|
|
|
actReadRecordEntity.setRead(GroupActConstant.UN_READ); |
|
|
|
actReadRecordEntity.setReadFlag(GroupActConstant.UN_READ); |
|
|
|
actReadRecordEntity.setUserId(memberDTO.getCustomerUserId()); |
|
|
|
actReadRecordEntity.setShouldBeRead(Constant.YES); |
|
|
|
actReadRecordEntity.setGroupId(groupId); |
|
|
@ -370,6 +370,7 @@ public class GroupActInfoServiceImpl extends BaseServiceImpl<GroupActInfoDao, Gr |
|
|
|
* @param formDTO |
|
|
|
* @return com.epmet.resi.group.dto.act.result.ActDetailResultDTO |
|
|
|
*/ |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
@Override |
|
|
|
public ActDetailResultDTO queryActDetail(ActDetailFormDTO formDTO) { |
|
|
|
GroupActInfoEntity groupActInfoEntity=baseDao.selectById(formDTO.getGroupActId()); |
|
|
@ -393,16 +394,16 @@ public class GroupActInfoServiceImpl extends BaseServiceImpl<GroupActInfoDao, Gr |
|
|
|
ActReadRecordEntity insertEntity=new ActReadRecordEntity(); |
|
|
|
insertEntity.setCustomerId(groupActInfoEntity.getCustomerId()); |
|
|
|
insertEntity.setGroupActId(formDTO.getGroupActId()); |
|
|
|
insertEntity.setRead(GroupActConstant.READ); |
|
|
|
insertEntity.setReadFlag(GroupActConstant.READ); |
|
|
|
insertEntity.setShouldBeRead(Constant.NO); |
|
|
|
insertEntity.setUserId(formDTO.getUserId()); |
|
|
|
insertEntity.setGridId(groupActInfoEntity.getGridId()); |
|
|
|
insertEntity.setGroupId(groupActInfoEntity.getGroupId()); |
|
|
|
actReadRecordDao.insert(insertEntity); |
|
|
|
}else{ |
|
|
|
if(GroupActConstant.UN_READ.equals(actReadRecordEntity.getRead())){ |
|
|
|
if(GroupActConstant.UN_READ.equals(actReadRecordEntity.getReadFlag())){ |
|
|
|
//未读->已读
|
|
|
|
actReadRecordEntity.setRead(GroupActConstant.READ); |
|
|
|
actReadRecordEntity.setReadFlag(GroupActConstant.READ); |
|
|
|
actReadRecordEntity.setUpdatedTime(new Date()); |
|
|
|
actReadRecordDao.updateById(actReadRecordEntity); |
|
|
|
} |
|
|
@ -505,7 +506,7 @@ public class GroupActInfoServiceImpl extends BaseServiceImpl<GroupActInfoDao, Gr |
|
|
|
url.append(user.getHeadImgUrl()); |
|
|
|
} |
|
|
|
}); |
|
|
|
if (GroupActConstant.READ.equals(l.getRead())) { |
|
|
|
if (GroupActConstant.READ.equals(l.getReadFlag())) { |
|
|
|
//已读
|
|
|
|
NoticeReadListResultDTO.NoticeReafdRecord read = new NoticeReadListResultDTO.NoticeReafdRecord(); |
|
|
|
read.setUserId(l.getUserId()); |
|
|
@ -540,6 +541,7 @@ public class GroupActInfoServiceImpl extends BaseServiceImpl<GroupActInfoDao, Gr |
|
|
|
* @param formDTO |
|
|
|
* @return com.epmet.resi.group.dto.act.GroupActIdDTO |
|
|
|
*/ |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
@Override |
|
|
|
public GroupActIdDTO cancelAct(CancelActFormDTO formDTO) { |
|
|
|
GroupActInfoEntity actInfoEntity=baseDao.selectById(formDTO.getGroupActId()); |
|
|
|