进入for循环卡8秒,求方法,debug的话就不会产生卡的问题

for (int m = 1; m <= 12; m++) {
//旷工
String kg = getCountByCodeAndNameAndUser(useroid, "kg", yearL + "",
m + "");
kgNum += Integer.parseInt(kg);
//事假
AttendClass sjc = acf.findClassByCode("sj");
String sj = detailFactory.findTXByUserOidAndCode(useroid,
new BigDecimal(sjc.getHandle()), yearL + "", m + "", "sj");
sj = sj == null || sj.equals("") ? "0" : sj;
double sjh = Double.parseDouble(sj) / (60);
double sjt = 0;
if (sjh <= 4 && sjh > 0) {
sjt = 0.5;
} else {
sjt = sjh / 8;
}
sjNum += sjt;
//病假
AttendClass bjc = acf.findClassByCode("bj");
String bj = detailFactory.findTXByUserOidAndCode(useroid,
new BigDecimal(bjc.getHandle()), yearL + "", m + "", "bj");
bj = bj == null || bj.equals("") ? "0" : bj;
double bjt = Double.parseDouble(bj) / (8 * 60);
bjNum += bjt;
//迟到
String cd = getCountByCodeAndNameAndUser(useroid, "cd", yearL + "",
m + "");
cdNum += Integer.parseInt(cd);
//早退
String zt = getCountByCodeAndNameAndUser(useroid, "zt", yearL + "",
m + "");
ztNum += Integer.parseInt(zt);
//公休
int gx = 0;
gx +=
Integer.parseInt(getCountByCodeAndNameAndUser(useroid, "gx",
yearL + "",
m + ""));
gxNum += gx;
//休假
String xj = getCountByCodeAndNameAndUser(useroid, "xj", yearL + "",
m + "");
nxNum += Integer.parseInt(xj);

    }

Thread.sleep(8000);
调用线程的休眠方法;

Thread.sleep(8000);