소스 검색

Merge remote-tracking branch 'origin/dev' into dev

phoenix 1 년 전
부모
커밋
1b66d50160
3개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      Makefile
  2. 1 1
      src/main/resources/application.yml
  3. 2 3
      src/main/resources/mapper/oa/NewsMapper.xml

+ 1 - 1
Makefile

@@ -2,7 +2,7 @@ merge:
 	git checkout master;git merge dev;git push;git checkout dev;
 
 create-tag:
-	git checkout master;git tag v1.2.9;git push origin --tags;git checkout dev;
+	git checkout master;git tag v1.3.0;git push origin --tags;git checkout dev;
 
 remove-tag:
 	git tag -d v1.2.0;git push origin :refs/tags/v1.1.8;

+ 1 - 1
src/main/resources/application.yml

@@ -5,7 +5,7 @@ server:
 spring:
   # 环境 dev|test|prod
   profiles:
-    active: dev
+    active: prod
   # jackson时间格式化
   jackson:
     time-zone: GMT+8

+ 2 - 3
src/main/resources/mapper/oa/NewsMapper.xml

@@ -30,12 +30,11 @@
         select
         t.*
         from xjr_oa_news t
-        left join xjr_oa_news_relation t1 on t1.news_id = t.id
         where t.delete_mark = 0 and
         (t.send_end_date > now() or t.send_end_date is null)
           and t.status = 2
-        <if test="dto.type != null and dto.type == 2 and dto.loginId != null and dto.loginId > 0">
-            and (t1.user_id = #{dto.loginId} or t.send_range = 1)
+        <if test="dto.type != null and dto.type == 2 and dto.loginId != null">
+            and (t.send_range = 1 or t.id in (select news_id from xjr_oa_news_relation t1 where user_id = #{dto.loginId}))
         </if>
         <if test="dto.type != null and dto.type == 1">
             and t.wf_status = 1