Selaa lähdekoodia

新闻公告调整

dzx 1 vuosi sitten
vanhempi
commit
582a54ebf7

+ 2 - 0
src/main/java/com/xjrsoft/module/oa/mapper/NewsRelationMapper.java

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

+ 0 - 12
src/main/resources/mapper/oa/NewsRelationMapper.xml

@@ -81,16 +81,4 @@
         </if>)
     </insert>
 
-    <insert id="insertAlluser">
-        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)
-    </insert>
-
 </mapper>