Browse Source

git-svn-id: https://192.168.57.71/svn/jsgkj@545 931142cf-59ea-a443-aa0e-51397b428577

ld_liqk 9 years ago
parent
commit
ad2440a27f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      gkjsjy/trunk/WebContent/static/sql/oracle/other/7.job.sql

+ 2 - 0
gkjsjy/trunk/WebContent/static/sql/oracle/other/7.job.sql

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