Przeglądaj źródła

定时任务开发

anderx 4 lat temu
rodzic
commit
77479a4858

+ 8 - 3
src/main/java/com/goafanti/common/mapper/PatentNewMapper.xml

@@ -437,10 +437,10 @@
 		</if>
 		where 1=1
 		<if test="shiro ==0">
-			<if test="isFollow ==0">
+			<if test="isFollow ==1">
 			and a.aid = #{aid,jdbcType=VARCHAR}
 			</if>
-			<if test="isFollow ==1">
+			<if test="isFollow ==0">
 			and a.input_id = #{aid,jdbcType=VARCHAR}
 			</if>
 		</if>
@@ -495,8 +495,13 @@
 			left join admin e on e.department_id=c.id
 		</if>
 		where 1=1
-		<if test="shiro ==0">
+			<if test="shiro ==0">
+			<if test="isFollow ==1">
 			and a.aid = #{aid,jdbcType=VARCHAR}
+			</if>
+			<if test="isFollow ==0">
+			and a.input_id = #{aid,jdbcType=VARCHAR}
+			</if>
 		</if>
 		<if test="shiro ==1">
 			and e.id = #{aid,jdbcType=VARCHAR}

+ 1 - 1
src/main/java/com/goafanti/common/task/PatentTask.java

@@ -114,7 +114,7 @@ public class PatentTask {
 				}else if (count>0&&count <= 7&&p.getStatus()!=5) {
 					flag=true;
 					status = 5;
-					s4.add(p.getId().toString());
+					s5.add(p.getId().toString());
 				}else if(count<0&&p.getStatus()==5) {
 					s6.add(p.getId().toString());
 				}