Browse Source

取消3天,2天,1天专利提醒

anderx 4 years ago
parent
commit
9dc7cf5028

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

@@ -356,6 +356,9 @@
      <if test="startDate != null and endDate != null">
      and a.apply_date between  #{startDate} and  #{endDate}
      </if>
+     <if test="createStart != null and createEnd != null">
+     and a.create_time between  #{createStart} and  #{createEnd}
+     </if>
      <if test="name != null">
      and a.applicant  like concat('%',#{name},'%')
      </if>

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

@@ -130,16 +130,18 @@ public class PatentTask {
 				}else if (count > 3 && count <= 10&&p.getStatus()!=4) {
 					flag=true;
 					status = 4;
-				}else if (count == 3&&p.getStatus()!=5) {
-					flag=true;
-					status = 5;
-				}else if (count == 2&&p.getStatus()!=6) {
-					flag=true;
-					status = 6;
-				}else if (count == 1&&p.getStatus()!=7) {
-					flag=true;
-					status = 7;
 				}
+				//取消3天,2天,1天提醒
+//				else if (count == 3&&p.getStatus()!=5) {
+//					flag=true;
+//					status = 5;
+//				}else if (count == 2&&p.getStatus()!=6) {
+//					flag=true;
+//					status = 6;
+//				}else if (count == 1&&p.getStatus()!=7) {
+//					flag=true;
+//					status = 7;
+//				}
 				if (flag) {
 					Admin a = adminService.selectByPrimaryKey(p.getAid());
 					StringBuffer str2 = new StringBuffer();