Browse Source

【内容审核】-【初心互助打卡驳回调整】-(王童)-2020/8/7

feature/dangjian
Jackwang 5 years ago
parent
commit
462c46cf5c
  1. 11
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActInfoServiceImpl.java

11
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActInfoServiceImpl.java

@ -633,6 +633,17 @@ public class ActInfoServiceImpl extends BaseServiceImpl<ActInfoDao, ActInfoEntit
@Override
@Transactional
public Result rejectActClockInfo(RejectRecordDTO dto) {
//判断是否只打过一次卡,打过一次则更新关系表状态为 审核成功
ActUserClockLogEntity actUserClockLogEntity = actUserClockLogDao.selectById(dto.getRelationId());
Map<String,Object> queryMap = new HashMap<>();
queryMap.put("ACT_USER_ID",actUserClockLogEntity.getActUserId());
List<ActUserClockLogEntity> actUserClockLogEntities = actUserClockLogDao.selectByMap(queryMap);
if(actUserClockLogEntities.size()==1){
ActUserRelationEntity actUserRelationEntity = new ActUserRelationEntity();
actUserRelationEntity.setId(actUserClockLogEntity.getActUserId());
actUserRelationEntity.setStatus("1");
actUserRelationDao.updateById(actUserRelationEntity);
}
actUserClockLogDao.rejectActClockInfo(dto.getRelationId());
actClockPicDao.rejectActClockPicInfo(dto.getRelationId());
return new Result();

Loading…
Cancel
Save