|
|
@@ -2,6 +2,7 @@ package com.xjrsoft.module.oa.mapper;
|
|
|
|
|
|
import com.github.yulichang.base.MPJBaseMapper;
|
|
|
import com.xjrsoft.module.oa.entity.NewsRelation;
|
|
|
+import org.apache.ibatis.annotations.Insert;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
@@ -37,5 +38,6 @@ public interface NewsRelationMapper extends MPJBaseMapper<NewsRelation> {
|
|
|
*/
|
|
|
Boolean insertPersonl(@Param("newsId") Long newsId, @Param("userIdList")List<Long> userIdList);
|
|
|
|
|
|
+ @Insert("insert into xjr_oa_news_relation (id, news_id, user_id, create_date, read_mark) (select UUID(), #{newsId}, t.id, NOW(), 0 from xjr_user t where t.delete_mark = 0)")
|
|
|
Boolean insertAllUser(@Param("newsId") Long newsId);
|
|
|
}
|