|
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.github.zuihou.base.R;
|
|
|
import com.github.zuihou.base.service.SuperServiceImpl;
|
|
|
+import com.github.zuihou.business.externalApi.dao.MesNoticeLogMapper;
|
|
|
import com.github.zuihou.business.externalApi.dao.MesNoticeMapper;
|
|
|
import com.github.zuihou.business.externalApi.dto.MesNoticeUpdateDTO;
|
|
|
import com.github.zuihou.business.externalApi.entity.MesNotice;
|
|
@@ -34,6 +35,9 @@ public class MesNoticeServiceImpl extends SuperServiceImpl<MesNoticeMapper, MesN
|
|
|
@Autowired
|
|
|
private MsgUtil msgUtil;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private MesNoticeLogMapper mesNoticeLogMapper;
|
|
|
+
|
|
|
@Autowired
|
|
|
private MesNoticeLogService mesNoticeLogService;
|
|
|
|
|
@@ -85,6 +89,13 @@ public class MesNoticeServiceImpl extends SuperServiceImpl<MesNoticeMapper, MesN
|
|
|
throw new BizException("此订单已存在");
|
|
|
}
|
|
|
baseMapper.insert(model);
|
|
|
+
|
|
|
+ MesNoticeLog mesNoticeLog = new MesNoticeLog();
|
|
|
+ BeanUtils.copyProperties(model, mesNoticeLog);
|
|
|
+ mesNoticeLog.setNoticeId(model.getId());
|
|
|
+ mesNoticeLog.setId(null);
|
|
|
+ mesNoticeLogMapper.insert(mesNoticeLog);
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
|