|
@@ -76,6 +76,30 @@ public class MesNoticeServiceImpl extends SuperServiceImpl<MesNoticeMapper, MesN
|
|
|
return mesNotice1;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public MesNotice updateNoticeById(MesNotice model) {
|
|
|
+ if (model.getId() == null || model.getOrderNo() == null) return null;
|
|
|
+
|
|
|
+ MesNotice mesNotice = baseMapper.selectById(model.getId());
|
|
|
+
|
|
|
+ model.setId(mesNotice.getId());
|
|
|
+ BeanUtils.copyProperties(model, mesNotice);
|
|
|
+ baseMapper.updateAllById(mesNotice);
|
|
|
+
|
|
|
+ // 新增到log日志界面
|
|
|
+ //int count = mesNoticeLogService.count(Wraps.<MesNoticeLog>lbQ().eq(MesNoticeLog::getNoticeId, mesNotice1.getId()).eq(MesNoticeLog::getStatus, mesNotice1.getStatus()));
|
|
|
+ MesNoticeLog mesNoticeLog = new MesNoticeLog();
|
|
|
+ BeanUtils.copyProperties(mesNotice,mesNoticeLog);
|
|
|
+ mesNoticeLog.setNoticeId(mesNotice.getId());
|
|
|
+ mesNoticeLog.setId(null);
|
|
|
+// if(count<=0){
|
|
|
+// mesNoticeLogService.save(mesNoticeLog);
|
|
|
+// }
|
|
|
+ mesNoticeLogService.save(mesNoticeLog);
|
|
|
+
|
|
|
+ return mesNotice;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public IPage<MesNotice> pageList(IPage page, Wrapper<MesNotice> queryWrapper) {
|
|
|
BaseContextHandler.setTenant("0000");
|