|
@ -1,5 +1,6 @@
|
|
|
package com.yihu.wlyy.job;
|
|
|
|
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
|
import org.quartz.Job;
|
|
|
import org.quartz.JobExecutionContext;
|
|
|
import org.quartz.JobExecutionException;
|
|
@ -8,6 +9,7 @@ import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Calendar;
|
|
|
import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
* Created by lyr-pc on 2017/3/9.
|
|
@ -26,7 +28,7 @@ public class RenewToSignJob implements Job {
|
|
|
int month = cal.get(Calendar.MONTH)+1;
|
|
|
if(month >=7){
|
|
|
//设置已过期
|
|
|
String sql = "UPDATE wlyy_sign_family t SET t.status = -4 WHERE t.status>=0 AND t.sign_year='"+year+"' AND t.expenses_status='1'";
|
|
|
String sql = "UPDATE wlyy_sign_family t SET t.status = -4,t.apply_unsign_date='"+ DateUtil.dateToStr(new Date(),"yyyy-MM-dd HH:mm:ss")+"' WHERE t.status>=0 AND t.sign_year='"+year+"' AND t.expenses_status='1'";
|
|
|
//数据迁移
|
|
|
String sql2 ="INSERT INTO wlyy_sign_family(" +
|
|
|
"code,lw_code,type,patient,openid,name,idcard,ssc," +
|