if (!StringUtils.isBlank(ary[4]) && ary[4].length() == 10) {//几个操作是为截取字符串,将年月日分出来好进行判断
year1 = ary[4].substring(0, 4);
month1 = ary[4].substring(5, 7);
date1 = ary[4].substring(8, 10);
}
if (!StringUtils.isBlank(ary[4]) && ary[4].length() == 8) {
year1 = ary[4].substring(0, 4);
month1 = ary[4].substring(4, 6);
date1 = ary[4].substring(6, 8);
}
if (!StringUtils.isBlank(ary[4]) && ary[4].length() == 6) {
year1 = ary[4].substring(0, 4);
month1 = ary[4].substring(4, 6);
}
//
/**
* 当传入时间年大于交易时间年,并且月份大于7的 直接退出,给出原因
*/
if (StringUtils.isBlank(year) || StringUtils.isBlank(year1)
|| StringUtils.isBlank(month)|| StringUtils.isBlank(month1)) {
successTablemethod.setRowTextOrder(sune+1, "balance", h1,ary[0],ary[2],ary[3],"交易时间:"+year+month+"与补缴时间:"+year1+month1+"有问题");
writeInFile(fw,sune,successTablemethod);
}
if (Integer.parseInt(year) > Integer.parseInt(year1)&& Integer.parseInt(month) >= 7
|| Integer.parseInt(year) < Integer.parseInt(year1)&& Integer.parseInt(month) < 7
||Integer.parseInt(year) >Integer.parseInt(year1)&& Integer.parseInt(month) < 7&& Integer.parseInt(month1) < 7
||Integer.parseInt(year) <Integer.parseInt(year1)&& Integer.parseInt(month) >=7&& Integer.parseInt(month1)>= 7) {
successTablemethod.setRowTextOrder(sune+1, "balance", h1,ary[0],ary[2],ary[3],"补缴年月为"+ary[4]+";请核对");
writeInFile(fw,sune,successTablemethod);
}
if ((Integer.parseInt(year) - Integer.parseInt(year1) > 1)
|| (Integer.parseInt(year)
- Integer.parseInt(year1) < -1)) {
successTablemethod.setRowTextOrder(sune+1, "balance", h1,ary[0],ary[2],ary[3],"补缴年月为"+ary[4]+";请核对");
writeInFile(fw,sune,successTablemethod);
}
/**
* 当传入时间年等于交易时间年,并且缴存月份大于等于7,而交易时间小于7的 ; 缴存月份小于7 而交易时间大于7
* 直接退出,给出原因
*/
if ((Integer.parseInt(month1) >= 7&& Integer.parseInt(month) < 7 && Integer.parseInt(year) == Integer.parseInt(year1))
|| (Integer.parseInt(month1) < 7&& Integer.parseInt(month) >= 7 && Integer.parseInt(year) == Integer.parseInt(year1))) {
successTablemethod.setRowTextOrder(sune+1, "balance", h1,ary[0],ary[2],ary[3],"补缴年月为"+ary[4]+";请核对");
writeInFile(fw,sune,successTablemethod);
}
/**
* 当传入时间年等于交易时间年,并且缴存月份小于等于7,而交易时间大于等于7的 直接退出,给出原因
*/