@@ -5,6 +5,8 @@ begin
update GK_SHARE_JSJY_JYXKZ set sfyx = 2 where to_char(yxqz,'yyyy-mm-dd') = to_char(sysdate,'yyyy-mm-dd') and record_status <> 9 and sfyx =1;
update GK_SHARE_JSJY_JYXKZ set sfyx = 1 where to_char(yxqz,'yyyy-mm-dd') = to_char(sysdate+interval '3' year,'yyyy-mm-dd') and record_status <> 9 and sfyx = 4 ;
+
+update GK_SHARE_JSJY_JYXKZ set sfyx=2 where record_status <> 9 and sfyx = 1 and to_char(sysdate,'yyyy-mm-dd') >to_char(yxqz,'yyyy-mm-dd');
commit;