public static void save(List<EmpAssessDetail> lsDetail, boolean approverEidt) throws Exception { boolean flag = false; for (EmpAssessDetail detailObj : lsDetail) { if ("tdjs".equals(detailObj.term_code)) flag = true; detailObj.save(approverEidt, flag); } }