|
@@ -5,6 +5,7 @@ import com.ym.mec.auth.api.entity.SysUser;
|
|
|
import com.ym.mec.biz.dal.dao.CourseScheduleTeacherSalaryDao;
|
|
|
import com.ym.mec.biz.dal.dao.EmployeeDao;
|
|
|
import com.ym.mec.biz.dal.entity.Employee;
|
|
|
+import com.ym.mec.biz.dal.enums.TeacherSalaryConfirmStatus;
|
|
|
import com.ym.mec.biz.dal.page.CourseSalaryQueryInfo4Web;
|
|
|
import com.ym.mec.biz.dal.page.CourseScheduleTeacherSalaryQueryInfo;
|
|
|
import com.ym.mec.biz.service.CourseScheduleTeacherSalaryService;
|
|
@@ -76,8 +77,17 @@ public class CourseScheduleTeacherSalaryController extends BaseController {
|
|
|
|
|
|
Map<String, Object> result=new HashMap<>();
|
|
|
result.put("pageInfo", courseScheduleTeacherSalaryService.findIsSettlementCourseSalarys(queryInfo));
|
|
|
- int i = courseScheduleTeacherSalaryDao.countOpenConfirmSalarysWithMonth(DateUtil.getMonth(DateUtil.addMonths(new Date(), -1)));
|
|
|
- result.put("isOpenConfirm", i>0?1:0);
|
|
|
+ int i = courseScheduleTeacherSalaryDao.countOpenConfirmSalarysWithMonth(DateUtil.dateToString(DateUtil.addMonths(new Date(), -1), "yyyy-MM"), TeacherSalaryConfirmStatus.UNCONFIRMED);
|
|
|
+ if(i>0){
|
|
|
+ result.put("isOpenConfirm", 1);
|
|
|
+ }else{
|
|
|
+ int j = courseScheduleTeacherSalaryDao.countOpenConfirmSalarysWithMonth(DateUtil.dateToString(DateUtil.addMonths(new Date(), -1), "yyyy-MM"), null);
|
|
|
+ if(j<=0){
|
|
|
+ result.put("isOpenConfirm", 2);
|
|
|
+ }else{
|
|
|
+ result.put("isOpenConfirm", 0);
|
|
|
+ }
|
|
|
+ }
|
|
|
return succeed(result);
|
|
|
}
|
|
|
|