|
@ -92,8 +92,18 @@ public class AllSignExpenseStatusJob implements Job{
|
|
|
CacheModel cacheModel=cachePool.getSignFamilysWithExpenseStatus1ByDate(date);
|
|
|
List<SignFamily> signFamilies_1=cacheModel.getSignFamilies();
|
|
|
//抽取第二种条件的语句
|
|
|
String sql=" select code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where a.type =2 and status in (1,2) and a.apply_date< '"+date+ Constant.quota_date_last+"' and (expenses_status !=1 or expenses_status is null) and a.apply_date>'"+Constant.getStartTimeByDate(date)+"'";
|
|
|
String sqlCount=" select count(id) from wlyy_sign_family a where a.type =2 and status in (1,2) and a.apply_date< '"+date+ Constant.quota_date_last+"'and (expenses_status !=1 or expenses_status is null) and a.apply_date>'"+Constant.getStartTimeByDate(date)+"' ";
|
|
|
String sql=" select code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where " +
|
|
|
" a.type =2 and " +
|
|
|
" status in (1,2) and " +
|
|
|
" a.apply_date< '"+date+ Constant.quota_date_last+"' and" +
|
|
|
" (expenses_status !=1 or expenses_status is null) and "+
|
|
|
" a.sign_year ='"+Constant.getNowYearByDateYeaterday(date)+"' " ;
|
|
|
String sqlCount=" select count(id) from wlyy_sign_family a where " +
|
|
|
" a.type =2 and " +
|
|
|
" status in (1,2) and " +
|
|
|
" a.apply_date< '"+date+ Constant.quota_date_last+"'and " +
|
|
|
" (expenses_status !=1 or expenses_status is null) and " +
|
|
|
" a.sign_year ='"+Constant.getNowYearByDateYeaterday(date)+"' " ;
|
|
|
List<SignFamily> signFamilies_2= dbExtract.extractByPage(SignFamily.class,sql,sqlCount,true);
|
|
|
//抽取的语句
|
|
|
sql="select code,idcard,hospital,admin_team_code,expenses_status from wlyy_sign_family a where a.type =2 and status in (1,2) and a.apply_date< '"+date+ Constant.quota_date_last+"'";
|