|
@@ -84,15 +84,12 @@ public class MesNoticeServiceImpl extends SuperServiceImpl<MesNoticeMapper, MesN
|
|
MesNotice mesNotice1 = baseMapper.selectById(id);
|
|
MesNotice mesNotice1 = baseMapper.selectById(id);
|
|
|
|
|
|
// 新增到log日志界面
|
|
// 新增到log日志界面
|
|
- int count = mesNoticeLogService.count(Wraps.<MesNoticeLog>lbQ().eq(MesNoticeLog::getNoticeId, mesNotice1.getId()).eq(MesNoticeLog::getStatus, mesNotice1.getStatus()));
|
|
|
|
MesNoticeLog mesNoticeLog = new MesNoticeLog();
|
|
MesNoticeLog mesNoticeLog = new MesNoticeLog();
|
|
BeanUtils.copyProperties(mesNotice1,mesNoticeLog);
|
|
BeanUtils.copyProperties(mesNotice1,mesNoticeLog);
|
|
mesNoticeLog.setNoticeId(mesNotice1.getId());
|
|
mesNoticeLog.setNoticeId(mesNotice1.getId());
|
|
mesNoticeLog.setId(null);
|
|
mesNoticeLog.setId(null);
|
|
- if(count<=0){
|
|
|
|
- mesNoticeLogService.save(mesNoticeLog);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ mesNoticeLogService.save(mesNoticeLog);
|
|
|
|
+
|
|
return mesNotice1;
|
|
return mesNotice1;
|
|
}
|
|
}
|
|
|
|
|