|
|
|
@ -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(); |
|
|
|
|